godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.54k stars 163 forks source link

'Index p_gutter = -1 is out of bounds (gutters.size() = 4).' getting spammed in Godot output #583

Closed ALiwoto closed 7 months ago

ALiwoto commented 8 months ago

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).

image

image

Steps to reproduce

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):

{
    "[godot]": {
        "editor.useTabStops": false
    },
    "editor.insertSpaces": false,
}
atirut-w commented 8 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.

akien-mga commented 7 months ago

This is related to this upstream bug: https://github.com/godotengine/godot/issues/81135

ALiwoto commented 7 months ago

@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?

akien-mga commented 7 months ago

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.

Calinou commented 7 months ago

This is an issue with the editor, not the extension: https://github.com/godotengine/godot/issues/81135