Closed neversi closed 3 weeks ago
Thanks @neversi This is a duplicate of https://github.com/golang/go/issues/63933 Can you use go1.22 to build the gopls? It is mitigated in 1.22.
The easiest way to rebuild the gopls with go1.22 is (since you are already with go1.21)
GOTOOLCHAIN=go1.22.3+auto go install golang.org/x/tools/gopls@latest
You can still use go1.21 for your project with the gopls built with go1.22.
Duplicate of golang/go#63933
gopls version: v0.15.3/go1.21.5 gopls flags: update flags: proxy extension version: 0.41.4 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Fri, 31 May 2024 13:25:07 GMT restart history: Wed, 29 May 2024 09:19:08 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
While changing the variable name (globally in all project), there was instant crash of gopls
gopls stats -anon
{ "DirStats": { "Files": 8872, "TestdataFiles": 0, "GoFiles": 4338, "ModFiles": 2, "Dirs": 1115 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.21.5", "GoplsVersion": "v0.15.3", "InitialWorkspaceLoadDuration": "1.142580125s", "MemStats": { "HeapAlloc": 89678560, "HeapInUse": 142385152, "TotalAlloc": 1244250888 }, "WorkspaceStats": { "Files": { "Total": 3967, "Largest": 9586483, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.3", "AllPackages": { "Packages": 741, "LargestPackage": 155, "CompiledGoFiles": 4077, "Modules": 115 }, "WorkspacePackages": { "Packages": 119, "LargestPackage": 22, "CompiledGoFiles": 416, "Modules": 1 }, "Diagnostics": 6 } ] } }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.