Skip to content

x/tools/gopls: CodeAction: nil panic in findMatchingDiagnostics #71028

Closed
@adonovan

Description

@adonovan
#!stacks
"sigpanic" && "findMatchingDiagnostics:+5"

Issue created by stacks.

func (s *server) findMatchingDiagnostics(uri protocol.DocumentURI, pd protocol.Diagnostic) []*cache.Diagnostic {
	s.diagnosticsMu.Lock()
	defer s.diagnosticsMu.Unlock()

	var sds []*cache.Diagnostic
	for _, viewDiags := range s.diagnostics[uri].byView {   // nil deref panic

This stack mX6OTg was reported by telemetry:

golang.org/x/tools/[email protected] go1.23.1 darwin/arm64 other (1)

Dups: NgriWw

Metadata

Metadata

Assignees

Labels

NeedsInvestigationSomeone 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.goplsIssues related to the Go language server, gopls.gopls/telemetry-wins

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions