-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
4.0, mouse click below code without an empty last line, error: Index p_column = 6 is out of bounds #69011
Comments
To cite CONTRIBUTING.md
Please upload a MRP to the issue's description. (I know that you say that it happens to any script, but it really helps having a prepared project to test, Thank you!) |
Sorry about that, I added a MRP, and updated the reproduction steps. |
I confirm the issue on master (a8a8819). |
Thanks for the MRP, it really helped! |
Godot version
v4.0.beta5.official [89a33d2]
System information
Windows 10 22H2, OpenGL3, Geforce GTX 550 Ti
Issue description
The
Output
panel shows an error message like this:When left mouse button clicking below code, without an empty last line.
For example, if one want to select from the last line, upwards, by mouse dragging upwards.
An empty line is added automatically at the end when a script file is saved.
But this error can be encountered if one, for example, copies code from a website,
and it didn't have an ending empty line, or it wasn't included in the selection when the code was copied.
Steps to reproduce
error, mouse click below non-empty last line.zip
Output
panelFileSystem
panelnew_script.gd
pass
as the last lineExpected
Nothing should happen.
Observed
The Output panel shows the error message:
Minimal reproduction project
error, mouse click below non-empty last line.zip
A MRP is probably not needed, since it happens in any script without an empty last line, even with the default script template.The text was updated successfully, but these errors were encountered: