Open cpitclaudel opened 3 months ago
The crashing case mentioned here is caused by the use of /
, see #231
Thanks and yes to build upon the above: stack traces should not happen, and we should fail more gracefully (e.g. with a nicer return code and say what's unsupported).
cn --json
should have all the information for an error and if it doesn't compared to the CLI output, then this is a bug that should be reported with a small test case to trigger the behaviour.
Hey folks,
Here a small bit of Elisp to get real-time error reports as you type:
Parsing CN's output is a bit painful because they have three different formats (JSON output mixed with text headers; plain text; and OCaml backtraces. The code could be a lot simpler if these three formats were unified.
I didn't see how to make
--batch
report errors (instead of pass/fail).Btw, here is a crash that I ran into while trying this:
Output:
And another note: if you run
make install_cn
without installing Cerberus first, then thecn
binary crashes withERROR: couldn't find the Core standard library file
when you try to start it.