golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.78k stars 728 forks source link

gopls: automated issue report (crash) #3263

Closed ichenss closed 3 months ago

ichenss commented 3 months ago

gopls version: v0.15.2/go1.18.1 gopls flags: update flags: proxy extension version: 0.41.2 environment: Visual Studio Code linux initialization error: undefined issue timestamp: Tue, 19 Mar 2024 04:30:15 GMT restart history: Tue, 19 Mar 2024 04:19:12 GMT: activation (enabled: false) Tue, 19 Mar 2024 04:22:51 GMT: config change (enabled: false) Tue, 19 Mar 2024 04:22:56 GMT: config change (enabled: false) Tue, 19 Mar 2024 04:23:06 GMT: config change (enabled: false) Tue, 19 Mar 2024 04:24:44 GMT: installation (enabled: true) Tue, 19 Mar 2024 04:30:06 GMT: installation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

Please attach the stack trace from the crash. A window with the error message should have popped up in the lower half of your screen. Please copy the stack trace and error messages from that window and paste it in this issue. Failed to auto-collect gopls trace: no gopls log.
gopls stats -anon { "DirStats": { "Files": 133, "TestdataFiles": 0, "GoFiles": 0, "ModFiles": 0, "Dirs": 33 }, "GOARCH": "amd64", "GOOS": "linux", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.18.1", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "127.328133ms", "MemStats": { "HeapAlloc": 1945112, "HeapInUse": 3809280, "TotalAlloc": 8801896 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.1", "AllPackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "WorkspacePackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "Diagnostics": 0 } ] } }
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.
findleyr commented 3 months ago

Hi while we won't be able to investigate this without a stack trace, it looks like you're using Go 1.18.1, which has several known crashes. Please reinstall gopls with a more recent version of Go.

Please file a new issue if gopls crashes when compiled with a recent Go version.

ichenss commented 3 months ago

Resolved. Thank you.