Skip to content

TS Server fatal error: Debug Failure. False expression. #50128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
marcoarruda opened this issue Jul 29, 2022 · 4 comments
Closed

TS Server fatal error: Debug Failure. False expression. #50128

marcoarruda opened this issue Jul 29, 2022 · 4 comments
Labels
Duplicate An existing issue was already created Fixed A PR has been merged for this issue

Comments

@marcoarruda
Copy link

Issue Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.7.3

Steps to reproduce crash
1.
2.
3.

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.

TS Server Error Stack
Server: semantic

Error: Debug Failure. False expression.
    at _loop_3 (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:171897:34)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:171905:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173574:26)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173848:97
    at Object.flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:508:25)
    at ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:173848:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174983:46)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177172:88
    at IpcIOSession.Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177163:28)
    at IpcIOSession.Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177172:33)
    at IpcIOSession.Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:177198:35)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:179833:31)
    at process.emit (node:events:390:28)
    at emit (node:internal/child_process:917:12)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.69.2 (3b889b090b5ad5793f524b5d1d39fda662b96a2a, 2022-07-18T16:32:39.000Z)
OS version: Darwin arm64 21.5.0
Restricted Mode: No

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 8.00GB (0.17GB free)
Process Argv --crash-reporter-id 9924a6a5-170f-4499-ba14-7f42952c08e1
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
vue-property-decorator-snippets ant 0.0.4
vscode-tailwindcss bra 0.8.6
vscode-eslint dba 2.2.6
gitlens eam 12.1.2
prettier-vscode esb 9.5.0
vscode-jest-runner fir 0.4.48
vscode-pull-request-github Git 0.47.2022072509
vscode-graphql Gra 0.6.0
ts-debug kak 0.0.6
vscode-docker ms- 1.22.1
remote-containers ms- 0.241.3
vsliveshare ms- 1.0.5667
angular-console nrw 17.19.0
emoji Per 1.0.1
material-icon-theme PKi 4.19.0
vscode-thunder-client ran 1.16.7
vscode-xml red 0.21.2022062916
vscode-stylelint sty 1.2.2
volar Vue 0.39.2
vuetify-vscode vue 0.2.0
vitest-explorer Zix 0.2.20
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
pylanb8912:30529769
vsclangdc:30486549
c4g48928:30535728

@mjbvz mjbvz transferred this issue from microsoft/vscode Aug 1, 2022
@mjbvz mjbvz removed their assignment Aug 1, 2022
@constagorgan
Copy link

I think your issue might have the same cause as mine: #50162
Try @DanielRosenwasser's suggestion to install the nightly build extension from here: https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next and let us know in case it fixes your problem.

@DanielRosenwasser
Copy link
Member

Yes, I think #49986 is actually closer, but my advice is the same - give the nightly version a shot since I think this issue has been fixed by #50042!

@marcoarruda
Copy link
Author

I've been working with the latest version since then and the issue didn't happen anymore.

@DanielRosenwasser
Copy link
Member

Thanks!

@DanielRosenwasser DanielRosenwasser added Duplicate An existing issue was already created Fixed A PR has been merged for this issue labels Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants