-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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/crashruntime.gopanic:+69,+0x167golang.org/x/tools/internal/typesinternal.ZeroExpr:+68,+0x838golang.org/x/tools/gopls/internal/golang.createUndeclared:+75,+0x484golang.org/x/tools/gopls/internal/golang.ApplyFix.singleFile.func10:+1,+0x23golang.org/x/tools/gopls/internal/golang.ApplyFix:+43,+0x702golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix.func1:+1,+0x85golang.org/x/tools/gopls/internal/server.(*commandHandler).run.func2:+3,+0x86golang.org/x/tools/gopls/internal/server.(*commandHandler).run:+81,+0x582golang.org/x/tools/gopls/internal/server.(*commandHandler).ApplyFix:+2,+0x19cgolang.org/x/tools/gopls/internal/protocol/command.Dispatch:+31,+0xac1golang.org/x/tools/gopls/internal/server.(*server).ResolveCodeAction:+21,+0x1b8golang.org/x/tools/gopls/internal/protocol.serverDispatch:+46,+0xcf9golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x84golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x908golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xc5golang.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