-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Labels
CrashDomain: EditorRelated to the LSP server, editor experienceRelated to the LSP server, editor experience
Description
@jakebailey the IDE is back to the state where it does this every couple of minutes.
Please let me know if there's any additional info that would be useful.Is it possible to suppress this error in the meantime?
[10:07:45.515] Updated watches in 53.166µs panic handling request textDocument/references Unhandled case in Node.Text: *ast.BindingPattern goroutine 701923 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x64 github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0x14000000f00, 0x140c0c88ff0) github.com/microsoft/typescript-go/internal/lsp/server.go:568 +0x44 panic({0x10099c220?, 0x14056ca2940?}) runtime/panic.go:783 +0x120 github.com/microsoft/typescript-go/internal/ast.(*Node).Text(0x14001bbe908?) github.com/microsoft/typescript-go/internal/ast/ast.go:338 +0x418 github.com/microsoft/typescript-go/internal/checker.(*Checker).getSymbolAtLocation(0x140636c8608, 0x1400d083de8, 0x1) github.com/microsoft/typescript-go/internal/checker/checker.go:30405 +0xefc github.com/microsoft/typescript-go/internal/checker.(*Checker).GetSymbolAtLocation(...) github.com/microsoft/typescript-go/internal/checker/checker.go:30345 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesAtLocation(0x140ab5a1a40, 0x14014c03e29?, 0x5?, 0x1400062fc00, 0x1) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1597 +0x80 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInContainer(0x140ab5a1a40, 0x14001bbe908, 0x14001bbe908, 0x1400062fc00, 0x1) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1554 +0x94 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInSourceFile(...) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1542 github.com/microsoft/typescript-go/internal/ls.(*refState).searchForName(0x140ab5a1a40, 0x14001bbe908, 0x1400062fc00) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:2016 +0x68 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInContainerOrFiles(0x140ab5a1a40, 0x14014d88f28?, 0x1400062fc00) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1535 +0x5c github.com/microsoft/typescript-go/internal/ls.getReferencedSymbolsForSymbol(0x140357a9868, 0x14014d88f28, {0x1407794c000, 0x1b8e, 0x1c00}, 0x1406e90bb28, 0x140636c8608, {0x0, 0x0, 0x2, ...}) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1219 +0x368 github.com/microsoft/typescript-go/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x1406b2a99e0, {0x100bbc5c0, 0x140e0bb3c70}, 0x9e4d, 0x14014d88f28, 0x140bf4d7860, {0x1407794c000, 0x1b8e, 0x1c00}, {0x0, ...}, ...) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:687 +0x624 github.com/microsoft/typescript-go/internal/ls.(*LanguageService).ProvideReferences(0x1406b2a99e0, {0x100bbc5c0, 0x140e0bb3c70}, 0x140c0c88fc0) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:417 +0xa8 github.com/microsoft/typescript-go/internal/lsp.(*Server).handleReferences(0x140002a6a20?, {0x100bbc5c0?, 0x140e0bb3c70?}, 0x14042bc6690?, 0x65?) github.com/microsoft/typescript-go/internal/lsp/server.go:828 +0x2c github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].17({0x100bbc5c0, 0x140e0bb3c70}, 0x140c0c88ff0) github.com/microsoft/typescript-go/internal/lsp/server.go:554 +0xe0 github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x14000000f00, {0x100bbc5c0, 0x140e0bb3c70}, 0x140c0c88ff0) github.com/microsoft/typescript-go/internal/lsp/server.go:449 +0xf4 github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1() github.com/microsoft/typescript-go/internal/lsp/server.go:354 +0x34 created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 10 github.com/microsoft/typescript-go/internal/lsp/server.go:374 +0x79c [Error - 10:07:45 AM] Request textDocument/references failed. Message: InternalError: panic handling request textDocument/references: Unhandled case in Node.Text: *ast.BindingPattern Code: -32603 panic handling request textDocument/references Unhandled case in Node.Text: *ast.BindingPattern goroutine 697916 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x64 github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0x14000000f00, 0x14010d57290) github.com/microsoft/typescript-go/internal/lsp/server.go:568 +0x44 panic({0x10099c220?, 0x14058eeb410?}) runtime/panic.go:783 +0x120 github.com/microsoft/typescript-go/internal/ast.(*Node).Text(0x14001bbe908?) github.com/microsoft/typescript-go/internal/ast/ast.go:338 +0x418 github.com/microsoft/typescript-go/internal/checker.(*Checker).getSymbolAtLocation(0x140636c8608, 0x1400d083de8, 0x1) github.com/microsoft/typescript-go/internal/checker/checker.go:30405 +0xefc github.com/microsoft/typescript-go/internal/checker.(*Checker).GetSymbolAtLocation(...) github.com/microsoft/typescript-go/internal/checker/checker.go:30345 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesAtLocation(0x140b07cf040, 0x14014c03e29?, 0x5?, 0x14000cd47e0, 0x1) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1597 +0x80 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInContainer(0x140b07cf040, 0x14001bbe908, 0x14001bbe908, 0x14000cd47e0, 0x1) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1554 +0x94 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInSourceFile(...) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1542 github.com/microsoft/typescript-go/internal/ls.(*refState).searchForName(0x140b07cf040, 0x14001bbe908, 0x14000cd47e0) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:2016 +0x68 github.com/microsoft/typescript-go/internal/ls.(*refState).getReferencesInContainerOrFiles(0x140b07cf040, 0x14014d88f28?, 0x14000cd47e0) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1535 +0x5c github.com/microsoft/typescript-go/internal/ls.getReferencedSymbolsForSymbol(0x140357a9868, 0x14014d88f28, {0x1407794c000, 0x1b8e, 0x1c00}, 0x1406d576db8, 0x140636c8608, {0x0, 0x0, 0x2, ...}) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:1219 +0x368 github.com/microsoft/typescript-go/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x140786ac450, {0x100bbc5c0, 0x140254bc550}, 0x9e4d, 0x14014d88f28, 0x140bf4d7860, {0x1407794c000, 0x1b8e, 0x1c00}, {0x0, ...}, ...) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:687 +0x624 github.com/microsoft/typescript-go/internal/ls.(*LanguageService).ProvideReferences(0x140786ac450, {0x100bbc5c0, 0x140254bc550}, 0x14010d57260) github.com/microsoft/typescript-go/internal/ls/findallreferences.go:417 +0xa8 github.com/microsoft/typescript-go/internal/lsp.(*Server).handleReferences(0x140002a6a20?, {0x100bbc5c0?, 0x140254bc550?}, 0x14042a6ef50?, 0x65?) github.com/microsoft/typescript-go/internal/lsp/server.go:828 +0x2c github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].17({0x100bbc5c0, 0x140254bc550}, 0x14010d57290) github.com/microsoft/typescript-go/internal/lsp/server.go:554 +0xe0 github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x14000000f00, {0x100bbc5c0, 0x140254bc550}, 0x14010d57290) github.com/microsoft/typescript-go/internal/lsp/server.go:449 +0xf4 github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1() github.com/microsoft/typescript-go/internal/lsp/server.go:354 +0x34 created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 10 github.com/microsoft/typescript-go/internal/lsp/server.go:374 +0x79c [Error - 10:07:45 AM] Request textDocument/references failed.
Originally posted by @richburdon in #1867
alexwork1611Copilot
Metadata
Metadata
Assignees
Labels
CrashDomain: EditorRelated to the LSP server, editor experienceRelated to the LSP server, editor experience