TypeScript: TS Server fatal error: Debug Failure. False expression.
Issue Type: Bug
TypeScript Version: 3.8.3 Steps to reproduce crash 1. 2. 3. TS Server Error Stack
Error: Debug Failure. False expression.
at watchFailedLookupLocationOfResolution (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:101865:22)
at Array.forEach (<anonymous>)
at watchFailedLookupLocationOfNonRelativeModuleResolutions (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:101901:25)
at Map.forEach (<anonymous>)
at Object.clearPerDirectoryResolutions [as startCachingPerDirectoryResolution] (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:101661:50)
at ConfiguredProject.Project.updateGraphWorker (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:139785:38)
at ConfiguredProject.Project.updateGraph (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:139729:42)
at ConfiguredProject.updateGraph (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:140654:63)
at updateProjectIfDirty (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:141076:45)
at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:143114:29)
at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:143396:107
at Object.mapDefined (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:562:30)
at ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:143396:48)
at Session.handlers.ts.createMapFromTemplate._a.<computed> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:144260:46)
at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:146003:88
at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:145994:28)
at IOSession.Session.executeCommand (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:146003:33)
at IOSession.Session.onMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:146027:35)
at Interface.<anonymous> (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:147342:27)
at Interface.emit (events.js:203:13)
at Interface._onLine (readline.js:316:10)
at Interface._normalWrite (readline.js:461:12)
at Socket.ondata (readline.js:172:10)
at Socket.emit (events.js:203:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:210:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)
VS Code version: Code - Insiders 1.45.0-insider (d4b8ec9da3bf1061a948fbb1b0d9d3db750cc79f, 2020-05-05T07:13:27.726Z) OS version: Darwin x64 19.4.0
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-9750H CPU @ 2.60GHz (12 x 2600) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | 3, 3, 2 |
Memory (System) | 16.00GB (0.31GB free) |
Process Argv | -psn_0_1216809 |
Screen Reader | no |
VM | 0% |
Extensions (17)
Extension | Author (truncated) | Version |
---|---|---|
better-toml | bun | 0.3.2 |
bracket-pair-colorizer | Coe | 1.0.61 |
vscode-eslint | dba | 2.1.5 |
gitlens | eam | 10.2.1 |
prettier-vscode | esb | 4.5.0 |
gitlab-workflow | fat | 2.2.0 |
file-icons | fil | 1.0.23 |
vscode-mocha-test-adapter | hbe | 2.3.0 |
vscode-test-explorer | hbe | 2.18.0 |
vscode-edit-csv | jan | 0.2.7 |
nbpreviewer | jit | 1.2.2 |
rust-analyzer | mat | 0.2.159 |
vscode-http-client | mkl | 0.34.0 |
sqltools | mtx | 0.21.7 |
tabnine-vscode | Tab | 2.8.2 |
vscodeintellicode | Vis | 1.2.6 |
markdown-all-in-one | yzh | 2.8.0 |
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (8 by maintainers)
I have done further research and it is definitely down to
ttypescript
. The good news is that it’s shockingly easy to move over tots-patch
if you’re usingtypescript-transform-paths
you’ll find the author is the same and he’s both very qualified and very much active. He’s working on a rearchitected v2 tots-patch
but there’s no need for people who just want to do path alias remapping.On Thu, Sep 16, 2021 at 6:48 PM Jason Kuhrt @.***> wrote:
Also tsserver log is useful: You can upload logs by following these steps:
"typescript.tsserver.log": "verbose"
TypeScript: Open TS Server log
commandtsserver.log
. Please share this file. Additionally you can also share fileti.log
created next to it.I ran into the same issue and also confirmed it was due to the usage of ttypescript. However, unlike @ksnyde, I was using
@zerollup/ts-transform-paths
, nottypescript-transform-paths
.Switching from ttsc to
ts-patch
fixed this issue for me. I was able to use ts-patch with@zerollup/ts-transform-paths
.That’s a completely different error stack, and I fully expect it to be caused by ttypescript or typescript-transform-paths. If you can reproduce it without using an unsupported patch of our compiler, feel free to open a new issue.
Note: i will add one caveat, and that is that I’m using ttsc instead of tsc because ttsc opens up using TS plugin API’s and I have a path alias which need resolving.
Closing as not actionable without more information
If you see this again with VS Code 1.53+ and TypeScript 4.15+, please let us know