Skip to content

Instantly share code, notes, and snippets.

@Khady
Created June 14, 2017 07:17
Show Gist options
  • Save Khady/c52c463c75a98e03317fef9ffe70ae5c to your computer and use it in GitHub Desktop.
Save Khady/c52c463c75a98e03317fef9ffe70ae5c to your computer and use it in GitHub Desktop.
VSCode task to compile OCaml
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"tasks": [
{
"taskName": "make",
"isBuildCommand": true,
"command": "make",
"options": {
"cwd": "${workspaceRoot}"
},
"isShellCommand": true,
"args": [
"byte"
],
"showOutput": "always",
"isBackground": false,
"problemMatcher": {
"fileLocation": ["relative", "${workspaceRoot}"],
"owner": "ocaml",
"background": {
"activeOnStart": false,
"beginsPattern": "ocaml setup.ml -build",
"endsPattern": "-o ahrefs.byte"
},
"pattern": [
{
"regexp": "^File \"(.*)\", line (\\d+)(?:, characters (\\d+)-(\\d+))?:$",
"file": 1,
"line": 2,
"column": 3,
"endColumn": 4
},
{
"regexp": "^(?:(?:Parse\\s+)?(Warning|[Ee]rror)(?:\\s+\\d+)?:)?\\s+(.*)$",
"severity": 1,
"message": 2,
"loop": true
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment