Skip to content

Instantly share code, notes, and snippets.

@pedro-w
Created November 10, 2020 21:21
Show Gist options
  • Save pedro-w/51ee7531366c31d09034d41b60057b53 to your computer and use it in GitHub Desktop.
Save pedro-w/51ee7531366c31d09034d41b60057b53 to your computer and use it in GitHub Desktop.
Problem matcher for Dylan & VSCode
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "compile dylan",
"type": "shell",
"command": "dylan-compiler -build ${workspaceFolderBasename}",
"problemMatcher": [
{
"owner": "dylan",
"fileLocation":"autoDetect",
"pattern": {
// Single line error
"regexp": "^(.*):(\\d+)\\.(\\d+)-(\\d+):\\s+(.*)\\s-\\s(.*)$",
"severity": 5,
"file":1,
"line":2,
"column":3,
"endColumn": 4,
"message":6
}
},{
"owner": "dylan",
"fileLocation":"autoDetect",
"pattern": {
// Multiple line error
"regexp": "^(.*):(\\d+)\\.(\\d+)-(\\d+)\\.(\\d+):\\s+(.*)\\s-\\s(.*)$",
"severity": 6,
"file":1,
"line":2,
"endLine": 4,
"column":3,
"endColumn": 5,
"message":7
}
}
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
@pedro-w
Copy link
Author

pedro-w commented Nov 10, 2020

Screenshot 2020-11-10 at 21 28 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment