golang / vscode-go

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

gopls: automated issue report (crash) #3512

Closed FarmerChillax closed 1 month ago

FarmerChillax commented 2 months ago

gopls version: v0.16.1/go1.22.5 gopls flags: update flags: proxy extension version: 0.42.0 environment: Visual Studio Code darwin initialization error: undefined issue timestamp: Thu, 29 Aug 2024 03:59:02 GMT restart history: Tue, 27 Aug 2024 07:53:20 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: no gopls log.
gopls stats -anon { "DirStats": { "Files": 4444, "TestdataFiles": 0, "GoFiles": 165, "ModFiles": 1, "Dirs": 334 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.5", "GoplsVersion": "v0.16.1", "InitialWorkspaceLoadDuration": "1.174114125s", "MemStats": { "HeapAlloc": 62934704, "HeapInUse": 96608256, "TotalAlloc": 973228720 }, "WorkspaceStats": { "Files": { "Total": 3565, "Largest": 5716013, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.5", "AllPackages": { "Packages": 682, "LargestPackage": 155, "CompiledGoFiles": 3562, "Modules": 124 }, "WorkspacePackages": { "Packages": 47, "LargestPackage": 18, "CompiledGoFiles": 166, "Modules": 1 }, "Diagnostics": 5 } ] } }
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 1 month ago

Please upgrade to go 1.22.6 or later and reinstall gopls. There was a bug in the type checker in go 1.22.5 that has since been fixed.