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

ScriptNode : Support multi-line if in tolerantExec() #5747

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

johnhaddon
Copy link
Member

Although we don't make use of any compound statements in our own serialisations, third parties have done so using custom serialisers. Parsing for those was broken by 9d15bd2 when we stopped using a legacy AST API for parsing. Here we do the absolute bare minimum necessary to get these legacy files loading. As noted in the comments, we do not intend to do more : rather our future intention is likely to be constrain the serialisation format further for improved performance.

@johnhaddon johnhaddon self-assigned this Mar 22, 2024
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

It looks like if there's an error inside a conditional scope, it won't have the exact right line number given in the error message, but that doesn't seem like enough of a problem to hold this up.

Although we don't make use of any compound statements in our own serialisations, third parties have done so using custom serialisers. Parsing for those was broken by 9d15bd2 when we
stopped using an AST for parsing. Here we do the absolute bare minimum necessary to get these legacy files loading. As noted in the comments, we do not intend to do more : rather our future intention is likely to be constrain the serialisation format further for improved performance.
@johnhaddon johnhaddon merged commit bc2d17d into GafferHQ:main Mar 22, 2024
2 of 5 checks passed
@johnhaddon johnhaddon deleted the blockSerialisation branch April 25, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants