microsoft / vscode

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

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

Closed grgrwlkr closed 2 years ago

grgrwlkr commented 2 years ago

We have written the needed data into your clipboard because it was too large to send. Please paste. Issue Type: Bug

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

TypeScript Version: 4.6.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_2 (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169026:34)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:169034:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:170700:26)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:170974: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:170974: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:172133:46)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174069:88
    at IpcIOSession.Session.executeWithRequestId (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174060:28)
    at IpcIOSession.Session.executeCommand (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174069:33)
    at IpcIOSession.Session.onMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:174095:35)
    at process.<anonymous> (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:176730: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.67.1 (da15b6fd3ef856477bf6f4fb29ba1b7af717770d, 2022-05-06T12:37:16.526Z) OS version: Darwin x64 21.3.0 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)| |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
oop_rasterization: enabled
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)|5, 5, 5| |Memory (System)|32.00GB (0.02GB free)| |Process Argv|--crash-reporter-id 207bf2d3-1ff5-4ec9-bbe5-247eec6d76ab| |Screen Reader|no| |VM|0%|
Extensions (104) Extension|Author (truncated)|Version ---|---|--- nestjs-files|Abh|0.5.1 html-snippets|abu|0.2.1 project-manager|ale|12.5.0 ng-template|Ang|13.3.4 nestjs|ash|1.4.2 atlascode|atl|2.10.12 dotuml|bml|1.2.4 ue4-snippets|CAP|2.0.1 npm-intellisense|chr|1.4.1 path-intellisense|chr|2.8.0 gitignore|cod|0.7.0 doxdocgen|csc|1.4.0 vscode-eslint|dba|2.2.2 git-extension-pack|don|0.1.3 githistory|don|0.6.19 xml|Dot|2.5.1 gitlens|eam|12.0.6 vscode-html-css|ecm|1.12.2 EditorConfig|Edi|0.16.4 vscode-npm-script|eg2|0.3.25 eppz-code|epp|1.2.52 vsc-material-theme|Equ|33.4.0 vsc-material-theme-icons|equ|2.3.1 prettier-vscode|esb|9.5.0 vscode-solution-explorer|fer|0.4.5 vscode-jest-runner|fir|0.4.48 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 code-runner|for|0.11.7 godot-tools|gee|1.3.0 copilot|Git|1.20.5902 gitlab-workflow|Git|3.44.1 go|gol|0.33.0 vscode-graphql|Gra|0.4.4 vscode-drawio|hed|1.6.4 rest-client|hum|0.24.6 plantuml|jeb|2.17.2 better-cpp-syntax|jef|1.15.13 svg|joc|1.4.18 Angular2|joh|13.0.0 intellij-idea-keybindings|k--|1.5.1 json2csv|kha|0.0.1 unity-code-snippets|kle|1.3.0 vscode-github|Kni|0.30.7 sln-support|log|0.0.1 vscode-ue4explore|map|0.2.1 json-to-ts|Mar|1.7.5 yarn-lock-syntax|mar|0.1.3 git-graph|mhu|1.30.0 theme-monokai-pro-vscode|mon|1.1.20 vscode-docker|ms-|1.22.0 blazorwasm-companion|ms-|1.1.0 csharp|ms-|1.24.4 dotnet-interactive-vscode|ms-|1.0.3256010 vscode-dotnet-runtime|ms-|1.5.0 vscode-aks-tools|ms-|0.0.19 vscode-kubernetes-tools|ms-|1.3.8 vscode-postgresql|ms-|0.3.0 python|ms-|2022.6.2 vscode-pylance|ms-|2022.5.1 jupyter|ms-|2022.4.1021342353 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.6 remote-containers|ms-|0.234.0 remote-ssh|ms-|0.80.0 remote-ssh-edit|ms-|0.80.0 remote-wsl|ms-|0.66.2 vscode-remote-extensionpack|ms-|0.21.0 azure-account|ms-|0.10.1 cmake-tools|ms-|1.10.5 cpptools|ms-|1.9.8 cpptools-extension-pack|ms-|1.2.0 hexeditor|ms-|1.9.6 live-server|ms-|0.2.12 mono-debug|ms-|0.16.2 powershell|ms-|2022.5.1 remote-repositories|ms-|0.8.0 vsliveshare|ms-|1.0.5561 vsliveshare-audio|ms-|0.1.91 vsliveshare-pack|ms-|0.4.0 angular-console|nrw|17.16.0 vscode-versionlens|pfl|1.0.9 material-icon-theme|PKi|4.17.0 vscode-thunder-client|ran|1.16.3 vscode-yaml|red|1.7.0 live-sass|rit|3.0.0 LiveServer|rit|5.7.5 vscode-xml-complete|rog|0.3.0 unity-tools|Tob|1.2.12 cmake|twx|0.0.17 unity-debug|Uni|3.0.2 vscode-lldb|vad|1.7.0 adr-tools|vin|0.0.3 intellicode-api-usage-examples|Vis|0.1.1 vscodeintellicode|Vis|1.2.21 vscode-icons|vsc|11.11.0 quokka-vscode|Wal|1.0.471 vscode-webhint|web|1.6.8 vscode-nginx|wil|0.7.2 JavaScriptSnippets|xab|1.8.0 markdown-all-in-one|yzh|3.4.3 json|Zai|2.0.2 material-theme|zhu|3.13.29 vscode-open-in-github|ziy|1.3.6 (3 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 pythonvspyl392:30443607 pythontb:30283811 pythonvspyt551:30345470 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 pythonvsnew555:30457759 vscscmwlcmt:30465135 cppdebug:30475216 vsclangdc:30486549 ```
vscodenpa commented 2 years 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!

vscodenpa commented 2 years 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!