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

Closed
Mynraw opened this issue Jun 25, 2024 · 1 comment
Closed

gopls: automated issue report (crash) #3433

Mynraw opened this issue Jun 25, 2024 · 1 comment
Milestone

Comments

@Mynraw
Copy link

Mynraw commented Jun 25, 2024

gopls version: v0.16.0/go1.22.4
gopls flags:
update flags: proxy
extension version: 0.41.4
environment: Visual Studio Code darwin
initialization error: undefined
issue timestamp: Tue, 25 Jun 2024 10:17:15 GMT
restart history:
Tue, 25 Jun 2024 09:24:35 GMT: activation (enabled: true)

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: runtime error: slice bounds out of range [8:7]

goroutine 146 [running]:
golang.org/x/tools/gopls/internal/golang/completion.Selection.Suffix(...)
	  completion.go:367
golang.org/x/tools/gopls/internal/server.toProtocolCompletionItems({0x14000248008, 0x3, 0x140004b07e0%3F}, 0x140006a7e40, 0x14000336c88)
	  completion.go:114  0x778
golang.org/x/tools/gopls/internal/server.(*server).Completion(0x14000190600, {0x101aa2108, 0x140003c0060}, 0x14000426aa0)
	  completion.go:76  0x4cc
golang.org/x/tools/gopls/internal/protocol.serverDispatch({0x101aa2140, 0x14000347040}, {0x101abc050, 0x14000190600}, 0x14000d378c0, {0x101aa2300, 0x140006a6200})
	  tsserver.go:361  0x1f28
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x101aa2140, 0x14000347040}, 0x14000d378c0, {0x101aa2300, 0x140006a6200})
	  protocol.go:160  0x74
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x101aa2140, 0x14000347040}, 0x14000d378c0, {0x101aa2300, 0x140006a6200})
	  lsprpc.go:509  0x6e0
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x101aa2140, 0x14000347040}, 0x140006aaa98, {0x101aa2300, 0x140006a6200})
	  handler.go:35  0xc0
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
	  handler.go:103  0x90
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 92
	  handler.go:100  0x19c
gopls stats -anon { "DirStats": { "Files": 6, "TestdataFiles": 0, "GoFiles": 3, "ModFiles": 2, "Dirs": 2 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.22.4", "GoplsVersion": "v0.16.0", "InitialWorkspaceLoadDuration": "184.30225ms", "MemStats": { "HeapAlloc": 6987344, "HeapInUse": 12132352, "TotalAlloc": 78062136 }, "WorkspaceStats": { "Files": { "Total": 469, "Largest": 210104, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.22.4", "AllPackages": { "Packages": 45, "LargestPackage": 155, "CompiledGoFiles": 466, "Modules": 1 }, "WorkspacePackages": { "Packages": 1, "LargestPackage": 1, "CompiledGoFiles": 1, "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 Jun 25, 2024
@findleyr
Copy link
Contributor

Thank you for the report. This looks like a dupe of golang/go#68169.

@findleyr findleyr closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 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