microsoft / vscode

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

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

Closed Ehtisham-Ayaan closed 8 months ago

Ehtisham-Ayaan commented 10 months ago

Type: Bug

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

TypeScript Version: 5.3.2

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: syntax

Error: Debug Failure. False expression.
    at parseVariableDeclarationList (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35733:15)
    at parseVariableStatement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35759:29)
    at parseDeclarationWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35577:16)
    at parseDeclaration (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35559:14)
    at parseStatement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35512:16)
    at parseListElement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32144:12)
    at parseList (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32129:19)
    at parseBlock (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35001:26)
    at parseFunctionBlock (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35032:19)
    at parseFunctionBlockOrSemicolon (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35638:12)
    at parseMethodDeclaration (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35831:18)
    at parsePropertyOrMethodDeclaration (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35864:14)
    at parseClassElement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:36076:16)
    at parseListElement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32144:12)
    at parseList (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32129:19)
    at parseClassMembers (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:36187:12)
    at parseClassDeclarationOrExpression (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:36142:17)
    at parseClassDeclaration (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:36127:12)
    at parseDeclarationWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35581:16)
    at parseDeclaration (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35559:14)
    at parseStatement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:35512:16)
    at parseListElement (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32144:12)
    at parseList (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:32129:19)
    at parseSourceFileWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:31168:24)
    at Object.parseSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:30996:20)
    at createSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:30830:21)
    at createLanguageServiceSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144634:22)
    at acquireOrUpdateDocument (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:135920:26)
    at Object.acquireDocumentWithKey (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:135843:12)
    at getOrCreateSourceFileByPath (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144972:31)
    at Object.getOrCreateSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144951:14)
    at /home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144875:42
    at Object.getSourceFileWithCache [as getSourceFile] (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:120530:24)
    at findSourceFileWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122956:23)
    at findSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122876:20)
    at /home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122825:22
    at getSourceFileFromReferenceWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122794:26)
    at processSourceFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122823:5)
    at processRootFile (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:122620:5)
    at /home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:121354:41
    at forEach (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:2349:22)
    at createProgram (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:121354:5)
    at synchronizeHostData (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144906:15)
    at Object.getProgram (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:144980:5)
    at InferredProject2.updateGraphWorker (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:177382:41)
    at InferredProject2.updateGraph (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:177233:32)
    at _ProjectService.assignOrphanScriptInfoToInferredProject (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:179725:13)
    at _ProjectService.assignProjectToOpenedScriptInfo (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:181347:12)
    at /home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:181577:64
    at flatMap (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:2597:17)
    at _ProjectService.applyChangesInOpenFiles (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:181577:24)
    at updateOpen (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:182775:29)
    at /home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:185377:69
    at IpcIOSession.executeWithRequestId (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:185369:14)
    at IpcIOSession.executeCommand (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:185377:29)
    at IpcIOSession.onMessage (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:185419:51)
    at process.<anonymous> (/home/fantech/.vscode-server/bin/0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2/extensions/node_modules/typescript/lib/tsserver.js:187001:14)
    at process.emit (node:events:513:28)
    at emit (node:internal/child_process:937:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.22631 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.87GB (14.25GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/fantech/projects/geviti-web-app --remote=wsl+Ubuntu --crash-reporter-id af92732f-8f98-4568-820b-1a2024ea2567| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.15.90.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 2592)| |Memory (System)|15.56GB (12.68GB free)| |VM|0%|
Extensions (31) Extension|Author (truncated)|Version ---|---|--- ci-snippets2|Ani|1.0.1 codeigniter4-snippets|ben|0.0.2 symfony-snippets|Cro|0.1.1 angular2-snippets|dan|1.0.21 es7-react-js-snippets|dsz|4.4.3 fire-snippets|Gan|0.0.5 codespaces|Git|1.16.5 Angular2|joh|16.0.1 jshtml|jsx|1.0.0 remote-containers|ms-|0.327.0 remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.81.8 vscode-remote-extensionpack|ms-|0.25.0 remote-explorer|ms-|0.4.1 remote-server|ms-|1.5.0 laravel5-snippets|one|1.17.0 material-icon-theme|PKi|4.32.0 ci-snippets|sec|0.0.2 prettier-vscode|Sim|2.0.7 js-jsx-snippets|sky|11.0.1 bootstrap4-vscode|the|6.1.0 bootstrap-v4-snippets|Zac|1.1.3 bracket-pair-color-dlw|Bra|0.0.6 vscode-tailwindcss|bra|0.10.4 simple-react-snippets|bur|1.2.7 prettier-vscode|esb|10.1.0 code-spell-checker|str|3.0.1 prettier-plus|svi|4.2.2 intellicode-api-usage-examples|Vis|0.2.8 pretty-ts-errors|yoa|0.5.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30899288 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 azure-dev_surveyone:30548225 2e4cg342:30602488 89544117:30613380 showlangstatbar:30737416 0bi6i642:30917235 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pythonregdiag2:30926735 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:30885898 pythontbext0:30879054 accentitlementst:30887150 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 dsvsc019cf:30917260 cp7184c:30925681 ```
mjbvz commented 8 months ago

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

vscodenpa commented 8 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!