Closed yoedipaper closed 3 months ago
Hi, we thought this crash was fixed with gopls@v0.15.2 (CC @adonovan), but in any case you can fix it by reinstalling gopls with a more recent version of Go (1.21 or 1.22).
Unfortunately, it's unlikely that we'll fix this bug with Go 1.20, since we are moving to a model where gopls is only compiled with the most recent version of go (see golang/go#65917).
Please open another issue if this isn't fixed by reinstalling gopls with a recent Go version.
gopls version: v0.15.2/go1.20.5 gopls flags: update flags: proxy extension version: 0.41.2 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Wed, 20 Mar 2024 12:19:03 GMT restart history: Wed, 20 Mar 2024 12:18:51 GMT: activation (enabled: true) Wed, 20 Mar 2024 12:19:04 GMT: installation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 546, "TestdataFiles": 0, "GoFiles": 184, "ModFiles": 1, "Dirs": 286 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.1", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "1.999308041s", "MemStats": { "HeapAlloc": 84382776, "HeapInUse": 116801536, "TotalAlloc": 739601200 }, "WorkspaceStats": { "Files": { "Total": 2869, "Largest": 6161825, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.1", "AllPackages": { "Packages": 654, "LargestPackage": 155, "CompiledGoFiles": 2900, "Modules": 90 }, "WorkspacePackages": { "Packages": 89, "LargestPackage": 14, "CompiledGoFiles": 219, "Modules": 1 }, "Diagnostics": 2 } ] } }