-
Notifications
You must be signed in to change notification settings - Fork 55
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
Always outputs to STDOUT even if --out specified #14
Comments
Also, here are the versions I'm using. I will test later to see if this occurs with previous versions:
|
Looking through the source, I believe the problem lies here.
The way the code is written, it expects that you will always want console output if an additional formatter and output source is specified, but that's not always the case. Please see the pull request in Issue #15. |
👍 |
1 similar comment
👍 |
Are you active? |
Closing as #15 has been merged. |
Hi,
I recently discovered a bug in the runner which results in output being piped to
$stdout
even if the--out
option is specified in thecli
. Here are the steps to replicate:git clone
git@github.com:aeberlin/guard_example.git
RUBOCOP_OPTS
inGuardfile
with the text below:rake
and allow to load, thentouch
lib/guard_example/foo.rb
Notice how output for the default formatter is redirected to
$stdout
in addition to the results forProgressFormatter
being written totmp/progress_results.log
.For comparison, run a few of the statements below from
bash
and review the results.As you can see, the default formatter is properly omitted in the first example and then properly retained in the second example, with the specified formatter results always written to the designated path.
If you try to forcibly redirect output for the default formatter to another file, using the configuration below, you can also see that the results are still piped to
$stdout
.Any thoughts?
Thanks, cheers!
The text was updated successfully, but these errors were encountered: