-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0+ causes ts and ts-plugin to check for problems in an infinite loop #3981
Comments
I have opened an issue to TypeScript (microsoft/TypeScript#57633), but I can't tell if that's related to your issue, it would be best to provide a repro case that reproduces the issue stably so we can start investigating. |
Finally found a project that I could share, I could not reproduce it on a brand new vue/nuxt installation. However, on an old ones (especially big ones) it in 90% cases exists. I was only able to reproduce this bug on MacOS, my colleagues working on Linux do not experience this issues Steps to reproduce:
Attaching the ts-server log: |
Can you add access for @sheetalkamat? I can't reproduce the problem in this repo on my Mac system, since this seems to be a system specific issue, I'm assuming this is related to the Node version, could you try VSCode Insiders? |
@matveyson from the log it looks like you are using 5.3.2, you need to use nightly version of typescript as microsoft/TypeScript#56403 was fixed for macOS and is in 5.4+ which i believe is the issue. |
@johnsoncodehk, added @sheetalkamat. I installed TypeScript Nightly plugin (https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next) but the issue is still present with this plugin. |
This may be a difference caused by different Node versions of the VSCode bundle, closed since it has been resolved by upstream. |
I think I'm experiencing the same issue: #4519 I'm on VSCode 1.91. Is the expectation that it should be resolved now? Or with the next major version? |
System Info
M2 Max, Sonoma 14.2.1 (23C71)
VSCode 1.87.0 - Clean installation (vue.volar is the only marketplace extension installed)
Using tsserver from: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js (built-in, v5.3.2)
Output - TypeScript
Output - Extension Host
Impact
2.0+ versions are causing an endless problem-checking loop with a high CPU utilization (200+), VSCode becomes laggy.
Temporary solution (for me)
Downgrade to 1.8.27.
Video
CleanShot.2024-03-04.at.16.24.06.mp4
The text was updated successfully, but these errors were encountered: