-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Using rg on a terminal prints loads of empty lines #99
Comments
Could you provide some input, preferably a single file, where this happens? On Sep 26, 2016 2:52 AM, "dersebi" notifications@github.com wrote:
|
A simple test case would be the following:
I haven't verified this, but is seems to add an empty line for each file without a match. |
Weird, I can't reproduce:
Could you try your test case again with |
|
Hmm, I'm not sure what's causing this and I can't reproduce it. :-/ Probably my next step is firing up an Ubuntu 14.04 VM, and it may take me a while to get to that. |
I can reproduce this on Ubuntu 16.04 64bit (single core) on bash with 0.2.0
But I can't reproduce this on CentOS 6.8 (4 cores). |
@Windware AH! Dammit. This is another single threaded bug. I really wish I could DRY that up. Thank you so much for looking into this because you just saved me a bunch of time! (P.S. Try running |
-j1 did it on CentOS but it only produced a single blank line with my above example. |
OK, this should be fixed. This was a regression I introduced last night. :-( |
Fixed indeed. Much better, thanks! |
Using ripgrep on a Linux terminal prints loads of empty lines. I tried searching a big directory for a word without any additional options and there is pages of empty lines.
When redirecting the oputput to a file it does not include the empty lines.
I tested with a smaller directory and there are less empty lines.
As output redirection does not have a problem this might be related to special terminal characters?
My test system is an Ubuntu 14.04 LTS and I tested with uxterm and gnome-terminal.
I built ripgrep using cargo in release mode. My Rust version is 1.11.0.
The text was updated successfully, but these errors were encountered: