-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a configuration file and a quiet mode #490
Conversation
fiber) | ||
(Fiber.fork_and_join_unit | ||
(fun () -> go_rec t) | ||
(fun () -> fiber)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, this change was simply omitted, right? I assume this is just for perf.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was a mistake. This showed up after this patch as sometimes the status line wasn't cleaned up at the end
include Jbuilder.Scheduler | ||
|
||
let go ?log ~common fiber = | ||
Scheduler.go ?log ~config:common.config fiber |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should just initialize the log here from ~common
. I think that's what we always do anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, although I think there is a case where we call the scheduler twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work well for me and the new output is definitely an improvement. Other candidates for this config file are things like the diff cmd.
Also it would be nice to enumerate the display options in |
Indeed. We could also allow to customize the status line: (status_line "foo: ${todo}, jobs: ${jobs}") One things I'm going to add straight after that is: (jobs 20)
indeed |
I added the doc. I was finding that the man page was getting big, so I added |
Once we don't stop at the first error, the output becomes messy. This PR adds display modes:
quiet
: only print errorsprogress
: interactive display showing the number of rules processed so far and the number of parallel jobs running. This is the new defaultshort
: current defaultverbose
: same as current--verbose
The display mode can be selected via the
--display
command line argument, or via the configuration file~/.config/dune/config
.TODO: