microsoft / vscode

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

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

Closed aaray closed 1 year ago

aaray commented 1 year ago

Type: Bug

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

TypeScript Version: 4.8.4

Steps to reproduce crash 1. 2. 3.

Global TS Server Plugins

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:174658:34)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174666:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176335:26)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176609:97
    at Object.flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:525:25)
    at ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176609: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:177982:46)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180174:96
    at Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180165:28)
    at Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180174:41)
    at Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:180202:35)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:184368:31)
    at process.emit (node:events:526:28)
    at emit (node:internal/child_process:938:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:55.763Z) OS version: Darwin arm64 22.1.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|6, 10, 7| |Memory (System)|16.00GB (2.95GB free)| |Process Argv|. --crash-reporter-id ff8160cd-af39-443b-aa99-d375afb4f814| |Screen Reader|yes| |VM|0%|
Extensions (70) Extension|Author (truncated)|Version ---|---|--- cucumberautocomplete|ale|2.15.2 slack-vscode|alp|0.2.1 vscode-tailwindcss|bra|0.9.1 simple-react-snippets|bur|1.2.7 npm-intellisense|chr|1.4.2 vscode-postgres|cko|1.4.0 vscode-markdownlint|Dav|0.48.1 vscode-eslint|dba|2.2.6 vscode-styled-jsx-languageserver|Div|1.3.1 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|13.0.3 vscode-html-css|ecm|1.13.1 vscode-npm-script|eg2|0.3.29 prettier-vscode|esb|9.9.0 vscode-jest-runner|fir|0.4.59 copilot|Git|1.56.7152 vscode-pull-request-github|Git|0.52.0 go|gol|0.35.2 rest-client|hum|0.25.1 pre-commit-vscode|Mar|0.1.0 Kotlin|mat|1.7.1 azure-pipelines|ms-|1.208.0 vscode-docker|ms-|1.22.2 vscode-kubernetes-tools|ms-|1.3.10 python|ms-|2022.16.1 vscode-pylance|ms-|2022.11.10 jupyter|ms-|2022.9.1202862440 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.10 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.255.4 remote-ssh|ms-|0.90.1 remote-ssh-edit|ms-|0.84.0 azure-account|ms-|0.11.2 cmake-tools|ms-|1.12.27 cpptools|ms-|1.12.4 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.6.0 vsliveshare|ms-|1.0.5750 vsliveshare-audio|ms-|0.1.91 angular-console|nrw|17.23.3 vetur|oct|0.36.1 vscode-jest|Ort|4.6.0 platformio-ide|pla|2.5.5 vscode-thunder-client|ran|1.20.1 java|red|1.12.0 vscode-yaml|red|1.10.1 LiveServer|rit|5.7.9 vs-code-prettier-eslint|rve|5.0.4 code-settings-sync|Sha|3.4.3 mdx|sil|0.1.1 sonarlint-vscode|Son|3.11.0 vscode-stylelint|sty|1.2.3 open-in-browser|tec|2.0.0 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.6 vscodeintellicode|Vis|1.2.29 vscode-gradle|vsc|3.12.5 vscode-java-debug|vsc|0.46.0 vscode-java-dependency|vsc|0.21.1 vscode-java-pack|vsc|0.25.4 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.39.1 vscode-icons|vsc|12.0.1 fig|wit|0.0.6 vscode-mdx-preview|xyc|0.3.3 markdown-all-in-one|yzh|3.4.3 html-css-class-completion|Zig|1.20.0 vscode-proto3|zxh|0.5.5 (1 theme extensions excluded)
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 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 vsccc:30566497 pyindex848:30577860 nodejswelcome1cf:30587006 fc301958:30595537 2e4cg342:30596373 ```
vscodenpa commented 1 year ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

mjbvz commented 1 year ago

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

You have TypeScript server plugins enabled which could cause this

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!