Questions tagged [vscode-problem-matcher]

Use this tag for questions specifically related to the configuration and usage of a 'problem matcher' task in Visual Studio Code. When using this tag also include the more generic [visual-studio-code] tag.

Links:

35 questions
6
votes
4 answers

Could not find an option named "web-server-debug-protocol" when running a Flutter project through VSCode

I am using VSCode ad my Flutter development IDE. It worked well until this afternoon. When I ran the project, Could not find an option named "web-server-debug-protocol"showed up. I have no idea what goes wrong. I googled "web-server-debug-protocol"…
echo
  • 1,244
  • 1
  • 16
  • 40
6
votes
1 answer

Why doesn't this problemMatcher in VS code work?

Why doesnt my problemMatcher work? I'm pretty sure about the regex, but it doesn't report any problems, even there are some on stdout... // the matcher "problemMatcher": { "owner": "typescript", "fileLocation": ["relative",…
santa
  • 983
  • 9
  • 30
5
votes
1 answer

VSCode TypeScript problemMatcher `$tsc-watch` not watching

I'm trying to avoid having to use watch: true in a tsconfig.json configuration. Through VSCode's tasks I'm using the base problem matcher $tsc-watch but it's not launching tsc in watch mode when building. I'm adding gulp support and I see there is…
4
votes
1 answer

Where to define a shared problemMatcher to check the terminal?

In vscode I experience sometimes I can click on build errors in the integrated terminal and sometimes it is not possible to do so. This has annoyed me for quite some time because I was not able to find a pattern, until today when I was editing…
Simson
  • 3,373
  • 2
  • 24
  • 38
4
votes
0 answers

How to get VSCode command output on task problem matcher

I want to execute a custom VSCode command on a VSCode task. I need to catch the command output on problem matcher. What should I do on my custom VSCode command or problem matcher? I tried to make a problem matcher. But it seems like doesn't…
3
votes
1 answer

How to fix incorrect path in vscode problem matcher when compiling with $tsc-watch

My project workspace folder is located at D:\salix\fantasy. My TypeScript configuration file is located at D:\salix\fantasy\tsconfig.json No matter what I do, I can't seem to get the problem matcher for my project to resolve to the correct…
Nathan Ridley
  • 33,766
  • 35
  • 123
  • 197
3
votes
0 answers

Is there a problem matcher for running a dotnet application via VSCode?

I was hoping if someone has an idea on how I can utilise the tasks.json file in VSCode to capture the output of a dotnet run command. Currently I have a launch item in my launch.json file to start a new chrome window for debugging angular apps. I…
3
votes
1 answer

How to handle duplicate problems reported by multiple problem matchers in VS Code?

I have a custom problem matcher for ESLint problems from vue-cli-service serve. It works fine and also watches all file changes correctly. My problem is when I open a file, then ESLint extension of VS Code starts reporting the same problems again…
geeko
  • 2,649
  • 4
  • 32
  • 59
3
votes
3 answers

Defining a ProblemMatcher in VSCode tasks -- schema disagrees with docs?

In VSCode I'm trying to create a ProblemMatcher to parse errors on a custom script of mine which I run (markdown file -> pandoc -> PDFs if you're interested). The pretty good VSCode ProblemMatcher documentation has an example task which appears (to…
JGC
  • 505
  • 1
  • 4
  • 12
3
votes
0 answers

C++ custom problem matchers in VS Code not highlighting file paths

I have a bunch of custom build tasks in VS Code and I want a custom problem matcher for the C++ ones. So I decided to take the default problem matcher example in VS Code docs…
antogilbert
  • 176
  • 2
  • 12
3
votes
2 answers

VSCode problemmatcher: Unknown subfolder for file location

I have a problem matcher defined like this: "fileLocation": ["relative", "${workspaceFolder}"], And I only know the name of the file and NOT the relative path from my compilation output. Than it only opens files when they are in the root of the…
3
votes
1 answer

How can I debug a VS Code Problem Matcher

I'm trying to write a custom problem matcher for VS Code. My matcher matches nothing, even though testing the regular expressions on the output seem to work. I'm not even sure VS Code loads my problem matcher, let alone see which regular expression…
zmbq
  • 38,013
  • 14
  • 101
  • 171
3
votes
1 answer

VSCode Powershell problemMatcher

I have a task for Powershell in VSCode, but can't figure out how to make the problemMatch work { "version": "0.1.0", "command": "PowerShell.exe", "isShellCommand": true, "suppressTaskName": true, "args": [ "& '${file}'" …
2
votes
2 answers

How do I filter problems by multiple criteria? AND or OR

In the problems pane you can filter/exclude by text or file, but what if I want to filter by multiple criteria? Like filter messages for those that contain the text X OR Y (or X AND Y). I know you can filter for multiple types of files by using…
2
votes
0 answers

How to set a typescript problemMatcher on npm task in VSCode?

I compile some typescript files using webpack and this is defined as an npm script pack-dev-tests in my repo. I used a task in VSCode for convenience, but I'd like to get the typescript errors from this npm script. I tried this, but the…
ymoreau
  • 3,402
  • 1
  • 22
  • 60
1
2 3