Last active
November 15, 2018 18:34
-
-
Save byq77/92eb0984bddce011ed158a83d1b45047 to your computer and use it in GitHub Desktop.
Example of task.json for mbed cli project in Visual Studio Code IDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build release clean", | |
"type": "shell", | |
"command": "mbed", | |
"args": ["compile", "--profile", "release", "-c", "-N", "firmware"], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": ["relative", "${workspaceFolder}"], | |
"pattern": | |
{ | |
"regexp": "^(\\[ERROR\\])*\\s*(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", | |
"file": 2, | |
"line": 3, | |
"column": 4, | |
"severity": 5, | |
"message": 6 | |
} | |
} | |
}, | |
{ | |
"label": "build release", | |
"type": "shell", | |
"command": "mbed", | |
"args": ["compile", "--profile", "release", "-N", "firmware"], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"problemMatcher": { | |
"owner": "cpp", | |
"fileLocation": ["relative", "${workspaceFolder}"], | |
"pattern": | |
{ | |
"regexp": "^(\\[ERROR\\])*\\s*(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", | |
"file": 2, | |
"line": 3, | |
"column": 4, | |
"severity": 5, | |
"message": 6 | |
} | |
} | |
}, | |
{ | |
"label": "flash release app", | |
"type": "shell", | |
"command": "nrfjprog", | |
"args": ["--family", "NRF52", "--program", "./BUILD/NRF52_DK/GCC_ARM-RELEASE/firmware_application.hex", "--sectorerase", "--reset"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VS Code Defining Problem Matcher: https://code.visualstudio.com/docs/editor/tasks#_defining-a-problem-matcher
Regular Expressions: https://en.wikipedia.org/wiki/Regular_expression
Regular Expression Test Tool: https://regex101.com/