Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopls: automated issue report (crash) #3292

Closed
delivey opened this issue Mar 29, 2024 · 1 comment
Closed

gopls: automated issue report (crash) #3292

delivey opened this issue Mar 29, 2024 · 1 comment
Milestone

Comments

@delivey
Copy link

delivey commented Mar 29, 2024

gopls version: v0.15.2/go1.20.5
gopls flags:
update flags: proxy
extension version: 0.41.2
environment: Cursor darwin
initialization error: undefined
issue timestamp: Fri, 29 Mar 2024 21:03:07 GMT
restart history:
Fri, 29 Mar 2024 13:07:09 GMT: activation (enabled: true)
Fri, 29 Mar 2024 13:39:53 GMT: manual (enabled: true)
Fri, 29 Mar 2024 20:59:20 GMT: manual (enabled: true)
Fri, 29 Mar 2024 20:59:53 GMT: manual (enabled: true)
Fri, 29 Mar 2024 21:02:17 GMT: manual (enabled: true)
Fri, 29 Mar 2024 21:02:55 GMT: manual (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: invalid Go version "go1.22.1" (should be something like "go1.12")

goroutine 5216 [running]:
go/types.NewChecker(0x0%3F, 0xc00355b180, 0xc00725ac30, 0x0%3F)
	  check.go:237  0x24e
golang.org/x/tools/gopls/internal/cache.(*analysisNode).typeCheck(0xc00177e210, {0xc007c97d28, 0x1, 0x1})
	  analysis.go:1028  0x73d
golang.org/x/tools/gopls/internal/cache.(*analysisNode).run(0xc00177e210, {0x1e50778%3F, 0xc004066270})
	  analysis.go:810  0x218
golang.org/x/tools/gopls/internal/cache.(*analysisNode).runCached(0xc00177e210, {0x1e50778%3F, 0xc004066270})
	  analysis.go:672  0x145
golang.org/x/tools/gopls/internal/cache.(*Snapshot).Analyze.func6.1()
	  analysis.go:398  0xda
golang.org/x/sync/errgroup.(*Group).Go.func1()
	  errgroup.go:78  0x64
created by golang.org/x/sync/errgroup.(*Group).Go
	  errgroup.go:75  0xa5
gopls stats -anon { "DirStats": { "Files": 1922, "TestdataFiles": 0, "GoFiles": 146, "ModFiles": 1, "Dirs": 340 }, "GOARCH": "amd64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.20.5", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "1.34662825s", "MemStats": { "HeapAlloc": 52476784, "HeapInUse": 83173376, "TotalAlloc": 814050808 }, "WorkspaceStats": { "Files": { "Total": 2759, "Largest": 935931, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.1", "AllPackages": { "Packages": 468, "LargestPackage": 155, "CompiledGoFiles": 2787, "Modules": 78 }, "WorkspacePackages": { "Packages": 52, "LargestPackage": 12, "CompiledGoFiles": 178, "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>

@gopherbot gopherbot added this to the Untriaged milestone Mar 29, 2024
@findleyr
Copy link
Member

findleyr commented Apr 1, 2024

Duplicate of golang/go#66636, which we will fix for gopls@v0.15.3.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants