TypeScript: TS Server fatal error: Debug Failure.
Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 5.6.2
Steps to reproduce crash I didn’t do anything difference as last time I opened VS Code and now it’s crashing
- Update to latest VS code (1.94.0)
- Open VS code to a TS project
- Make changes to some TS files
After regular usage, the TS server will just freeze up (infinite loading & no editing helpers).
According to issue Initellisense infinite loading microsoft/vscode#52691, I should be able to fix this by increasing TS server’s memory, but I shouldn’t have to do that…
TS Server Log
❗️ Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"
After enabling this setting, future crash reports will include the server log.
VS Code version: Code 1.94.0 (Universal) (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z) OS version: Darwin arm64 23.6.0 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 Pro (10 x 2400) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 11, 13, 12 |
| Memory (System) | 32.00GB (0.24GB free) |
| Process Argv | –crash-reporter-id cb0287d2-a42d-4774-a99d-41e7456b17dd |
| Screen Reader | no |
| VM | 0% |
Extensions (14)
| Extension | Author (truncated) | Version |
|---|---|---|
| better-comments | aar | 3.0.2 |
| vscode-sql-formatter | adp | 1.4.4 |
| githistory | don | 0.6.20 |
| gitlens | eam | 15.6.0 |
| prettier-vscode | esb | 11.0.0 |
| copilot | Git | 1.238.0 |
| copilot-chat | Git | 0.21.1 |
| inline-parameters | lia | 0.2.1 |
| live-server | ms- | 0.4.15 |
| vsliveshare | ms- | 1.0.5941 |
| sonarlint-vscode | Son | 4.11.1 |
| even-better-toml | tam | 0.19.2 |
| vscode-gradle | vsc | 3.16.4 |
| pretty-ts-errors | Yoa | 0.6.0 |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
autoexpandse:31146404
iacca1:31156133
notype1:31157159
5fd0e150:31155592
icondisabled:31158250
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 19 (9 by maintainers)
@andrewbranch the JS project that I experience the tsserver crash problem has
resolution-modeonly in the dev dependenciesprettierandwebpack-dev-server#60039 does not fix it, so I’ll investigate
I found a repro for this in the TypeScript repo.
node16,nodenextintests/cases, replace withnode16,node18,nodenextPlease try collecting the TS Server log from the crashed instance:
Set
"typescript.tsserver.log": "verbose"Restart VS Code and reproduce the problem
Open the
TypeScriptsection of the output panelAt the very top, find the first line that prints to path to the semantic error log file. It should look something like:
That file contains the typescript logs.
Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out