-
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
"sigpanic" && "mcp.summarizeDiagnostics:+6"
Issue created by stacks.
func summarizeDiagnostics(ctx context.Context, snapshot *cache.Snapshot, w io.Writer, diagnostics []*cache.Diagnostic, fixes map[*cache.Diagnostic]*protocol.CodeAction) error {
for _, d := range diagnostics {
... fix, ok := fixes[d]
if ok {
diff, err := toUnifiedDiff(ctx, snapshot, fix.Edit.DocumentChanges) <----- SEGV
This stack HZxbeA
was reported by telemetry:
crash/crash
runtime.gopanic:+69,+0x153
runtime.panicmem:=262,+0x2ff
runtime.sigpanic:+19,+0x2cc
golang.org/x/tools/gopls/internal/mcp.summarizeDiagnostics:+6,+0x184
golang.org/x/tools/gopls/internal/mcp.(*handler).workspaceDiagnosticsHandler:+54,+0x5e3
golang.org/x/tools/gopls/internal/mcp.(*handler).workspaceDiagnosticsHandler-fm:+0,+0x43
golang.org/x/tools/internal/mcp.newServerToolErr[...].func1:+14,+0x12f
golang.org/x/tools/internal/mcp.(*Server).callTool:+7,+0x1bf
golang.org/x/tools/internal/mcp.init.serverMethod[...].func53:+1,+0x43
golang.org/x/tools/internal/mcp.init.newMethodInfo[...].func55:+4,+0x4f
golang.org/x/tools/internal/mcp.defaultReceivingMethodHandler[...]:+6,+0x9f
golang.org/x/tools/internal/mcp.defaultReceivingMethodHandler[...]:+0,+0x5b
golang.org/x/tools/internal/mcp.handleReceive[...]:+12,+0x15f
golang.org/x/tools/internal/mcp.(*ServerSession).handle:+18,+0x1c7
golang.org/x/tools/internal/mcp.connect[...].func1.1:+0,+0x47
golang.org/x/tools/internal/jsonrpc2_v2.HandlerFunc.Handle:+1,+0x37
golang.org/x/tools/internal/jsonrpc2_v2.(*Connection).handleAsync:+27,+0xdf
golang.org/x/tools/[email protected] go1.24.5 darwin/arm64 other,vscode (1)
Dups: p2z9Zg
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