Skip to content

irshow: Be more robust in the face of invalid :invoke Exprs #49312

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

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

Keno
Copy link
Member

@Keno Keno commented Apr 10, 2023

In general, printing should take all reasonable steps to show even invalid data structures, since printing is used for debugging. In this case, the :invoke printing had some type asserts and minimum arg length constraints. Check those at the top and fall back to regular Expr printing if they are not met.

In general, printing should take all reasonable steps to show even
invalid data structures, since printing is used for debugging.
In this case, the :invoke printing had some type asserts and minimum
arg length constraints. Check those at the top and fall back to
regular `Expr` printing if they are not met.
@staticfloat staticfloat added the merge me PR is reviewed. Merge when all tests are passing label Apr 10, 2023
@Keno Keno merged commit d599c40 into master Apr 10, 2023
@Keno Keno deleted the kf/irshowinvoke branch April 10, 2023 23:35
@giordano giordano removed the merge me PR is reviewed. Merge when all tests are passing label Apr 11, 2023
Xnartharax pushed a commit to Xnartharax/julia that referenced this pull request Apr 19, 2023
…g#49312)

In general, printing should take all reasonable steps to show even
invalid data structures, since printing is used for debugging.
In this case, the :invoke printing had some type asserts and minimum
arg length constraints. Check those at the top and fall back to
regular `Expr` printing if they are not met.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants