You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Emacs to edit OCaml code and I'm continuously running dune runtest through Emacs's compile command whenever I make some change in my code (as I've done for years before switching from Makefiles to dune recently).
It happens that I'm having a possibly large output and thus I had to add the --no-buffer option in order for the output to appear in Emacs's compilation buffer. But then, if there is some error in my code, I can't use Emacs's next-error anymore, as there is a missing newline before the compiler error message:
dune runtest --no-buffer
Done: 14/19 (jobs: 1)File "cfrac.ml", line 293, characters 40-46:
293 | | Nil, Cons _ -> Sure (if even then true 1 else -1)
This prevents Emacs from identifying the file/line/column (it uses a regular expression that starts at the beginning of the line). Without --no-buffer, there is no such issue.
Of course, I could first run dune build, where I can do next-error, and then dune runtest --no-buffer, but the point is to systematically run the very same (and single) command "compile and rerun tests".
If you could do anything about it, that would be great.
I'm using dune 2.6.2 with OCaml 4.09.1 on Linux Ubuntu 18.04.
(And thanks for dune, it's great!)
The text was updated successfully, but these errors were encountered:
I believe this has been fixed in #3767 (not yet released, but available from master). If you give it a try, let us know if it indeed fixes your problem.
I'm using Emacs to edit OCaml code and I'm continuously running
dune runtest
through Emacs'scompile
command whenever I make some change in my code (as I've done for years before switching fromMakefile
s todune
recently).It happens that I'm having a possibly large output and thus I had to add the
--no-buffer
option in order for the output to appear in Emacs's compilation buffer. But then, if there is some error in my code, I can't use Emacs'snext-error
anymore, as there is a missing newline before the compiler error message:This prevents Emacs from identifying the file/line/column (it uses a regular expression that starts at the beginning of the line). Without
--no-buffer
, there is no such issue.Of course, I could first run
dune build
, where I can donext-error
, and thendune runtest --no-buffer
, but the point is to systematically run the very same (and single) command "compile and rerun tests".If you could do anything about it, that would be great.
I'm using dune 2.6.2 with OCaml 4.09.1 on Linux Ubuntu 18.04.
(And thanks for dune, it's great!)
The text was updated successfully, but these errors were encountered: