Reason Formatting of Errors
refmterr: Reason Formatting of Errors for Native Builds.esy compatible package.
ocamlopt/ocamlc versions 4.02.3-4.05.
refmterr, and @opam/reason in your dependencies, and
refmterr. For example,
make build as your build command, use remfterr make build.
json
{
"esy": {
"build": [
["refmterr make build"]
],
...
},
"dependencies": {
"refmterr": "^3.0.0",
"@opam/reason": "^3.0.0"
}
}
`
Command Line Usage:
You can wrap any command that outputs ocamlopt/ocamlc error messages. For
example, from your sandboxed project with the above package.json, you could
run:
`sh
esy refmterr ocamlopt -pp refmt someFile.re
`
and have any errors/warnings printed more readably.
Contributing
- Install the latest esy npm install -g esy.
- git clone this repo, cd into it, then run:
`sh
esy install
esy build
esy ./runTests.sh
``