godotengine / godot-vscode-plugin

Godot development tools for VSCode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

ALiwoto opened this issue · comments

Godot version

4.2.1-stable

VS Code version

1.85.2

Godot Tools VS Code extension version

e2f2dc4

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

  • Open a simple .gd file in vscode (when Godot editor is already open in the project ofc).
  • Try to do some operation in it (e.g. ctrl+s; even if there is no new content to be saved).
  • Go back to Godot editor and look at 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):

{
    "[godot]": {
        "editor.useTabStops": false
    },
    "editor.insertSpaces": false,
}

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.