Using --sortr path
gives error "thread 'main' panicked"/"not yet implemented"
#2664
Closed
1 task done
Labels
bug
A bug.
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
ripgrep 14.0.2 (rev 6c7947b)
features:-simd-accel,+pcre2
simd(compile):+SSE2,+SSSE3,-AVX2
simd(runtime):+SSE2,+SSSE3,-AVX2
PCRE2 10.42 is available (JIT is available)
How did you install ripgrep?
Homebrew (Mac, Apple Silicon) and asdf
What operating system are you using ripgrep on?
macOS Sonoma 14.1.1
Describe your bug.
When I use the
--sortr path
option, rg fails with:The error doesn't happen for the non-reversed
--sort path
. It also doesn't happen for other options to --sort or --sortr (accessed, created, modified, none).I'm able to reproduce the error with ripgrep 14.0.0, 14.0.1, and 14.0.2. I can't reproduce the error in ripgrep 13.0.0.
What are the steps to reproduce the behavior?
Run
rg --sortr path bar
.What is the actual behavior?
When I use the
--sortr path
option, rg fails with:Looks like it's pointing to the
todo!
on https://github.com/BurntSushi/ripgrep/blob/ca5e294ad6b64b03c1d2fb4d9ed8c32b73e656ae/crates/core/flags/hiargs.rs#L774C1-L774C43The error doesn't happen for the non-reversed
--sort path
. It also doesn't happen for other options to --sort or --sortr (accessed, created, modified, none).I'm able to reproduce the error with ripgrep 14.0.0, 14.0.1, and 14.0.2. I can't reproduce the error in ripgrep 13.0.0.
With --debug flag:
What is the expected behavior?
Ripgrep should return the matching results reverse-sorted by path.
The text was updated successfully, but these errors were encountered: