-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Open
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues 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.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
"bug.Errorf" && "golang.builtinDecl:+63"
Issue created by stacks.
if obj.Pkg() == types.Unsafe {
// package "unsafe":
// parse $GOROOT/src/unsafe/unsafe.go
//
// (Strictly, we shouldn't assume that the ID of a std
// package is its PkgPath, but no Bazel+gopackagesdriver
// users have complained about this yet.)
unsafe := snapshot.Metadata("unsafe")
if unsafe == nil {
// If the type checker somehow resolved 'unsafe', we must have metadata
// for it.
return nil, nil, bug.Errorf("no metadata for package 'unsafe'")
}This stack vDHSJA was reported by telemetry:
gopls/buggolang.org/x/tools/gopls/internal/util/bug.report:+35golang.org/x/tools/gopls/internal/util/bug.Errorf:+2golang.org/x/tools/gopls/internal/golang.builtinDecl:+63golang.org/x/tools/gopls/internal/golang.builtinDefinition:+1golang.org/x/tools/gopls/internal/golang.Definition:+66golang.org/x/tools/gopls/internal/server.(*server).Definition:+19golang.org/x/tools/gopls/internal/protocol.serverDispatch:+215golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3runtime.goexit:+0
golang.org/x/tools/gopls@v0.17.1 go1.23.4 darwin/arm64 vscode (1)
Dups: cKN8JA oii9dg
Metadata
Metadata
Assignees
Labels
BugReportIssues describing a possible bug in the Go implementation.Issues 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.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