-
-
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
Pipe causes panic #22
Comments
Confirmed. Version 0.1.15, OSX (binary from site). |
Bah, yup, bug. |
The new version won't panic if printing to stdout fails. Fixes #22.
The new version won't panic if printing to stdout fails. Fixes BurntSushi#22.
Sorry it's back. I think the panic is here now. |
Please provide a reproduction.
…On Wed, Feb 20, 2019, 15:59 Miles Steele ***@***.*** wrote:
Sorry it's back. I think the panic is here
<https://github.com/clap-rs/clap/blob/master/src/errors.rs#L401> now.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAb34uMztCrT7_1bT0H4PdPtZLGWW2t2ks5vPbc-gaJpZM4KFPHu>
.
|
|
Why are you using (This is why providing a reproduction is always important.) |
Yes, that backtrace points to Cargo, not ripgrep. |
Whoops. I was only using cargo (incorrectly) because I cloned the repo to poke around after seeing it another way. cargo installThis is how I've been using ripgrep normally. As you can see it's nondeterministic but mostly panics.
github downloadhttps://github.com/BurntSushi/ripgrep/releases
cargo runfwiw
|
There hasn't been a release since this was fixed on master. Try compiling a recent checkout instead. |
@BurntSushi I am having the same issue even after building from master:
|
Steps to reproduce:
|
@cj Thanks for the report, but that's unfortunately not a valid reproduction. The panic is coming from Compare:
with
If the bug were in ripgrep, then the first example would have shown a backtrace. In the second example, you can see at |
@BurntSushi that makes sense -- I will open a ticket in their repo. Thank you for your response and taking a look! |
@BurntSushi Thanks for the investigation! Sorry for causing noise on your repo and thanks so much for RipGrep! |
Running
rg --help | echo
causes a panic. Not that this is a particularly useful thing to do anyway. ;) This only happens for--help
, works fine when searching.The text was updated successfully, but these errors were encountered: