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 some "no AST change" when there are syntax errors #299

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

andre15silva
Copy link
Contributor

@andre15silva andre15silva commented Dec 12, 2023

In cases where there are some syntax errors, gumtree-spoon-ast-diff outputs "no AST change"

This PR fixes that.
Right now, only the most serious cases are fixed.
If there are subtle syntax errors like missing a ";" or ")" and the rest matches, it will still output "no AST change" :/

@monperrus
Copy link
Contributor

should we unwip and merge?

@andre15silva andre15silva changed the title WIP: fix "no AST match" when there are syntax errors fix "no AST change" when there are "serious" syntax errors Feb 5, 2024
@andre15silva andre15silva marked this pull request as ready for review February 5, 2024 08:57
@andre15silva andre15silva changed the title fix "no AST change" when there are "serious" syntax errors fix "no AST change" when there are some syntax errors Feb 5, 2024
@andre15silva andre15silva changed the title fix "no AST change" when there are some syntax errors fix some "no AST change" when there are syntax errors Feb 5, 2024
@andre15silva
Copy link
Contributor Author

Sure @monperrus !

Note that the bug is not totally fixed since there are still cases where, even if one of the versions has syntax errors, "no AST change" is outputted. See #305

@monperrus monperrus merged commit ff4b53b into SpoonLabs:master Feb 5, 2024
1 check passed
@monperrus
Copy link
Contributor

thanks @andre15silva

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.

2 participants