microsoft / vscode

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

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

Closed IvanovViktor1 closed 5 months ago

IvanovViktor1 commented 5 months ago

Type: Bug

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

TypeScript Version: 5.1.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

RangeError: Maximum call stack size exceeded
    at parseModifiers (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:35501:26)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34455:23)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)
    at parseListElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31736:12)
    at parseDelimitedList (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:31977:24)
    at parseObjectLiteralExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34501:24)
    at parsePrimaryExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34380:16)
    at parseMemberExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33823:24)
    at parseLeftHandSideExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33817:82)
    at parseUpdateExpression (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33792:24)
    at parseUnaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33711:32)
    at parseBinaryExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33633:25)
    at parseAssignmentExpressionOrHigher (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:33306:18)
    at c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:44
    at doOutsideOfContext (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30955:12)
    at allowInAnd (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30976:12)
    at parseObjectLiteralElement (c:\Users\Viktor\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:34485:27)

VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (8 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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)|7.84GB (2.31GB free)| |Process Argv|--crash-reporter-id e9704076-fe7d-4187-85d3-4c32f448bed6| |Screen Reader|no| |VM|0%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- html-snippets|abu|0.2.1 vscode-intelephense-client|bme|1.10.4 javascript-extensions-pack---js-essentials|Bre|0.0.2 vscode-eslint|dba|2.4.4 vscode-html-css|ecm|2.0.9 prettier-vscode|esb|10.4.0 prettify-json|moh|0.0.3 vscode-language-pack-ru|MS-|1.80.2023071209 prisma|Pri|5.14.0 LiveServer|rit|5.7.9 es7-react-js-snippets|rod|1.9.3 autoimport|ste|1.5.4 tabnine-vscode|Tab|3.104.0 vs-gradient-maker|The|1.2.0 vscode-icons|vsc|12.8.0 quokka-vscode|Wal|1.0.644 php-debug|xde|1.34.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31064719 showvideoc:31016891 chatpanelc:31048052 dsvsc021:30996838 945dj816:31013170 a69g1124:31058053 dvdeprecation:31061160 pythonprt:31056678 dwnewjupytercf:31046870 26j00206:31048877 ```
vscodenpa 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.89.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 5 months ago

Closing as this is an outdated VS Code and TypeScript version. Please update to the latest release as this may have already been fixed