golang / vscode-go

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

gopls: automated issue report (crash) #3140

Closed nepalsaurav closed 6 months ago

nepalsaurav commented 8 months ago

gopls version: v0.14.2/go1.21.0 gopls flags: update flags: proxy extension version: 0.40.1 environment: Visual Studio Code win32 initialization error: undefined issue timestamp: Thu, 18 Jan 2024 08:53:45 GMT restart history: Thu, 18 Jan 2024 08:50:17 GMT: activation (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: unrecognized crash pattern.
gopls stats -anon { "DirStats": { "Files": 31, "TestdataFiles": 0, "GoFiles": 6, "ModFiles": 1, "Dirs": 10 }, "GOARCH": "386", "GOOS": "windows", "GoVersion": "go1.21.0", "GoplsVersion": "v0.14.2", "InitialWorkspaceLoadDuration": "6.7490077s", "MemStats": { "HeapAlloc": 57422648, "HeapInUse": 82935808, "TotalAlloc": 586537608 }, "WorkspaceStats": { "Files": { "Total": 2975, "Largest": 4950165, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.21.0", "AllPackages": { "Packages": 610, "LargestPackage": 133, "CompiledGoFiles": 2975, "Modules": 80 }, "WorkspacePackages": { "Packages": 5, "LargestPackage": 3, "CompiledGoFiles": 9, "Modules": 1 }, "Diagnostics": 1 } ] } }
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.
hyangah commented 8 months ago

Thanks for the report. @nepalsaurav 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

nepalsaurav commented 8 months ago

sorry for late reply. I am on holiday. I will share you log on 21 jan sunday.