Skip to content
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

vue language tools not working / bad performance #3801

Closed
boernard opened this issue Dec 13, 2023 · 9 comments
Closed

vue language tools not working / bad performance #3801

boernard opened this issue Dec 13, 2023 · 9 comments

Comments

@boernard
Copy link

boernard commented Dec 13, 2023

Summary

The volar extension is not usable because code hints don't load.

I have a small nuxt project (4 components, 2 pages) with the following dev dependencies in package.json

  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@nuxtjs/tailwindcss": "^6.8.0",
    "@types/node": "^18.17.3",
    "autoprefixer": "^10.4.15",
    "nuxt": "^3.6.5",
    "postcss": "^8.4.28",
    "tailwindcss": "^3.3.3",
    "typescript": "^5.2.2",
    "volar": "^0.0.2",
    "volar-service-vetur": "latest"
  }

Whenever I hover over a component, the code hint stays in the state Loading... and never actually finishes loading. The CPU process for the volar extension goes up to >85%. Same result when I start writing a component and press CMD + space, it stays in the Loading state.

grafik

Also VSCode's status bar keeps indicating Initializing JS/TS language features

System setup

Apple M2
Visual Studio Code 1.85
TypeScript Vue Plugin (Volar) v1.8.25
Vue Language Features (Volar) v1.8.25

for profiling I pulled the current master of https://github.com/vuejs/language-tools at b8627e7

CPU-20231213T170606.cpuprofile.zip

when I open output in the vscode window and go to vue semantic server I get the following output
vueSemanticServer.txt

Additional info

When I installed the volar language extension in Sublime, also there it doesn't work. Node process goes up in CPU usage and then continously crashes.

@funny-cat-happy
Copy link

I have the same problem as you. And my intellisense have slowed down.

@huzaifahj
Copy link

Identical setup as OP. Intellisense is very slow and code actions have to be disabled to get a sane file saving time.

@machao7
Copy link

machao7 commented Jan 24, 2024

any feedback?

@DanielViberg
Copy link

Experiencing the same in larger components.

@s3xysteak
Copy link

s3xysteak commented Feb 1, 2024

The same issue too. I am using Vue.volar & Vue.vscode-typescript-vue-plugin & takeover mode, It is so slow in both .ts .vue, which makes me feel so sad. But it works greet in .js with only Vue.volar and no takeover mode.

@douglasg14b
Copy link

Intelisense is a multi-second operation now, it's cripplingly bad.

@huzaifahj
Copy link

Is anyone looking into this? Vue could have the best feature set and this would still be a deal-breaker for any serious project in 2024.

@johnsoncodehk
Copy link
Member

Thanks for your report, the performance issues caused by vue semantic server have been resolved in v2 via #3788.

@boernard
Copy link
Author

For me it didn't get resolved... I quickly uninstalled volar, reinstalled the vue - official extensions, restarted and tried a couple of other things but still, the behaviour is the same.
I am on vscode 1.91.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants