Closed Kristianwhittick closed 1 month ago
Thanks for the report. @Kristianwhittick
Can you please tell us more what you meant by "changing the folder from a project to a different project"? Did you use "File: Open Folder" command, after closing the current folder?
If you restart the vscode with the second project ("Developer: Reload Window" command), does gopls crash again? If it crashes, given that the stack trace exactly matches, I think it is a duplicate of https://github.com/golang/go/issues/68334. The fix requires new Go release. (go1.23 or a new patch release of go1.22 which is in progress)
Yes, I used "File: Open Folder" but "not" after closing the current folder. I still had the old folder open when I selected the new location.
I will upgrade the version and see if this happens again.
Closing as a duplicate of golang/go#68334, so this should be fixed in Go 1.22.6.
gopls version: v0.16.1/go1.22.5 gopls flags: update flags: proxy extension version: 0.41.4 environment: Visual Studio Code linux initialization error: undefined issue timestamp: Mon, 15 Jul 2024 10:35:15 GMT restart history: Mon, 15 Jul 2024 10:34:46 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
In VSCode, I changed the folder from an existing go project to a different existing go project. A few seconds later the gopls server crashed.
gopls stats -anon
gopls stats -anon failed after 2301 ms. Please check if gopls is killed by OS.OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.
NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE. DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.