vuejs / language-tools

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

Vue Language Server Crashes in VSCode + Nuxt #3937

Closed madebyfabian closed 6 months ago

madebyfabian commented 6 months ago

I have a larger Nuxt 3 app running at 3.10.3. Since today (updated the VSCode extension to 2.0.2) the plugin crashes and I get this:

["[...dynamicSlug]","RouterView","RouterLink","StoryblokComponent","StoryblokRichtextImage","StoryblokRichtextLink","StoryblokImg","StoryblokRichtextContainer","PageArticle","PageAuthor","PageSerpSeo","AccordionItem","ArticleAccordionSection","ArticleButtonLink","ArticleCallout","ArticleChecklist",... 
(SHORTENED) "modalInjectionKey","navigateTo","nextTick","onActivated","onBeforeMount","onBe[Error - 12:07:58] Server process exited with code 1.
[Error - 12:07:58] The Vue server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

in the output logs.

The long array contains all of my component names and various other auto-imports (I shortened it for the sake of simplicity).

Not sure how to provide a reproduction, but I am happy to do.

hopkins385 commented 6 months ago

same here

[Info  - 15:05:30] Connection to server got closed. Server will restart.
true
undefined:1
...
[Error - 15:05:30] Server process exited with code 1.
[Error - 15:05:30] The Vue server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

package.json

    "nuxt": "^3.9.3",
    "typescript": "^5.3.3",

System:

Node: v21.1.0
MacOS: 14.1.2
realityfilter commented 6 months ago

Same here. Additional output before error message reads:

[Vue Named Pipe Client] Error: connect ECONNREFUSED /tmp/vue-tsp-54831
    at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
  errno: -61,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '/tmp/vue-tsp-54831'
}
handanyolak commented 6 months ago

Is there any update on this?

ydnikolaev commented 6 months ago

got same today

works fine

maprangsoft commented 6 months ago

got same today

  • downgrade Vue Official to v1.8.27,
  • re-enable Volar,
  • turn on Takeover mode

works fine

i use nuxt 3 and @pinia/nuxt use auto import after extension update to latest auto import not working downgrade dont work for me. Screen Shot 2567-03-03 at 14 06 09

baikov commented 6 months ago

Same error on Vue Official 2.0.3 Returned Takeover mode

maprangsoft commented 6 months ago

got same today

  • downgrade Vue Official to v1.8.27,
  • re-enable Volar,
  • turn on Takeover mode

works fine

i use nuxt 3 and @pinia/nuxt use auto import after extension update to latest auto import not working downgrade dont work for me. Screen Shot 2567-03-03 at 14 06 09

in my case i found node_modules folder in path ~/ of mac i test delete folder node_modules and run nuxt project again auto import is working problem has resolved. ^__^