-
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
"gopanic" && "DocumentURI.Path"
Issue created by stacks.
Why is the deferred call to recoverHandlerPanic in serverDispatch not causing recovery??
This stack cX84Vw was reported by telemetry:
crash/crashruntime.gopanic:+69,+0x167golang.org/x/tools/gopls/internal/protocol.DocumentURI.Path:+9,+0x3egolang.org/x/tools/gopls/internal/protocol.DocumentURI.Clean:+1,+0x17golang.org/x/tools/gopls/internal/cache.(*Session).SnapshotOf:+1,+0x44golang.org/x/tools/gopls/internal/cache.(*Session).FileOf:+1,+0x2agolang.org/x/tools/gopls/internal/server.(*server).DidCreateFiles:+7,+0x12agolang.org/x/tools/gopls/internal/protocol.serverDispatch:+650,+0x36dbgolang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func4:+5,+0x84golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func5:+52,+0x908golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1:+2,+0xc5golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2:+3,+0x95runtime.goexit:+0,+0x0
golang.org/x/tools/gopls@v0.19.1 go1.24.4 windows/amd64 other,vscode (1)
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