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.
Questions tagged [vscode-problem-matcher]
35 questions
2
votes
1 answer
VS Code $msCompile problemMatcher doesn't work with relative file path
I need to compile a .NET solution using Visual Studio Code.
My task inside tasks.json is declared like:
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
…

Davide Icardi
- 11,919
- 8
- 56
- 77
1
vote
0 answers
How do I configure multiple pattern matchers for a VS Code Task?
I'm trying to setup a Visual Studio Code CMake / Ninja project using GNU_ARM_10_2020-q4-major. With the base problem matcher set to "$gcc" it misses a lot messages and I can't figure out multiple patterns.
The following extract from the build output…

Mark Kingston
- 11
- 3
1
vote
1 answer
VSCode problem matcher with backtick in filename
My project has files like "Bar`1.cs" to represent generic types, as is done in the dotnet SDK.
My build task contains "problemMatcher": { "base": "$msCompile" }.
When such a file has errors/warnings, I get…

lonix
- 14,255
- 23
- 85
- 176
1
vote
2 answers
How can I show problems detected by vite checker plugin in VS Code?
I am using the checker plugin for vite. It prints errors to the VS Code terminal, like this (example):
ERROR(TypeScript) Property 'foobarasdasdasdas' does not exist on type 'HelloWorld'.
FILE /home/birger/SomeFile.tsx:194:23
192 |
193 |…

birgersp
- 3,909
- 8
- 39
- 79
1
vote
1 answer
vscode custom task problem matcher does not find text that matches regex
Here is my entire tasks.json file in the .vscode directory
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label":…

SteveC1331
- 13
- 3
1
vote
0 answers
vscode problem matcher issues when using WSL to build on cmd.exe
I am writing code in WSL using a remote session and then building on cmd.exe. The build process works fine but I cannot get the problem matcher to link to the correct files.
I change my cwd
"options": {
"cwd": "/mnt/c/Freescale/CW MCU…

Ali
- 11
- 1
1
vote
2 answers
vscode problemMatcher doesn't not recognize Tasking compiler warnings
The following Tasks.json
Problem matcher regular expression should match the following typical warning. But it doesn't.
ctc W505: ["somedirectory/somefile.c" 350/18] implicit declaration blah blah blah
What is the issue ? I verified the built-in…

satish
- 329
- 2
- 11
1
vote
1 answer
create a C++ problemMatcher for a single log file?
I am trying to create a problemMatcher for the Keil compiler. This does not generate any console output. All output goes to a log file. I noticed that there is a npm module called Gulp that should be able to help with that. I have created a regexp…

Allen Curtis
- 91
- 6
1
vote
1 answer
Can I modify fileLocation for problemMatcher?
I'm using Make over SSH to invoke gcc.
I have mirrored source files in my local computer for editing.
After editing, it is synchronized with SFTP.
The problem is when the ProblemMatcher is set to $gcc,
it returns full path of remote server, so it…

CJ Lee
- 34
- 4
1
vote
1 answer
VSCode problemMatcher severity mapping
I have a custom problemMatcher for an ant task that calls Microsoft JScript to lint JavaScript files (which I can not change to something modern like ESHint or similar).
JScript has error messages that itself reports as "This error can be…

Dominik Schreiber
- 2,629
- 1
- 23
- 33
0
votes
0 answers
vscode tasks - problemMatcher works sometimes yes, sometimes not
I'm trying to use the "problemMatcher" below to have VSCode start the debugging process as soon as the string...
SUCCESSFUL
OPERATION
... is displayed in the terminal output.
PROBLEMMATCHER
[...]
{
"label": "startWithAwsSam",
…

Eduardo Lucio
- 1,771
- 2
- 25
- 43
0
votes
0 answers
vscode problemMatcher doesn't work for '+' (positive sign)
I've output as,
- const MinMax > setInterval{
+ const MinMax> setInterval{
with simple regex in vscode problemMatcher "(\\-.*)$" it does shows the line started with -,
but "(\\+.*)$" failed to find the line started with…

meAbab
- 102
- 9
0
votes
0 answers
Multi-line problem matcher algorithm clarification - rollup matcher not working as expected
Can anyone clarify the exact algorithm used for the VS code multi-line problem matcher? Specifically curious what the behavior is when there are more than 2 patterns defined.
The context is that I'm trying to write a multi-line problem matcher in…

Scott
- 1
- 1
0
votes
1 answer
vsCode on Problems panel, items from tasks/problemMatcher -how to remove an item when there is no more error
Using VSCode, I define a Task to compile my code.
Into the task, I define a problemMatcher to catch error(severity=error) or success(severity=info).
When I execute the task, if error match pattern, VSCode report it into a item of Problems Panel.
So,…
0
votes
0 answers
How to configure to display squiggle in the problem matcher of vscode?
There is a compiler that displays a compile result as below when fired error.
The message format is [File]:[Code]:[Line]:[Column]:[Serverity]:[Message]
I would like to display this to the problem panel so I constructed tasks.json as below.
As a…

jjw
- 282
- 3
- 20