-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
rg --help | rg
panics
#1125
Comments
Nice. Thanks for the bug report. This is almost certainly a bug in our arg parser, clap. |
This does not work either. |
@sergeevabc "does not work" is almost never a satisfactory bug report. I have no idea what you mean. Please consider including a reproducible example, along with input, actual output and expected output. In the future, it would be helpful if you could just do that from the start. |
Ah, I solved my case, turns out it’s irrelevant to the initial report. Happy troubleshooting nonetheless.
did not work
worked as soon as |
@sergeevabc I see no panic running any of those commands. I'm going to ask you one more time: please do not simply say, "does not work." Instead, show the expected output and the actual output. If you have an issue unrelated to this one, then file a new issue and fill out the issue template. |
Sorry if I am not contributing much but I am getting a similar panic:
but this works:
And this does not crash:
It seems it is an issue with argument parsing. I hope this helps a little. |
I did a bisect, bb110c1 is the first commit (that builds) that shows the issue. A reproducer is: The first |
I believe the fix here is to use |
What version of ripgrep are you using?
ripgrep 0.10.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
How did you install ripgrep?
cargo install ripgrep
What operating system are you using ripgrep on?
opensuse leap 15
Linux miair 4.12.14-lp150.12.25-default #1 SMP Thu Nov 1 06:14:23 UTC 2018 (3fcf457) x86_64 x86_64 x86_64 GNU/Linux
Describe your question, feature request, or bug.
panic
If this is a bug, what are the steps to reproduce the behavior?
$ rg --help | rg
If this is a bug, what is the actual behavior?
If this is a bug, what is the expected behavior?
print error message
The text was updated successfully, but these errors were encountered: