You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the fix will be available in go1.22.6 and go1.23.0. (not released yet)
If you build the gopls with go1.23rc2, does it fix the problem?
GOTOOLCHAIN=go1.23rc2 go install golang.org/x/tools/gopls@latest
hyangah
changed the title
gopls: automated issue report (crash)
gopls: automated issue report (crash) - assertion failure in range statement checking logic
Aug 7, 2024
gopls version: v0.16.1/go1.22.5
gopls flags:
update flags: proxy
extension version: 0.42.0
environment: Visual Studio Code win32
initialization error: undefined
issue timestamp: Tue, 06 Aug 2024 16:35:15 GMT
restart history:
Tue, 06 Aug 2024 16:26:38 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 8, "TestdataFiles": 0, "GoFiles": 2, "ModFiles": 1, "Dirs": 2 }, "GOARCH": "amd64", "GOOS": "windows", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.5", "GoplsVersion": "v0.16.1", "InitialWorkspaceLoadDuration": "1.1098554s", "MemStats": { "HeapAlloc": 7790336, "HeapInUse": 15351808, "TotalAlloc": 103135280 }, "WorkspaceStats": { "Files": { "Total": 485, "Largest": 210104, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.5", "AllPackages": { "Packages": 62, "LargestPackage": 148, "CompiledGoFiles": 483, "Modules": 1 }, "WorkspacePackages": { "Packages": 2, "LargestPackage": 2, "CompiledGoFiles": 3, "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.
<OPTIONAL: ATTACH LOGS HERE>
The text was updated successfully, but these errors were encountered: