microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.19k stars 28.06k forks source link

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

Closed tujindong closed 11 months ago

tujindong commented 11 months ago

Issue Type: Bug

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

TypeScript Version: 5.2.0-dev.20230709

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 ConfiguredProject2.updateGraphWorker (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:176702:11)
    at ConfiguredProject2.updateGraph (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:176561:32)
    at ConfiguredProject2.updateGraph (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:177816:24)
    at updateProjectIfDirty (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:178269:35)
    at _ProjectService.assignProjectToOpenedScriptInfo (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:180529:11)
    at c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:180806:64
    at flatMap (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:2596:17)
    at _ProjectService.applyChangesInOpenFiles (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:180806:24)
    at updateOpen (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:181986:29)
    at c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:184563:69
    at IpcIOSession.executeWithRequestId (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:184555:14)
    at IpcIOSession.executeCommand (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:184563:29)
    at IpcIOSession.onMessage (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:184605:51)
    at process.<anonymous> (c:\Users\Administrator\.vscode\extensions\ms-vscode.vscode-typescript-next-5.2.20230709\node_modules\typescript\lib\tsserver.js:186186:14)
    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.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:15:52.058Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2904)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.72GB (1.08GB free)| |Process Argv|--crash-reporter-id 906647d4-21f6-4b83-96b6-6f195a877a47| |Screen Reader|no| |VM|0%|
Extensions (41) Extension|Author (truncated)|Version ---|---|--- browse-lite|ant|0.3.2 vite|ant|0.2.5 vscode-markdownlint|Dav|0.49.0 quicktype-refresh|dog|1.0.2 gitlens|eam|12.1.2 tslint|eg2|1.0.47 vsc-material-theme-icons|equ|2.8.0 prettier-vscode|esb|9.19.0 styled-components-extractor|Fal|0.1.1 code-runner|for|0.12.0 leek-fund|gis|3.3.0 styled-component-generator|gme|0.0.3 vue|jcb|0.1.5 styled-components-indicator|joa|1.0.1 styled-components-snippets|jon|0.10.0 i18n-ally|lok|2.8.1 vscode-styled-components|mf|0.2.2 prettify-json|moh|0.0.3 vscode-language-pack-zh-hans|MS-|1.70.8170916 remote-repositories|ms-|0.18.0 vscode-typescript-next|ms-|5.2.20230709 vscode-typescript-tslint-plugin|ms-|1.3.4 vscode-react-native|msj|1.11.1 vetur|oct|0.37.3 material-icon-theme|PKi|4.28.0 vscode-xml|red|0.25.0 live-sass|rit|3.0.0 LiveServer|rit|5.7.9 markdown|sta|2.0.1 language-stylus|sys|1.16.0 markdowntable|Tak|0.10.4 volar|Vue|1.8.4 vscode-typescript-vue-plugin|Vue|1.8.4 chatgpt-china|Whe|8.0.1 eno|Wsc|2.3.53 JavaScriptSnippets|xab|1.8.0 five-server|yan|0.2.3 vuter|yoy|0.1.2 super-stock|yuj|1.0.16 json|Zai|2.0.2 material-theme|zhu|3.15.6 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30784848 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30737416 pythonms35:30701012 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 hideindicator:30785051 pythongtdpath:30769146 bgfeh915:30780428 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnoceb:30776495 ```
VSCodeTriageBot commented 11 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.80.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 11 months ago

Closing as this is an old VS Code version. Please update to the latest VS Code release: 1.80+