vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.56k stars 373 forks source link

TS service crashes repeatedly #4480

Open Mobius0526 opened 1 week ago

Mobius0526 commented 1 week ago

Type: Bug

I found that the TS server often restarts,It's more likely to occur when I switch between different .vue files

Extension version: 2.0.21 VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2 Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 2712)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.94GB (2.93GB free)| |Process Argv|--folder-uri vscode-remote://wsl%2Bdebian/home/mobius/work/shihuan-multimedia-ui --crash-reporter-id dc2a9fc6-7d55-4fa3-9be5-45db5215ed52| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Debian| |OS|Linux x64 5.15.146.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 0)| |Memory (System)|5.79GB (0.45GB free)| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Debian| |OS|Linux x64 5.15.146.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (4 x 0)| |Memory (System)|5.79GB (0.45GB free)| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupyter:31046869 legacy_priority:31077528 ```
Mobius0526 commented 1 week ago

2024-06-19 10:09:56.036 [info] Starting TS Server 2024-06-19 10:09:56.036 [info] Using tsserver from: /home/mobius/work/shihuan-multimedia-ui/node_modules/typescript/lib/tsserver.js 2024-06-19 10:09:56.036 [info] Forking... 2024-06-19 10:09:56.036 [info] Starting... 2024-06-19 10:09:56.036 [info] Forking... 2024-06-19 10:09:56.036 [info] Starting... 2024-06-19 13:37:06.063 [error] TSServer exited. Code: null. Signal: SIGABRT 2024-06-19 13:37:06.069 [info] Starting TS Server 2024-06-19 13:37:06.069 [info] Using tsserver from: /home/mobius/work/shihuan-multimedia-ui/node_modules/typescript/lib/tsserver.js 2024-06-19 13:37:06.069 [info] Forking... 2024-06-19 13:37:06.069 [info] Starting... 2024-06-19 13:37:06.069 [info] Forking... 2024-06-19 13:37:06.069 [info] Starting... 2024-06-19 15:36:44.489 [error] TSServer exited. Code: null. Signal: SIGABRT 2024-06-19 15:36:44.503 [info] Starting TS Server 2024-06-19 15:36:44.503 [info] Using tsserver from: /home/mobius/work/shihuan-multimedia-ui/node_modules/typescript/lib/tsserver.js 2024-06-19 15:36:44.503 [info] Forking... 2024-06-19 15:36:44.503 [info] Starting... 2024-06-19 15:36:44.503 [info] Forking... 2024-06-19 15:36:44.503 [info] Starting...

Mobius0526 commented 1 week ago

[Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Error: read ECONNRESET [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout [Vue Named Pipe Client] Timeout

Mobius0526 commented 1 week ago

Vscode prompts many uncaught errors: Cannot read properties of undefined (reading 'match')

so1ve commented 1 week ago

@Mobius0526 match undefined: https://github.com/vuejs/language-tools/issues/4457#issuecomment-2163968359

jshrssll commented 1 week ago

Just came across this issue myself. I found that downgrading from v2.0.21 to v2.0.19 solved it for me. Also ensure that you are using the workspace Typescript version in VS Code if applicable to your project. You can change that setting by clicking on the {} icon on the bottom right of the window