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

Activity

added
goplsIssues related to the Go language server, gopls.
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.
on Jan 20, 2025
added this to the Unreleased milestone on Jan 20, 2025
added
BugReportIssues describing a possible bug in the Go implementation.
on Jan 20, 2025
adonovan

adonovan commented on Apr 10, 2025

@adonovan
MemberAuthor

We have not demonstrated that this is a memory corruption issue, and thus a child of #71425.

adonovan

adonovan commented on Jun 11, 2025

@adonovan
MemberAuthor

This stack UHdPEQ was reported by telemetry:

golang.org/x/tools/gopls@v0.18.1 go1.24.2 windows/amd64 vscode (5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Development

    No branches or pull requests

      Participants

      @adonovan@gopherbot@findleyr@gabyhelp

      Issue actions

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