-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for unconnected multiport and bank reactor bug #1953
Fix for unconnected multiport and bank reactor bug #1953
Conversation
OmerMajNition
commented
Aug 17, 2023
- Unconnected multiport has compilation error, we needed an iterator which was missing
- Bank reactor iterator was missing, causing bank reactor declaration failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide tests for these?
@edwardalee, I've added test file for your review please. |
The test seems overly complex. Is there a minimal case that illustrates the problem this was addressing? Such a case was missing in the original issue. Also, I don't think a test should be writing to an external log file. |
@edwardalee, I've added few more test files. This compilation error occurs on unconnected output port. This PR fixes both errors. |
I spoke to Marten about this but I will re-post here so we are all on the same page: Since this PR was delayed, I independently encountered and fixed the same problem while this PR was pending. This PR adds more test cases and may be a somewhat cleaner solution that what I did, so it might still be useful if anyone is interested in addressing the concerns raised and the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove the two files that are already passing in master
and reduce the other two down to minimal examples (or one, if they both end up testing the same thing)? The change in the code generator looks OK to me...
81cea76
to
d7514b8
Compare
@lhstrh, removed the test case files that main is now already taking care of. |
I'm seeing some mysterious errors on Windows happening in CI? Not sure what's going on there... |
c0afdea
to
c839b28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for the fix, @OmerMajNition!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the use of rand_r()
is causing trouble on Windows. The tests should only include code that is strictly necessary to expose the bug that this PR is fixing...