microsoft / vscode

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

TS Server fatal error: Maximum call stack size exceeded #201566

Closed Leiloukou closed 7 months ago

Leiloukou commented 8 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: semantic

RangeError: Maximum call stack size exceeded
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45834:16)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInPropertyAccessExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30387:12)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindAccessExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45438:7)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44643:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)
    at forEachChildInCallOrNewExpression (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30700:10)
    at forEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30744:35)
    at bindEachChild (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44561:5)
    at bindCallExpressionFlow (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45451:9)
    at bindChildren (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44646:9)
    at bind (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45848:9)
    at visitNode2 (c:\Users\naleg\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30227:18)

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.22000 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 1700X Eight-Core Processor (16 x 3394)| |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)|15.93GB (1.91GB free)| |Process Argv|--enable-proposed-api TabNine.tabnine-vscode --crash-reporter-id 7cbce918-a129-4291-afba-29b2f8ac8a82| |Screen Reader|no| |VM|0%|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 bundle-size|amb|1.6.1 vscode-tailwindcss|bra|0.10.4 multi-cursor-case-preserve|Car|1.0.5 gitlens|eam|14.6.1 prettier-vscode|esb|10.1.0 vscode-github-actions|git|0.26.2 rest-client|hum|0.25.1 vscode-twoslash-queries|Ort|1.2.2 prisma|Pri|5.7.1 code-spell-checker|str|3.0.1 vscode-mdx|uni|1.6.1 vscode-icons|vsc|12.6.0 glean|wix|5.2.2 pretty-ts-errors|yoa|0.5.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263:30899288 vscaat:30438848 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 azure-dev_surveyone:30548225 89544117:30613380 a9j8j154:30646983 showlangstatbar:30737416 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 dsvsc013:30795093 dsvsc014:30804076 dsvsc015:30845448 pythontestfixt:30902429 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:30885897 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 cp7184t:30925682 ```
VSCodeTriageBot commented 7 months 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!