Skip to content

x/tools/gopls: ChangeSignature: "cannot inline: corrupted reference" bug #73779

Open
@adonovan

Description

@adonovan
#!stacks
"inlineAllCalls:+120" && "bug.Errorf"

Issue created by stacks.

		// Sanity check.
		if obj := refpkg.TypesInfo().ObjectOf(name); obj == nil ||
			obj.Name() != origDecl.Name.Name ||
			obj.Pkg() == nil ||
			obj.Pkg().Path() != string(pkg.Metadata().PkgPath) {

			return nil, bug.Errorf("cannot inline: corrupted reference %v", ref)
		}

This stack e_6wqw was reported by telemetry:

golang.org/x/tools/gopls@v0.18.1 go1.24.3 darwin/arm64 vscode (1)

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