microsoft / vscode

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

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

Closed Steve-Jeong closed 1 year ago

Steve-Jeong commented 1 year ago

Type: Bug

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

TypeScript Version: 4.9.3

Steps to reproduce crash

1. 2. 3.

Global TypeScript Server Plugins

❗️ Please test with extensions disabled. Extensions are the root cause of most TypeScript server crashes

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 watchFailedLookupLocationOfResolution (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:124482:22)
    at Array.forEach (<anonymous>)
    at watchFailedLookupLocationOfNonRelativeModuleResolutions (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:124590:29)
    at Map.forEach (<anonymous>)
    at Object.startCachingPerDirectoryResolution (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:124168:50)
    at InferredProject.Project.updateGraphWorker (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:174195:38)
    at InferredProject.Project.updateGraph (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:174124:42)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:176482:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:178174:26)
    at /home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:178448:97
    at Object.flatMap (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:524:25)
    at ProjectService.applyChangesInOpenFiles (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:178448:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:179820:46)
    at /home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:182013:96
    at IpcIOSession.Session.executeWithRequestId (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:182004:28)
    at IpcIOSession.Session.executeCommand (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:182013:41)
    at IpcIOSession.Session.onMessage (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:182041:35)
    at process.<anonymous> (/home/ubuntu/.vscode-server/bin/5235c6bb189b60b01b1f49062f4ffa42384f8c91/extensions/node_modules/typescript/lib/tsserver.js:186197:31)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.74.0 (5235c6bb189b60b01b1f49062f4ffa42384f8c91, 2022-12-05T16:38:16.075Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No Remote OS version: Linux x64 5.15.79.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)| |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
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
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|63.77GB (43.39GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu-20.04/home/ubuntu/dev/deno/tailwind --remote=wsl+Ubuntu-20.04 --enable-proposed-api genuitecllc.codetogether --crash-reporter-id 3f973a7a-6b38-49ec-bcaa-e77d260e49cd| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-20.04| |OS|Linux x64 5.15.79.1-microsoft-standard-WSL2| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2303)| |Memory (System)|31.23GB (28.42GB free)| |VM|0%|
Extensions (41) Extension|Author (truncated)|Version ---|---|--- javascript-ejs-support|Dig|1.3.1 es7-react-js-snippets|dsz|4.4.3 vsc-material-theme|Equ|33.6.0 vsc-material-theme-icons|equ|2.5.0 vscode-firefox-debug|fir|2.9.8 better-cpp-syntax|jef|1.17.2 vscode-peacock|joh|4.2.2 vscode-edge-devtools|ms-|2.1.1 remote-containers|ms-|0.266.1 remote-ssh|ms-|0.94.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.72.0 vscode-remote-extensionpack|ms-|0.23.0 remote-explorer|ms-|0.0.3 material-icon-theme|PKi|4.23.1 twind-intellisense|sas|0.2.1 swdc-vscode|sof|2.6.38 sveltekit-snippets|sto|1.2.0 ayu|tea|1.0.5 JavaScriptSnippets|xab|1.8.0 material-theme|zhu|3.15.6 vscode-tailwindcss|bra|0.9.1 vscode-eslint|dba|2.2.6 vscode-deno|den|3.15.0 gitlens|eam|13.2.0 vscode-html-css|ecm|1.13.1 codetogether|gen|2022.2.3 rest-client|hum|0.25.1 mongodb-vscode|mon|0.9.5 vscode-docker|ms-|1.23.3 vsliveshare|ms-|1.0.5788 vsliveshare-audio|ms-|0.1.91 indent-rainbow|ode|8.3.1 vscode-thunder-client|ran|2.2.4 LiveServer|rit|5.7.9 twind-intellisense|sas|0.2.1 vscode-styled-components|sty|1.7.5 svelte-vscode|sve|106.4.1 quokka-vscode|Wal|1.0.519 vscode-import-cost|wix|3.3.0 project-tree|zhu|0.3.0 (6 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 vsccc:30610678 pyindex848:30577860 nodejswelcome1:30587005 282f8724:30602487 iaj6b796:30613358 89544117:30613380 fim-prod:30623723 ```
vscodenpa commented 1 year 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.74.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 1 year ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!