Skip to content

x/tools/gopls/internal/cache/methodsets: "missing object path for %s" bug in indexBuilder.build #70418

Open
@jacksoom

Description

@jacksoom
#!stacks
"runtime.gopanic" && "methodsets.(*indexBuilder).build.func2:+12" ||
 "bug.Reportf" && "(*indexBuilder).build.func2.1:+1" || // off-by-one line due to telemetry bug
 "bug.Reportf" && "(*indexBuilder).build.func2:+32"

Issue created by stacks.

		// Instantiations of generic methods don't have an
		// object path, so we use the generic.
		if p, err := objectpathFor(method.Origin()); err != nil {
			panic(err) // can't happen for a method of a package-level type
		} else {
			m.ObjectPath = b.string(string(p))
		}

First stack is here.

gopls version: v0.17.0-pre.2/go1.23.2
gopls flags:
update flags: proxy
extension version: 0.42.1
environment: Cursor darwin
initialization error: undefined
issue timestamp: Sat, 16 Nov 2024 15:11:16 GMT
restart history:
Sat, 16 Nov 2024 15:10:59 GMT: activation (enabled: true)

gopls stats -anon { "DirStats": { "Files": 5774, "TestdataFiles": 216, "GoFiles": 960, "ModFiles": 1, "Dirs": 516 }, "GOARCH": "arm64", "GOOS": "darwin", "GOPACKAGESDRIVER": "", "GOPLSCACHE": "", "GoVersion": "go1.23.2", "GoplsVersion": "v0.17.0-pre.2", "InitialWorkspaceLoadDuration": "1.603257166s", "MemStats": { "HeapAlloc": 318890328, "HeapInUse": 434987008, "TotalAlloc": 1358687472 }, "WorkspaceStats": { "Files": { "Total": 9784, "Largest": 4950165, "Errs": 0 }, "Views": [ { "GoCommandVersion": "go1.23.2", "AllPackages": { "Packages": 2191, "LargestPackage": 159, "CompiledGoFiles": 10309, "Modules": 322 }, "WorkspacePackages": { "Packages": 199, "LargestPackage": 54, "CompiledGoFiles": 1185, "Modules": 1 }, "Diagnostics": 0 } ] } }
Dups: yJIbcA 9nLJcw B-EmyA re0xQw VFXJYg MDN9RQ yO6-PA RUV5wg WIlwRw

Metadata

Metadata

Assignees

Labels

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