TypeScript TS服务器致命错误:超过最大调用堆栈大小

unftdfkk  于 6个月前  发布在  TypeScript
关注(0)|答案(1)|浏览(42)

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

TypeScript Version: 5.2.2
Steps to reproduce crash
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\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45654:16)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)
    at bindEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44350:5)
    at bindChildren (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:44466:9)
    at bind (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:45668:9)
    at visitNode2 (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30083:18)
    at forEachChildInTaggedTemplateExpression (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30251:12)
    at forEachChild (c:\Users\pc\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:30600:35)

VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.22621
Modes:
System Info
| Item | Value |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800) |
| GPU Status | 2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: unavailable_software |
| Load (avg) | undefined |
| Memory (System) | 7.88GB (0.71GB free) |
| Process Argv | --crash-reporter-id 8ba60581-e8bf-4af7-aab6-5d07eacc7aa7 |
| Screen Reader | no |
| VM | 0% |Extensions (13)
| Extension | Author (truncated) | Version |
| ------------ | ------------ | ------------ |
| easy-cpp-projects | ACh | 2.0.0 |
| gitlens | eam | 14.3.0 |
| cloudcode | goo | 2.0.0 |
| vscode-docker | ms- | 1.26.1 |
| vscode-kubernetes-tools | ms- | 1.3.13 |
| remote-containers | ms- | 0.309.0 |
| remote-wsl | ms- | 0.81.4 |
| cmake-tools | ms- | 1.15.31 |
| cpptools | ms- | 1.17.5 |
| cpptools-extension-pack | ms- | 1.3.0 |
| vscode-yaml | red | 1.14.0 |
| vscode-vba | ser | 0.9.1 |
| cmake | twx | 0.0.17 |
(1 theme extensions excluded)
A/B Experiments

vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
3biah626:30602489
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
03d35959:30757346
24365598:30736109
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingc:30839828
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015:30829745
9wbgstp7

9wbgstp71#

请分享一个导致此问题的项目或文件,以便我们进行调查。

相关问题