Vetur: VS Code Problem panel is wrong

Created on 23 Mar 2018  ·  5Comments  ·  Source: vuejs/vetur

[-] I have searched through existing issues
[-] I have read through docs
[-] I have read FAQ

Info

  • Platform: macOS
  • Vetur version: 0.11.7
  • VS Code version: 1.21.1 (1.21.1)

Problem

Firstly I create a *.ts (export default class ……)and import it in other *.vue.When I change this class constructor method, Reopen the vue file, Problem panel doesn't work

Reproducible Case

export default class Test {
      constructor(id: number) { }
}

I try to import Test

mounted() {
     new Test(1111)
}
export default class Test {
      constructor(id:number, name:string) {}
}

step 4: Reopen App.vue
You will see that Problem Panel doesn't work,But complier is right

Tip:
When I reopen VS Code, can be correct。When other extensions are disabled, this bug is still

Most helpful comment

@HerringtonDarkholme @superbiger
I hit a similar problem (kb10uy/vue-sfc-ts), and now it seems to be fixed correctly in the latest master branch. :laughing:

The vsce package is required to build and install the extension from this repository:

git clone https://github.com/vuejs/vetur
cd vetur
yarn && cd server && yarn && yarn compile && cd ../client && yarn && yarn compile && cd ../ && vsce package

Now you'll find vetur-0.11.7.vsix, you can install it by "Install from VSIX".

All 5 comments

Hi @superbiger, we have already fixed this, but not release it yet.

@octref Can you give this a look?

@HerringtonDarkholme Could you help me how to install VS Code plugin from git ? i'm not familar with it.

@HerringtonDarkholme @superbiger
I hit a similar problem (kb10uy/vue-sfc-ts), and now it seems to be fixed correctly in the latest master branch. :laughing:

The vsce package is required to build and install the extension from this repository:

git clone https://github.com/vuejs/vetur
cd vetur
yarn && cd server && yarn && yarn compile && cd ../client && yarn && yarn compile && cd ../ && vsce package

Now you'll find vetur-0.11.7.vsix, you can install it by "Install from VSIX".

Thank @kb10uy , I have updated the instructions in FAQ.

I have published a binary in github tag. You can download 0.11.8 here.
https://github.com/vuejs/vetur/releases/tag/0.11.8

Was this page helpful?
0 / 5 - 0 ratings