x/tools/cmd/gopls: crash when file in temporary directory gets focus in editor #32393
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. 1.12.5 is the latest on golang.org/dl/.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In Visual Studio Code, in ~/Projects/quote-educator/, I'm editing a main.go and main_test.go that are both in Git. I also pulled older versions of those files, through Tower, into automatically-generated temporary directories so I could manually copy previously-deleted code from the old version to the new version. Currently, the old version of main.go is at /private/var/folders/wy/3sprnnbj2yx9h60jbs4qjvpr0000gn/T/697EBAFD-4D0F-4B8A-8E4E-64A40051CE0B/main.go and the old version of main_test.go is at /private/var/folders/wy/3sprnnbj2yx9h60jbs4qjvpr0000gn/T/460EE07C-B5FC-4695-B9CE-17E9BC14020A/main_test.go.
I got the "The gopls server crashed 5 times in the last 3 minutes. The server will not be restarted." error and thought it was due to a fluke, so I restarted Visual Studio Code. Everything seemed fine until I clicked in the windowpane (buffer?) containing one of the old files. Shortly thereafter, I got the "The gopls server crashed 5 times in the last 3 minutes. The server will not be restarted." error message again.
Attached is the log of the latest crash that happened a couple minutes ago.
gopls-dies-with-files-in-weird-places.txt
The text was updated successfully, but these errors were encountered: