x/tools/gopls: crash - index out of range #35455
I manually keep gopls at current master to track upcoming changes.
This morning, VSCode warned me that it had stopped restarting gopls due to it crashing too many times (installed commit:
The VSCode workspace features multiple directories mapped together (ie, our go monorepo, our frontend code, etc).
The go directory is in a module.
The root of the go directory contains a module, but all of the packages within it start at least two levels deep. As an example:
I believe there are 0 packages closer than 2 directories away from the root, due to code organization reasons. All of the go tools (go build, go mod, etc) seem to work totally fine with this organization structure.
No - only one does. The rest are not go related:
In that image,
In the image,
Edit: I noticed that VSCode sometimes only loads plugins/etc when working on related files. For the avoidance of doubt, I was working on .go files somewhere deep within the structure of
Confirmed that it's working for me locally:
(the first 5