Home > Blockchain >  Task in visual studio code -problem matches not work
Task in visual studio code -problem matches not work

Time:12-15

I created a set of tasks with which I want to compile a program written in MAD Pascal (FreePascal compiler for 6502 processor) Generally everything works, however I have a problem with the "Problem matcher" handling. I do not know why, it does not want to detect errors? I admit, that I use tasks in VSC for the first time. I have looked through many different tutorials, however everything seems to be OK. My "Problem Matcher" configuration

"problemMatcher": {
    "source": "Pascal compiler",
    "fileLocation": ["relative", "${workspaceFolder}"],
    "pattern": [
        {
            "regexp": "/^(. )\\s\\((\\d ),(\\d )\\):\\s(\\w ):(. )$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
        }
    ]
}

I tested the regular expression for correctness ( enter image description here

After running this task I got:
enter image description here

Problems tab looks as expected:
enter image description here

  • Related