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) #3298

Closed
yernsun opened this issue Apr 1, 2024 · 1 comment
Closed

gopls: automated issue report (crash) #3298

yernsun opened this issue Apr 1, 2024 · 1 comment
Milestone

Comments

@yernsun
Copy link

yernsun commented Apr 1, 2024

gopls version: v0.15.2/go1.19.3
gopls flags:
update flags: proxy
extension version: 0.41.2
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Mon, 01 Apr 2024 08:44:33 GMT
restart history:
Mon, 01 Apr 2024 08:44:18 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

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

goroutine 4433 [running]:
go/types.NewChecker(0x0%3F, 0xc0021ac140, 0xc004a9b630, 0x0%3F)
	  check.go:240  0x24e
golang.org/x/tools/gopls/internal/cache.(*analysisNode).typeCheck(0xc000722000, {0xc0038b7de0, 0x2, 0x2})
	  analysis.go:1028  0x72c
golang.org/x/tools/gopls/internal/cache.(*analysisNode).run(0xc000722000, {0x1c84ca0, 0xc001a80480})
	  analysis.go:810  0xd9
golang.org/x/tools/gopls/internal/cache.(*analysisNode).runCached(0xc000722000, {0x1c84ca0%3F, 0xc001a80480})
	  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": 83, "TestdataFiles": 0, "GoFiles": 39, "ModFiles": 1, "Dirs": 35 }, "GOARCH": "amd64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.19.3", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "793.453625ms", "MemStats": { "HeapAlloc": 26476584, "HeapInUse": 37011456, "TotalAlloc": 56222664 }, "WorkspaceStats": { "Files": { "Total": 1908, "Largest": 395043, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.21.8", "AllPackages": { "Packages": 345, "LargestPackage": 140, "CompiledGoFiles": 1918, "Modules": 46 }, "WorkspacePackages": { "Packages": 15, "LargestPackage": 12, "CompiledGoFiles": 53, "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 Apr 1, 2024
@findleyr
Copy link
Contributor

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