microsoft / vscode

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

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

Closed mrjasonroy closed 5 months ago

mrjasonroy commented 5 months ago

Type: Bug

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

TypeScript Version: 5.3.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 ConfiguredProject2.updateGraphWorker (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:177372:11)
    at ConfiguredProject2.updateGraph (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:177231:32)
    at ConfiguredProject2.updateGraph (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:178483:24)
    at updateProjectIfDirty (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:178942:35)
    at Array.forEach (<anonymous>)
    at _ProjectService.assignProjectToOpenedScriptInfo (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:181337:29)
    at /Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:181575:64
    at flatMap (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:2597:17)
    at _ProjectService.applyChangesInOpenFiles (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:181575:24)
    at updateOpen (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:182773:29)
    at /Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:185375:69
    at IpcIOSession.executeWithRequestId (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:185367:14)
    at IpcIOSession.executeCommand (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:185375:29)
    at IpcIOSession.onMessage (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:185417:51)
    at process.<anonymous> (/Users/jroy/Documents/GitHub/comparenetworks-sites/node_modules/typescript/lib/tsserver.js:186999:14)
    at process.emit (node:events:514:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

VS Code version: Code 1.86.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:08:57.920Z) OS version: Darwin arm64 23.1.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M3 Max (14 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|3, 3, 3| |Memory (System)|36.00GB (0.29GB free)| |Process Argv|--crash-reporter-id d8dbdf2f-8845-4e21-b1e8-6ce7c5591812| |Screen Reader|no| |VM|0%|
Extensions (28) Extension|Author (truncated)|Version ---|---|--- vscode-sql-formatter|adp|1.4.4 vscode-sqlite|ale|0.14.1 jsonl|Alp|0.0.1 vscode-tailwindcss|bra|0.10.5 npm-intellisense|chr|1.4.5 vscode-tsv|cte|0.2.2 file-tree-to-text-generator|d-k|1.4.0 vscode-markdownlint|Dav|0.54.0 vscode-eslint|dba|2.4.4 prettier-vscode|esb|10.1.0 copilot|Git|1.162.0 copilot-chat|Git|0.13.2024020201 vscode-github-actions|git|0.26.2 vscode-pull-request-github|Git|0.80.1 gitlab-workflow|Git|4.2.0 vscode-pnpm|Jac|0.0.3 gitlab-mr|jas|1.4.3 rainbow-csv|mec|3.11.0 playwright|ms-|1.0.22 black-formatter|ms-|2024.0.1 debugpy|ms-|2024.0.0 python|ms-|2024.0.1 vscode-pylance|ms-|2024.2.2 npm-outdated|msk|2.2.0 prisma|Pri|5.9.1 jinjahtml|sam|0.20.0 vscode-sort-package-json|uni|1.5.0 pretty-ts-errors|Yoa|0.5.3
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30959800 b1063948:30958189 7j2b6412:30964151 ccp2r6:30958158 ```
VSCodeTriageBot commented 5 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.86.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 5 months ago

Please try collecting the TS Server log from the crashed instance:

  1. Set "typescript.tsserver.log": "verbose"
  2. Restart VS Code and reproduce the problem
  3. Open the TypeScript section of the output panel
  4. At the very top, find the first line that prints to path to the semantic error log file. It should look something like:

    [Info  - 19:54:59.247] <semantic> Log file: /Users/matb/Library/Application Support/Code - Insiders/logs/20200213T104930/exthost55/vscode.typescript-language-features/tsserver-log-ZT2zau/tsserver.log

    That file contains the typescript logs.

Look through that log file for the first error or stack trace you see. If you can share the log, I can also take a look to see if anything stands out

⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this

VSCodeTriageBot commented 5 months 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!