-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/telemetry-wins
Milestone
Description
#!stacks
"gopanic" && "ZeroExpr" && "createUndeclared" && "ApplyFix"
Issue created by stacks.
Not sure how TypesFromContext can return a Tuple type, but that function could use a clearer theory, better documentation, and comprehensive tests.
This stack Ja7blg
was reported by telemetry:
crash/crash
runtime.gopanic:+69,+0x167
golang.org/x/tools/internal/typesinternal.ZeroExpr:+68,+0x838
golang.org/x/tools/gopls/internal/golang.createUndeclared:+75,+0x484
golang.org/x/tools/gopls/internal/golang.ApplyFix.singleFile.func10:+1,+0x23
golang.org/x/tools/gopls/internal/golang.ApplyFix:+43,+0x702
golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix.func1:+1,+0x85
golang.org/x/tools/gopls/internal/server.(*commandHandler).run.func2:+3,+0x86
golang.org/x/tools/gopls/internal/server.(*commandHandler).run:+81,+0x582
golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix:+2,+0x19c
golang.org/x/tools/gopls/internal/protocol/command.Dispatch:+31,+0xac1
golang.org/x/tools/gopls/internal/server.(*server).ResolveCodeAction:+21,+0x1b8
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+46,+0xcf9
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x84
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x908
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xc5
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x95
golang.org/x/tools/[email protected] go1.24.3 linux/amd64 other,vscode (1)
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues describing a possible bug in the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/telemetry-wins