-
-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
GDScript parser bug: Trying to advance past the end of stream #63946
Comments
Can you reproduce this in earlier 4.0 alphas? |
Bisecting through the alpha releases:
Therefore, one of the (most likely GDScript related) changes between alpha 11 and alpha 12 is causing this issue. |
Still happening on Godot 4.0 beta 2. |
still seeing this error Godot 4.0 beta 8 |
this is still in Godot 4.0 beta 10 |
Still there in 4.0 beta 12. |
In 4.0 beta 14 as well. |
Still valid in v4.0.rc5.official [6296b46] |
The error went away after I switched to another script and made some changes and came back to the original script. I'm also in the 4.0 stable build. |
Godot version
Since Godot Engine v4.0.alpha12.official
(Originally reported in Godot Engine v4.0.alpha13.official)
System information
Windows 10, 64-bit
Issue description
During parsing/autocomplete of the function name when typing
func ...
, the GDScript parser logs the following line:This line is logged once every time 300ms passes between consecutive characters typed while writing the function name in
func ...
at the end of the script. It is also logged when saving the scriptThis line is logged here:
godot/modules/gdscript/gdscript_parser.cpp
Line 407 in 44d3c84
Steps to reproduce
Create a new script and write the following code, making sure to type the last line slowly (pace one letter every ≈500ms):
Then, save the script and notice additional lines of
GDScript parser bug: Trying to advance past the end of stream.
in the log.Alternatively, open the attached project below, during which the parser reports additional errors like above.
Minimal reproduction project
test.zip
The text was updated successfully, but these errors were encountered: