question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VS Code Problem panel is wrong

See original GitHub issue

[-] 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

[step 0]: Use vue-cli beta 6 init an typescript+vue project [step 1]: Create file Test.ts and save

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

[step 2]: In App.vue I try to import Test

mounted() {
     new Test(1111)
}

[step 3]: Reopen Test.ts change constructor() like this

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kb10uycommented, Mar 31, 2018

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

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”.

1reaction
HerringtonDarkholmecommented, Mar 31, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suggestion: Automatically show the Problems panel if ...
VSCode Version: 1.4.0 OS Version: macOS 10.11.6 I often work with the Problems panel open, as listing the problems that way is a...
Read more >
Visual Studio Code User Interface
Panels - You can display different panels below the editor region for output or debug information, errors and warnings, or an integrated terminal....
Read more >
vsCode on Problems panel, items from tasks/problemMatcher ...
Into the task, I define a problemMatcher to catch error(severity=error) or success(severity=info). When I execute the task, if error match ...
Read more >
VSCode Tasks Problem Matchers - Allison Thackston
This is an interactive panel that shows all of the problems that were detected and lets you click on an issue to automatically...
Read more >
VS Code tips — The problems status bar entry - YouTube
Today's VS Code tip: the problems status bar entryVS Code shows the total number of errors and warnings for your code in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found