golang / vscode-go

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

gopls: automated issue report (crash) #3251

Closed tejasraorane closed 3 months ago

tejasraorane commented 3 months ago

gopls version: v0.15.2/go1.19 gopls flags: update flags: proxy extension version: 0.41.1 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Thu, 14 Mar 2024 09:07:56 GMT restart history: Thu, 14 Mar 2024 09:02:38 GMT: activation (enabled: true) Thu, 14 Mar 2024 09:05:20 GMT: manual (enabled: true) Thu, 14 Mar 2024 09:06:37 GMT: manual (enabled: true) Thu, 14 Mar 2024 09:07:46 GMT: manual (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": 4312, "TestdataFiles": 0, "GoFiles": 3526, "ModFiles": 3, "Dirs": 864 }, "GOARCH": "amd64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.19", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "98.904053ms", "MemStats": { "HeapAlloc": 2350992, "HeapInUse": 4751360, "TotalAlloc": 15592040 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.19", "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

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, ...)? You may also want to try recompiling gopls with a more recent version of Go.

Screen Shot 2021-01-27 at 2 53 49 PM