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) #3271

Closed jobrienTC closed 2 months ago

jobrienTC commented 3 months ago

gopls version: v0.15.2/go1.22.0 gopls flags: update flags: proxy extension version: 0.41.1 environment: Visual Studio Code linux initialization error: undefined issue timestamp: Thu, 21 Mar 2024 23:03:02 GMT restart history: Wed, 13 Mar 2024 00:07:01 GMT: activation (enabled: true) Wed, 20 Mar 2024 21:59:47 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: incomplete panic trace.
gopls stats -anon { "DirStats": { "Files": 18155, "TestdataFiles": 40, "GoFiles": 11423, "ModFiles": 1, "Dirs": 2129 }, "GOARCH": "amd64", "GOOS": "linux", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.0", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "6.010082683s", "MemStats": { "HeapAlloc": 198986624, "HeapInUse": 317382656, "TotalAlloc": 2473649048 }, "WorkspaceStats": { "Files": { "Total": 11889, "Largest": 1847656, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.0", "AllPackages": { "Packages": 1479, "LargestPackage": 412, "CompiledGoFiles": 12027, "Modules": 132 }, "WorkspacePackages": { "Packages": 267, "LargestPackage": 17, "CompiledGoFiles": 581, "Modules": 1 }, "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.
suzmue commented 3 months ago

Thanks for the report. Can you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls, I just opened the vscode, I did refactoring, ...)? Screen Shot 2021-01-27 at 2 53 49 PM