Frequent crashes: TypeScript Language server exited with non-zero code: 1
Closed this issue · 1 comments
Not sure how to properly report this. But I'm frequently getting crashes of the TypeScript Language Server. I don't know what causes it. My work involves mostly around JavaScript + TypeScript codebase. Crashes seem to occur after a while, like after several hours of work.
I've tried reinstalling the extension multiple times. I've also hoped that the new (6.1) version of Nova would somehow fix this, but it didn't.
To reproduce
- Open a project.
- Do some work.
- Receive a crash message.
Expected behavior
Stable language server with full support for both TypeScript and JavaScript code.
Environment
- Nova version: 6.1 (267836)
- Extension version: 2.1.1
- TypeScript version: 3.9.9
- Sidebar information: Status Stopped, TypeScript Version 3.9.9
- macOS version: 11.2.3
- NodeJS information:
- node version: v15.14.0
- npm version: 7.7.6
- yarn version: 1.22.10
- installation method: nvm
Extension console output
TypeScript Language Server[13:54:32.148000] [tsserver] npm ERR! code ETARGET
npm ERR! notarget No matching version found for @types/postcss-preset-env@ts3.9.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/hazeman/.npm/_logs/2021-04-23T11_54_32_123Z-debug.log
TypeScript Language Server[16:29:26.108000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:28.114000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:29.235000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:30.166000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:44.281000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:45.282000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:46.449000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:54.362000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:55.413000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:56.441000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[16:29:58.259000] Request textDocument/completion failed with message: completions timeout
TypeScript Language Server[17:04:14.606000] /Users/hazeman/Library/Application Support/Nova/Extensions/apexskier.typescript/dependencyManagement/node_modules/typescript-language-server/lib/utils.js:25
TypeScript Language Server[17:04:14.606000] this.reject(new Error(this.operation + " timeout"));
TypeScript Language Server[17:04:14.606000] ^
TypeScript Language Server[17:04:14.606000]
TypeScript Language Server[17:04:14.606000] Error: geterr timeout
TypeScript Language Server[17:04:14.607000] at Timeout.<anonymous> (/Users/hazeman/Library/Application Support/Nova/Extensions/apexskier.typescript/dependencyManagement/node_modules/typescript-language-server/lib/utils.js:25:25)
TypeScript Language Server[17:04:14.607000] at listOnTimeout (node:internal/timers:557:17)
TypeScript Language Server[17:04:14.607000] at processTimers (node:internal/timers:500:7)
Additional context
Project where crashes occur frequently is not a full TypeScript codebase. It's an express
(typescript backend) + React
(javascript frontend) app.