Closed
Description
#!stacks
"bug.Errorf" && "selectViewDefs:+67"
Issue created by stacks.
def, err = defineView(ctx, fs, folder, fh)
if err != nil {
// We should never call selectViewDefs with a cancellable context, so
// this should never fail.
return nil, bug.Errorf("failed to define view for open file: %v", err)
}
This stack TUHRvQ
was reported by telemetry:
gopls/bug
golang.org/x/tools/gopls/internal/util/bug.report:+35
golang.org/x/tools/gopls/internal/util/bug.Errorf:+2
golang.org/x/tools/gopls/internal/cache.selectViewDefs:+67
golang.org/x/tools/gopls/internal/cache.(*Session).DidModifyFiles:+93
golang.org/x/tools/gopls/internal/server.(*server).didModifyFiles:+36
golang.org/x/tools/gopls/internal/server.(*server).DidChangeWatchedFiles:+13
golang.org/x/tools/gopls/internal/protocol.serverDispatch:+634
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3:+5
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4:+52
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3
runtime.goexit:+0
golang.org/x/tools/gopls@v0.16.2 go1.23.0 darwin/arm64 vscode (1)
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
gabyhelp commentedon Dec 18, 2024
Related Issues
master" for standalone file #69331 (closed)(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
gopherbot commentedon Dec 30, 2024
Change https://go.dev/cl/639435 mentions this issue:
gopls/internal/cache: remove overzealous bug.Report
gopls/internal/cache: remove overzealous bug.Report