microsoft / vscode

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

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

Closed thilllon closed 1 year ago

thilllon commented 1 year ago

Type: Bug

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

TypeScript Version: 4.9.5

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 _loop_3 (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176518:34)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176526:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178195:26)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178469:97
    at Object.flatMap (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:524:25)
    at ProjectService.applyChangesInOpenFiles (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:178469: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:179841:46)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:182034:96
    at Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:182025:28)
    at Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:182034:41)
    at Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:182062:35)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:186218: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.75.1 (Universal) (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:34:59.000Z) OS version: Darwin arm64 22.2.0 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Apple M1 Max (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, 7, 6| |Memory (System)|32.00GB (0.10GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (121) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.3.1 tsl-problem-matcher|amo|0.6.2 vscode-apollo|apo|1.19.11 vscode-zipfs|arc|3.0.0 atlascode|atl|3.0.2 vscode-mjml|att|1.6.0 folder-source-actions|bie|0.2.1 vscode-tailwindcss|bra|0.9.7 better-toml|bun|0.3.2 path-intellisense|chr|2.8.4 postcss|css|1.0.9 vscode-database-client2|cwe|6.2.1 vscode-eslint|dba|2.4.0 confluence-markup|den|1.0.0 es7-react-js-snippets|dsz|4.4.3 vscode-wasm|dts|1.4.0 gitlens|eam|13.2.0 vscode-html-css|ecm|1.13.1 EditorConfig|Edi|0.16.4 vscode-front-matter|eli|8.3.0 carbon-now-sh|eri|1.2.0 prettier-vscode|esb|9.10.4 vscode-diff|fab|1.4.2 live-p5|fil|1.4.3 vscode-jest-runner|fir|0.4.60 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 shell-format|fox|7.2.5 macros|ged|1.2.1 codespaces|Git|1.13.8 copilot|Git|1.73.8685 copilot-labs|Git|0.10.704 remotehub|Git|0.51.2023022101 vscode-pull-request-github|Git|0.58.2 gitlab-workflow|Git|3.60.0 go|gol|0.37.1 cloudcode|goo|1.21.3 vscode-graphql|Gra|0.8.5 vscode-graphql-execution|Gra|0.1.7 vscode-graphql-syntax|Gra|1.0.6 todo-tree|Gru|0.0.224 rest-client|hum|0.25.1 turbo-console-debuglog|ida|1.0.0 batch-rename-extension|Jan|0.0.6 vscode-peacock|joh|4.2.2 vscode-graphql-notebook|joy|0.2.0 solidity|Jua|0.0.141 vscode-gist|ken|3.0.3 vscode-gutter-preview|kis|0.30.0 Kotlin|mat|1.7.1 vscode-styled-components|mf|0.2.2 git-graph|mhu|1.30.0 dotenv|mik|1.0.1 vscode-mjml|mjm|1.0.5 mongodb-vscode|mon|0.10.0 vscode-azureappservice|ms-|0.24.7 vscode-azurefunctions|ms-|1.10.2 vscode-azureresourcegroups|ms-|0.5.6 vscode-azurestorage|ms-|0.15.1 vscode-cosmosdb|ms-|0.19.3 vscode-docker|ms-|1.23.3 vscode-aks-tools|ms-|1.3.11 vscode-kubernetes-tools|ms-|1.3.11 playwright|ms-|1.0.7 isort|ms-|2022.8.0 python|ms-|2023.2.0 vscode-pylance|ms-|2023.2.30 jupyter|ms-|2023.1.2010391206 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.14 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.275.1 remote-ssh|ms-|0.96.0 remote-ssh-edit|ms-|0.84.0 remote-wsl|ms-|0.75.3 azure-account|ms-|0.11.3 azure-repos|ms-|0.26.0 azurecli|ms-|0.5.0 cmake-tools|ms-|1.13.45 cpptools|ms-|1.14.3 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.9.11 remote-explorer|ms-|0.2.0 remote-repositories|ms-|0.28.0 vscode-github-issue-notebooks|ms-|0.0.128 vsliveshare|ms-|1.0.5831 vsliveshare-pack|ms-|0.4.0 vscode-react-native|msj|1.10.0 color-highlight|nau|2.5.0 angular-console|nrw|17.31.0 indent-rainbow|ode|8.3.1 vscode-jest|Ort|5.2.3 convert-css-in-js|pau|1.1.3 vscode-versionlens|pfl|1.5.0 material-icon-theme|PKi|4.24.0 prisma|Pri|4.10.1 java|red|1.15.0 vscode-xml|red|0.24.0 vscode-yaml|red|1.11.0 LiveServer|rit|5.7.9 partial-diff|ryu|1.4.3 simple-rest-client|Tin|1.4.2 vscode-solidity-flattener|tin|0.0.11 vscode-lua|tri|0.12.4 cmake|twx|0.0.17 highlight-matching-tag|vin|0.10.1 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-conventional-commits|viv|1.25.0 vscode-gradle|vsc|3.12.6 vscode-java-debug|vsc|0.48.0 vscode-java-dependency|vsc|0.21.1 vscode-java-pack|vsc|0.25.7 vscode-java-test|vsc|0.37.1 vscode-maven|vsc|0.40.4 vscode-typescript-vue-plugin|Vue|1.1.5 fig|wit|0.0.7 luahelper|yin|0.2.19 markdown-all-in-one|yzh|3.5.0 vscode-proto3|zxh|0.5.5 (1 theme extensions excluded)
vscodenpa commented 1 year ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!