-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone 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.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
"gopls/bug" && "(*importReader).objectPathObject:+9"
Issue created by stacks.
// objectPathObject is the inverse of exportWriter.objectPath.
//
// In shallow mode, certain fields and methods may need to be looked up in an
// imported package. See the doc for exportWriter.objectPath for a full
// explanation.
func (r *importReader) objectPathObject() types.Object {
objPath := objectpath.Path(r.string())
if objPath == "" {
return nil
}
pkg := r.pkg()
obj, err := objectpath.Object(pkg, objPath)
if err != nil {
if r.p.reportf != nil {
r.p.reportf("failed to find object for objectPath %q: %v", objPath, err)
}
}
return obj
}
This stack mZwxkA
was reported by telemetry:
gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Reportf:+1
golang.org/x/tools/internal/gcimporter.(*importReader).objectPathObject:+9
golang.org/x/tools/internal/gcimporter.(*importReader).doType:+80
golang.org/x/tools/internal/gcimporter.(*iimporter).typAt:+11
golang.org/x/tools/internal/gcimporter.(*importReader).obj:+44
golang.org/x/tools/internal/gcimporter.(*iimporter).doDecl:+25
golang.org/x/tools/internal/gcimporter.(*importReader).doType:+17
golang.org/x/tools/internal/gcimporter.(*iimporter).typAt:+11
golang.org/x/tools/internal/gcimporter.(*importReader).typ:+1
golang.org/x/tools/internal/gcimporter.(*importReader).doType:+48
golang.org/x/tools/internal/gcimporter.(*iimporter).typAt:+11
golang.org/x/tools/internal/gcimporter.(*importReader).obj:+44
golang.org/x/tools/internal/gcimporter.(*iimporter).doDecl:+25
golang.org/x/tools/internal/gcimporter.(*importReader).doType:+17
golang.org/x/tools/internal/gcimporter.(*iimporter).typAt:+11
golang.org/x/tools/[email protected] go1.24.1 windows/amd64 vscode (1)
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone 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.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