x/tools/gopls: crash when primary diagnostics have invalid positions #66731
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version: v0.15.2/go1.22.0
gopls flags:
update flags: proxy
extension version: 0.41.2
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Mon, 08 Apr 2024 02:53:47 GMT
restart history:
Wed, 03 Apr 2024 01:36:12 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 274, "TestdataFiles": 0, "GoFiles": 270, "ModFiles": 1, "Dirs": 94 }, "GOARCH": "amd64", "GOOS": "linux", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.0", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "511.819507ms", "MemStats": { "HeapAlloc": 30673448, "HeapInUse": 53641216, "TotalAlloc": 386990840 }, "WorkspaceStats": { "Files": { "Total": 1262, "Largest": 395026, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.0", "AllPackages": { "Packages": 244, "LargestPackage": 161, "CompiledGoFiles": 1270, "Modules": 9 }, "WorkspacePackages": { "Packages": 89, "LargestPackage": 31, "CompiledGoFiles": 283, "Modules": 1 }, "Diagnostics": 348 } ] } }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.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: