-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: show number of errors when waiting in watch mode (#8408)
This displays: Had 4 errors, waiting for filesystem changes... When the watch mode build has been finished with 4 errors. For a single error it say "Had 1 error". Signed-off-by: Ali Caglayan <[email protected]>
- Loading branch information
Showing
6 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Dune now displays the number of errors when waiting for changes in watch mode. (#8408, | ||
@Alizter) |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
We test the behavior of watch mode when we have multiple errors | ||
|
||
$ . ./helpers.sh | ||
|
||
$ echo "(lang dune 3.11)" > dune-project | ||
|
||
$ start_dune | ||
|
||
$ cat > x <<EOF | ||
> not so | ||
> EOF | ||
|
||
$ cat >dune <<EOF | ||
> (rule | ||
> (action | ||
> (progn | ||
> (write-file y "different") | ||
> (diff x y)))) | ||
> (rule | ||
> (action | ||
> (progn | ||
> (write-file z "different") | ||
> (diff x z)))) | ||
> (rule | ||
> (deps y z) | ||
> (action | ||
> (write-file w ""))) | ||
> EOF | ||
|
||
$ build w | ||
Failure | ||
|
||
$ stop_dune | ||
File "x", line 1, characters 0-0: | ||
Error: Files _build/default/x and _build/default/y differ. | ||
File "x", line 1, characters 0-0: | ||
Error: Files _build/default/x and _build/default/z differ. | ||
Had 2 errors, waiting for filesystem changes... |
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