Vetur: The Vue language Server will crash when virtual file is open

Created on 27 Nov 2018  路  4Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Win
  • Vetur version: 0.14.1
  • VS Code version: 1.29.1

Problem

Gitlens extension will open a virtual file to see the file change, and the file path will be
\<xxx@d2fe7bb>\src\components\xxx.vue.

This will cause Could not find file and make the Vue language Server Connection got disposed.

May be should add a ignore file list?


Reproducible Case

  1. Install Gitlens extension.
  2. Commit a .vue file(May be need typescript)
  3. Click Open Changes with Previous Revision
  4. Then the Vetur will try to format the previous file, but can not find the file so crashed.
bug

Most helpful comment

@eamodio I think it's a bug on my side. I should find a way to only track files that have file:// scheme. Anyway Vetur shouldn't crash.

All 4 comments

@octref I'm not sure if GitLens can do anything to prevent this -- as I now have a custom git file system provider for the gitlens: scheme. Let me know if I can help in any way on this.

@eamodio I think it's a bug on my side. I should find a way to only track files that have file:// scheme. Anyway Vetur shouldn't crash.

Is this error exist in new version?

Was this page helpful?
0 / 5 - 0 ratings