8000 Language server 3.3.0 crashes on a textDocument/codeAction request · Issue #694 · typescript-language-server/typescript-language-server · GitHub
[go: up one dir, main page]

Skip to content
Language server 3.3.0 crashes on a textDocument/codeAction request #694
Closed
@spacebean

Description

@spacebean

org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request textDocument/codeAction failed with message: TypeScript Server Error (4.9.5)
Cannot read properties of undefined (reading 'heritageClauses')
TypeError: Cannot read properties of undefined (reading 'heritageClauses')
at getNodes (/usr/lib/node_modules/typescript/lib/tsserver.js:159276:63)
at Object.getCodeActions (/usr/lib/node_modules/typescript/lib/tsserver.js:159260:29)
at /usr/lib/node_modules/typescript/lib/tsserver.js:153574:77
at Object.flatMap (/usr/lib/node_modules/typescript/lib/tsserver.js:524:25)
at Object.getFixes (/usr/lib/node_modules/typescript/lib/tsserver.js:153574:23)
at /usr/lib/node_modules/typescript/lib/tsserver.js:169473:35
at Object.flatMap (/usr/lib/node_modules/typescript/lib/tsserver.js:524:25)
at Object.getCodeFixesAtPosition (/usr/lib/node_modules/typescript/lib/tsserver.js:169471:23)
at Session.getCodeFixes (/usr/lib/node_modules/typescript/lib/tsserver.js:181721:64)
at Session.handlers.ts.Map.ts.getEntries._a. (/usr/lib/node_modules/typescript/lib/tsserver.js:180100:61)
at /usr/lib/node_modules/typescript/lib/tsserver.js:182034:96
at Session.executeWithRequestId (/usr/lib/node_modules/typescript/lib/tsserver.js:182025:28)
at Session.executeCommand (/usr/lib/node_modules/typescript/lib/tsserver.js:182034:41)
at Session.onMessage (/usr/lib/node_modules/typescript/lib/tsserver.js:182062:35)
at process. (/usr/lib/node_modules/typescript/lib/tsserver.js:186218:31)
at process.emit (node:events:513:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

crashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0