-
Notifications
You must be signed in to change notification settings - Fork 18.5k
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
"bug.Errorf:+2" && "cache.port.matches.func1:+2"
This stack FC7EOg was reported by telemetry:
// matches reports whether the port matches a file with the given absolute path
// and content.
...
func (p port) matches(path string, content []byte) bool {
...
// The only virtualized operation called by MatchFile is OpenFile.
ctxt.OpenFile = func(p string) (io.ReadCloser, error) {
if p != path {
return nil, bug.Errorf("unexpected file %q", p)
}
return io.NopCloser(bytes.NewReader(content)), nil
}
...gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35golang.org/x/tools/gopls/internal/util/bug.Errorf:+2golang.org/x/tools/gopls/internal/cache.port.matches.func1:+2go/build.(*Context).openFile:+2go/build.(*Context).matchFile:+27go/build.(*Context).MatchFile:=1420golang.org/x/tools/gopls/internal/cache.port.matches:+15golang.org/x/tools/gopls/internal/cache.defineView:+28golang.org/x/tools/gopls/internal/cache.selectViewDefs:+63golang.org/x/tools/gopls/internal/cache.(*Session).DidModifyFiles:+93golang.org/x/tools/gopls/internal/server.(*server).didModifyFiles:+36golang.org/x/tools/gopls/internal/server.(*server).DidOpen:+20golang.org/x/tools/gopls/internal/protocol.serverDispatch:+253golang.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:+2
golang.org/x/tools/gopls@v0.16.1 go1.23.0 linux/amd64 other (1)
golang.org/x/tools/gopls@v0.15.3 go1.22.2 darwin/arm64 neovim (1)
Issue created by golang.org/x/tools/gopls/internal/telemetry/cmd/stacks.
Dups: LJo3VQ qOsYYQ oVfJVw 9VQqVg hnsAPw
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