Skip to content

x/tools/gopls: "missing reachable node for %q" bug in evaluatePackageHandle #71352

@adonovan

Description

@adonovan
#!stacks
"bug.Reportf" && "evaluatePackageHandle.func2:+4"

Issue created by stacks.

		// Collect reachable nodes.
		var reachableNodes []*handleNode
		// In the presence of context cancellation, any package may be missing.
		// We need all dependencies to produce a key.
		reachable.Elems(func(id typerefs.IndexID) {
			dh := b.nodes[id]
			if dh == nil {
				// Previous code reported an error (not a bug) here.
				bug.Reportf("missing reachable node for %q", id) <---------- here
			} else {
				reachableNodes = append(reachableNodes, dh)
			}
		})

This stack HFIUJQ was reported by telemetry:

golang.org/x/tools/gopls@v0.17.1 go1.23.4 linux/amd64 vscode (1)
golang.org/x/tools/gopls@v0.17.1 go1.23.2 linux/amd64 vscode (2)

Dups: UHdPEQ ghFsGQ awlzOQ

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues 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.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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions