Skip to content
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

Panic when using -j flag #1160

Closed
ilyapopov opened this issue Nov 2, 2022 · 3 comments · Fixed by #1162
Closed

Panic when using -j flag #1160

ilyapopov opened this issue Nov 2, 2022 · 3 comments · Fixed by #1162
Labels

Comments

@ilyapopov
Copy link

After installing the latest version of fd-find (8.5.0), I am getting the following error when I rust fd in signle-thread mode:

$ fd -j 1
thread 'main' panicked at 'Mismatch between definition and access of `threads`. Could not downcast to TypeId { t: 18349839772473174998 }, need to downcast to TypeId { t: 12390601965711666277 }
', /home/ilya/.cargo/registry/src/gh.neting.cc-1ecc6299db9ec823/clap-4.0.18/src/parser/error.rs:30:9
stack backtrace:
   0: rust_begin_unwind
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library/core/src/panicking.rs:142:14
   2: <fd::cli::Opts as clap::derive::FromArgMatches>::from_arg_matches_mut
   3: fd::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Without -j 1 it works fine. The panic is present if using other number with -j flag, such as -j 2 etc.

What version of fd are you using?

$ fd --version
fd 8.5.0
@sharkdp
Copy link
Owner

sharkdp commented Nov 2, 2022

Thank you for reporting this.

@sharkdp
Copy link
Owner

sharkdp commented Nov 2, 2022

I released a new version with the fix: https://github.com/sharkdp/fd/releases/tag/v8.5.1

@ilyapopov
Copy link
Author

Can confirm, 8.5.1 works fine. Thanks!

@mbhall88 mbhall88 mentioned this issue Nov 2, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants