Closed ALiwoto closed 7 months ago
This error it coming from the engine itself, not the extension. You should report this on Godot's repository and, optionally, see if you can reproduce this with other external editors.
This is related to this upstream bug: https://github.com/godotengine/godot/issues/81135
@akien-mga ah I see, weird I couldn't find that issue when searching the main repo.. my bad. Should I close this issue here then?
I think it's fine to have the issue both upstream and here, as this repo is where many VSCode users might be looking for information first.
This is an issue with the editor, not the extension: https://github.com/godotengine/godot/issues/81135
Godot version
4.2.1-stable
VS Code version
1.85.2
Godot Tools VS Code extension version
e2f2dc4b93eec68ebdadd76255746b8b0c0ca9d7
System information
Windows11, Forward+
Issue description
After opening a very simple file and doing some kind of text-editor operation in it (e.g. ctrl+s to save content of the file), I will see that Godot's (in-editor) output is getting spammed with this weird error:
scene/gui/text_edit.cpp:5886 - Index p_gutter = -1 is out of bounds (gutters.size() = 4).
I know the source of the issue is from main repository of godot, but the issue will get triggered only when I use the vscode extension, so I thought maybe I should report it here. Sorry in advance if the right place for it isn't here.
The .gd file doesn't have anything special, it's just few lines of godot script (I tested with many .gd files and it happened when opening all of them, so I'm assuming it doesn't depend on the file itself).
Steps to reproduce
.gd
file in vscode (when Godot editor is already open in the project ofc).output
tab. The errors should be there.Here is the content of my
settings.json
(I don't think they are really related, but I'll paste them here just-in-case):