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

Fix inline script parsing issues #574

Merged
merged 1 commit into from
Apr 15, 2023
Merged

Fix inline script parsing issues #574

merged 1 commit into from
Apr 15, 2023

Conversation

sambhav
Copy link
Collaborator

@sambhav sambhav commented Apr 13, 2023

Fixes #572

The fix makes the function parser a bit more robust by round-tripping through ast parse/unparse.

This ensures we get consistently formatted code each time and removes any extraneous comments which were previously causing parsing issues.

@sambhav sambhav force-pushed the alt-script branch 3 times, most recently from 1822549 to 7801dab Compare April 13, 2023 09:04
@sambhav sambhav added semver:patch A change requiring a patch version bump type:bug A general bug labels Apr 13, 2023
Copy link
Collaborator

@elliotgunton elliotgunton left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@flaviuvadan flaviuvadan left a comment

Choose a reason for hiding this comment

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

🚀

Signed-off-by: Sambhav Kothari <skothari44@bloomberg.net>
@sambhav sambhav enabled auto-merge (squash) April 15, 2023 20:57
@sambhav sambhav merged commit 7f6bec0 into main Apr 15, 2023
@sambhav sambhav deleted the alt-script branch April 15, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script inline constructor is flakey
3 participants