Skip to content

Panic when using -j flag #1160

Closed
Closed
@ilyapopov

Description

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/github.com-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

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions