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 Server crashes at startup #4504

Open jmarshall9120 opened 6 days ago

jmarshall9120 commented 6 days ago

Vue - Official extension or vue-tsc version

v2.0.22

VSCode version

1.90.2

Vue version

3.4.27

TypeScript version

5.4.5

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 14.24 GB / 31.74 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 126.0.6478.114
    Edge: Chromium (126.0.2592.68)
    Internet Explorer: 11.0.22621.3527

Steps to reproduce

On startup the ts server will crash if the vue extension in enabled. I can confirm it's crashed as there are no type errors in the project. I'm making the repo public. Nothing serious in it. Its a slow burn project to test out amplify gen2.

I'm running a clean install of vs code. I deleted the user profile and reinstalled vs code. Vue - Official is the only non @builtin extension installed.

Logs of the last start up are attached. TypeScript.log tsserver_2.log tsserver_3.log

Link to minimal reproduction

https://github.com/jmarshall9120/advanced-storage-site-2/tree/dev

Any additional comments?

No response

davidmatter commented 5 days ago

I assume you're on the extension version 2.0.22?

jmarshall9120 commented 5 days ago

@davidmatter - yes, I will correct the ticket.

davidmatter commented 4 days ago

I've had a short look at your repo: Please provide a minimal example. There's too many things in there to be able to debug properly.

On startup the ts server will crash if the vue extension in enabled. I can confirm it's crashed as there are no type errors in the project

There can be many reasons why no type errors are thrown and it doesn't automatically mean that the TS server crashed.

guaijie commented 4 days ago

I've had a short look at your repo: Please provide a minimal example. There's too many things in there to be able to debug properly.

On startup the ts server will crash if the vue extension in enabled. I can confirm it's crashed as there are no type errors in the project

There can be many reasons why no type errors are thrown and it doesn't automatically mean that the TS server crashed.

包括我在内,以及我身边的同事在同样的版本下,也出现了无法正常使用 ts 的情况, 在我关闭了 vue-offical 扩展后,ts 就能正常使用了 我其他的 react 项目 ts 都可以正常使用

AnoRebel commented 3 days ago

I think this is related to this issue: #4497