-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Improve misleading Unexpected "x" in class body.
GDScript parser error
#99887
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JackErb
changed the title
Improve GDScript "unexpected token in class body" parser error
Improve misleading GDScript parser error
Nov 30, 2024
JackErb
force-pushed
the
gdscript-parser-error-fix
branch
from
December 1, 2024 05:50
1b8b688
to
52110ab
Compare
dalexeev
reviewed
Dec 1, 2024
modules/gdscript/tests/scripts/parser/errors/vcs_conflict_marker.gd
Outdated
Show resolved
Hide resolved
JackErb
force-pushed
the
gdscript-parser-error-fix
branch
from
December 1, 2024 09:14
52110ab
to
b04497c
Compare
Verified it fixes #96792 |
dalexeev
reviewed
Dec 6, 2024
modules/gdscript/tests/scripts/parser/errors/unexpected_token_in_class_body.gd
Outdated
Show resolved
Hide resolved
adamscott
changed the title
Improve misleading GDScript parser error
Improve misleading Dec 6, 2024
Unexpected "x" in class body.
GDScript parser error
JackErb
force-pushed
the
gdscript-parser-error-fix
branch
from
December 6, 2024 21:10
b04497c
to
04a2573
Compare
JackErb
force-pushed
the
gdscript-parser-error-fix
branch
from
December 6, 2024 21:15
04a2573
to
20d46c6
Compare
dalexeev
reviewed
Dec 7, 2024
modules/gdscript/tests/scripts/parser/errors/unexpected_token_in_class_body.gd
Outdated
Show resolved
Hide resolved
modules/gdscript/tests/scripts/parser/errors/unexpected_token_in_class_body.gd
Outdated
Show resolved
Hide resolved
This parser error was misleading. Fixes: 1. Now points at correct line 2. For identifiers, prints out `Identifier "%s"`
JackErb
force-pushed
the
gdscript-parser-error-fix
branch
from
December 10, 2024 05:01
20d46c6
to
13fcb05
Compare
dalexeev
approved these changes
Dec 10, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! Congratulations on your first merged contribution! 🎉 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This parser error was misleading.
Fixes:
====
With Change:
Without Change (misleading):