microsoft / vscode

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

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

Closed genechk closed 1 year ago

genechk commented 1 year ago

Type: Bug

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

TypeScript Version: 5.0.0-dev.20230110

Steps to reproduce crash

1. 2. 3.

Global TypeScript Server Plugins

❗️ Please test with extensions disabled. Extensions are the root cause of most TypeScript server crashes

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 String.substring (<anonymous>)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51032:26)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)
    at info.project.getScriptKind [as __vue_getScriptKind] (c:\Users\genek\.vscode\extensions\vue.vscode-typescript-vue-plugin-1.0.24\dist\index.js:51036:29)

VS Code version: Code 1.74.3 (97dec172d3256f8ca4bfb2143f3f76b503ca0534, 2023-01-09T16:59:02.252Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)| |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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|15.90GB (3.24GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (38) Extension|Author (truncated)|Version ---|---|--- jsoncrack-vscode|Ayk|1.0.8 vscode-tailwindcss|bra|0.9.5 simple-react-snippets|bur|1.2.7 quill-icons|cdo|0.0.2 nebula-theme|Chi|1.3.3 postcss|css|1.0.9 vscode-eslint|dba|2.2.6 javascript-ejs-support|Dig|1.3.1 es7-react-js-snippets|dsz|4.4.3 gitlens|eam|13.2.0 sweet-vscode-icons|Eli|0.0.1 moxer-icons|Equ|5.9.7 vsc-material-theme-icons|equ|2.5.0 prettier-vscode|esb|9.10.4 debug-visualizer|hed|2.4.0 vue-snippets|hol|1.0.4 rest-client|hum|0.25.1 vscode-react-typescript|inf|1.3.1 vscode-theme-seti-666|lee|21.1.6 vscode-language-babel|mgm|0.0.36 theme-monokai-pro-vscode|mon|1.2.0 vscode-docker|ms-|1.23.3 vscode-typescript-next|ms-|5.0.202301100 vsliveshare|ms-|1.0.5803 vscode-progressive-increment|nar|1.0.5 prisma|Pri|4.8.1 seti-icons|qin|0.1.3 quicktype|qui|12.0.46 vs-code-prettier-eslint|rve|5.0.4 postcss-vue|Sam|0.1.0 vim|vsc|1.24.3 volar|Vue|1.0.24 vscode-typescript-vue-plugin|Vue|1.0.24 console-ninja|Wal|0.0.69 quokka-vscode|Wal|1.0.521 glean|wix|5.2.2 JavaScriptSnippets|xab|1.8.0 material-theme|zhu|3.15.6 (8 theme extensions excluded)
mjbvz commented 1 year ago

From the call stack, this is clearly caused by the vue.vscode-typescript-vue-plugin extension. Please file the issue against them

vscodenpa commented 1 year ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!