-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/telemetry-wins
Milestone
Description
#!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" || /* default case */
"bug.Reportf" && "(*indexBuilder).build.func2:+28" /* method.Origin() != method */
Note that various cases of the refinement switch have been observed to have been reached.
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 } ] } }Metadata
Metadata
Assignees
Labels
ToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.gopls/telemetry-wins