tools/internal/lsp: panic in go/packages during package rename #35035
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
N/A.
I'm running the tools
master
-branch, i.e. ed542cdWhat did you do?
In a medium sized project I moved a file from one package to another before
gopls
was running, so that I had a package that contained several go files where one of them had an incorrectpackage ...
-declaration at the top.Then I opened the file in vim (
govim
) and renamed the package, effectively to another non-existing package name (since the change triggeded adidChange
before I had completed my typing).That resulted in a panic in gopls:
The text was updated successfully, but these errors were encountered: