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

Clicking below the last line (if not empty) in the code editor logs an error #69313

Closed
adamscoble opened this issue Nov 28, 2022 · 1 comment
Closed
Labels

Comments

@adamscoble
Copy link

Godot version

4.0.beta6

System information

Windows 10

Issue description

If you have some code in a script and the last line is not an empty line, clicking below that line will log this error on each click:

GDScript parser bug: Trying to advance past the end of stream.
scene/gui/text_edit.cpp:4911 - Index p_column = 18 is out of bounds (text[carets[p_caret].selection.selecting_line].length() + 1 = 18).

Steps to reproduce

  1. Create or open a script.
  2. Remove any empty (just new line characters) trailing lines.
  3. Click below the last line.

Minimal reproduction project

N/A

@Rindbee
Copy link
Contributor

Rindbee commented Nov 29, 2022

A duplicate of #69011 fixed by #69054.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants