We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version: v0.15.2/go1.20.11 gopls flags: update flags: proxy extension version: 0.41.2 environment: Visual Studio Code linux initialization error: undefined issue timestamp: Wed, 27 Mar 2024 04:44:40 GMT restart history: Wed, 27 Mar 2024 01:47:34 GMT: activation (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 785 [running]: go/types.NewChecker(0x0%3F, 0xc0004e0080, 0xc00037e050, 0x0%3F) check.go:237 0x24e golang.org/x/tools/gopls/internal/cache.(*analysisNode).typeCheck(0xc001113080, {0xc0000125b0, 0x1, 0x1}) analysis.go:1028 0x73d golang.org/x/tools/gopls/internal/cache.(*analysisNode).run(0xc001113080, {0x124b458%3F, 0xc000283e90}) analysis.go:810 0x218 golang.org/x/tools/gopls/internal/cache.(*analysisNode).runCached(0xc001113080, {0x124b458%3F, 0xc000283e90}) 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
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:
This was fixed in https://go.dev/cl/507975. To get this fix please rebuild gopls with go1.21 or newer:
$ go install golang.org/x/tools/gopls@latest
You can verify that gopls has the new version:
$ gopls -v version Build info ---------- golang.org/x/tools/gopls v0.15.2 golang.org/x/tools/gopls@v0.15.2 h1:4JKt4inO8JaFW3l/Fh9X1k/5JQn+iUOpdc4/Lpi0mOs= github.com/BurntSushi/toml@v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/google/go-cmp@v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= golang.org/x/exp/typeparams@v0.0.0-20221212164502-fae10dda9338 h1:2O2DON6y3XMJiQRAS1UWU+54aec2uopH3x7MAiqGW6Y= golang.org/x/mod@v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= golang.org/x/sync@v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/telemetry@v0.0.0-20240209200032-7b892fcb8a78 h1:vcVnuftN4J4UKLRcgetjzfU9FjjgXUUYUc3JhFplgV4= golang.org/x/text@v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/tools@v0.18.1-0.20240311201521-78fbdeb61842 h1:No0LMXYFkp3j4oEsPdtY8LUQz33gu79Rm9DE+izMeGQ= golang.org/x/vuln@v1.0.1 h1:KUas02EjQK5LTuIx1OylBQdKKZ9jeugs+HiqO5HormU= honnef.co/go/tools@v0.4.6 h1:oFEHCKeID7to/3autwsWfnuv69j3NsfcXbvJKuIcep8= mvdan.cc/gofumpt@v0.6.0 h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo= mvdan.cc/xurls/v2@v2.5.0 h1:lyBNOm8Wo71UknhUs4QTFUNNMyxy2JEIaKKo0RWOh+8= go: go1.21.5
Once the new version is installed, be sure to restart the language server using > Go: Restart Language Server
> Go: Restart Language Server
Sorry, something went wrong.
Duplicate of golang/go#66636, which we will fix for gopls@v0.15.3.
No branches or pull requests
gopls version: v0.15.2/go1.20.11
gopls flags:
update flags: proxy
extension version: 0.41.2
environment: Visual Studio Code linux
initialization error: undefined
issue timestamp: Wed, 27 Mar 2024 04:44:40 GMT
restart history:
Wed, 27 Mar 2024 01:47:34 GMT: activation (enabled: true)
ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.
Describe what you observed.
gopls stats -anon
{ "DirStats": { "Files": 230, "TestdataFiles": 0, "GoFiles": 10, "ModFiles": 4, "Dirs": 152 }, "GOARCH": "amd64", "GOOS": "linux", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.20.11", "GoplsVersion": "v0.15.2", "InitialWorkspaceLoadDuration": "29.184708ms", "MemStats": { "HeapAlloc": 3089784, "HeapInUse": 5922816, "TotalAlloc": 37871936 }, "WorkspaceStats": { "Files": { "Total": 0, "Largest": 0, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.1", "AllPackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "WorkspacePackages": { "Packages": 0, "LargestPackage": 0, "CompiledGoFiles": 0, "Modules": 0 }, "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: