Skip to content
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

[gromet] Fix while loop wiring bug #728

Closed
Tracked by #698
vincentraymond-ua opened this issue Dec 12, 2023 · 1 comment · Fixed by #753
Closed
Tracked by #698

[gromet] Fix while loop wiring bug #728

vincentraymond-ua opened this issue Dec 12, 2023 · 1 comment · Fixed by #753

Comments

@vincentraymond-ua
Copy link
Contributor

vincentraymond-ua commented Dec 12, 2023

When the expression of a while loop is a function call, the pipeline fails to produce Gromet.

def return_true():
    return True

while(return_true()):
    print("TEST")
@titomeister
Copy link
Contributor

titomeister commented Jan 12, 2024

Jan 12 2024 Update

  • Determined the problem. The Gromet generation was missing a case for appropriately generating the Gromet required for the LiteralValue returns.
  • The case has been added, now making sure everything else with the example is consistent, and making a test for it.
  • Also, another minor issue with some wiring involving returning LiteralValues was discovered, and fixed. Tests for this will also be made.

titomeister added a commit that referenced this issue Jan 18, 2024
This PR primarily fixes a crash in the Gromet generation when there's a
While loop condition consists only of a function call.
It also fixes another minor wiring bug related to LiteralValues

### Summary of Changes
- Fixed Gromet generation crash for While loop condition of a function
call.
- Fixes a missing wiring bug when a function returns a plain
LiteralValue.
- Adds some small unit tests to maintain consistency.

Resolves #728
github-actions bot added a commit that referenced this issue Jan 18, 2024
This PR primarily fixes a crash in the Gromet generation when there's a
While loop condition consists only of a function call.
It also fixes another minor wiring bug related to LiteralValues

### Summary of Changes
- Fixed Gromet generation crash for While loop condition of a function
call.
- Fixes a missing wiring bug when a function returns a plain
LiteralValue.
- Adds some small unit tests to maintain consistency.

Resolves #728 b089c47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants