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

Release v13.0.0-alpha.3 broken #1145

Closed
Sigmanificient opened this issue Aug 21, 2024 · 7 comments
Closed

Release v13.0.0-alpha.3 broken #1145

Sigmanificient opened this issue Aug 21, 2024 · 7 comments

Comments

@Sigmanificient
Copy link

> results/tokei/bin/tokei --exclude nixpkgs
thread 'main' panicked at /build/tokei-13.0.0-alpha.3-vendor.tar.gz/clap_builder/src/parser/error.rs:32:9:
Mismatch between definition and access of `exclude`. Could not downcast to TypeId { t: (13369810092395217272, 7199936582794304877) }, need to downcast to TypeId { t: (12860632812102975081, 3350365521333402252) }

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

> results/tokei/bin/tokei logs
thread 'main' panicked at /build/tokei-13.0.0-alpha.3-vendor.tar.gz/clap_builder/src/parser/error.rs:32:9:
Mismatch between definition and access of `input`. Could not downcast to TypeId { t: (13369810092395217272, 7199936582794304877) }, need to downcast to TypeId { t: (12860632812102975081, 3350365521333402252) }

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

@XAMPPRocky
Copy link
Owner

Cc @qtfkwk seems to be more clap related issues.

@qtfkwk
Copy link
Contributor

qtfkwk commented Aug 22, 2024

Confirmed behavior via:

~/github.com/qtfkwk/tokei$ git log -n 1 --pretty=format:"%h" --no-show-signature
612981e
~/github.com/qtfkwk/tokei$ cargo build
~/github.com/qtfkwk/tokei$ ./target/debug/tokei -e nixpkgs
thread 'main' panicked at src/cli.rs:327:50:
Mismatch between definition and access of `exclude`. Could not downcast to &str, need to downcast to alloc::string::String

qtfkwk pushed a commit to qtfkwk/tokei that referenced this issue Aug 22, 2024
@qtfkwk
Copy link
Contributor

qtfkwk commented Aug 22, 2024

PR: #1146

@qtfkwk
Copy link
Contributor

qtfkwk commented Aug 22, 2024

Sorry about that @Sigmanificient! Thanks for your issue. Should be resolved following the PR and subsequent alpha release. Please confirm from your view.

XAMPPRocky pushed a commit that referenced this issue Aug 22, 2024
@rich-purnell
Copy link

When I was using version 13.0.0-alpha.4, this error still occurred.

╭─u0_a288@localhost ~/Source/SJTU-IPADS/OS-Course-Lab ‹main›
╰─$ tokei --version                                                                                                                                               134 ↵
tokei 13.0.0-alpha.4 compiled with serialization support: json, cbor, yaml
╭─u0_a288@localhost ~/Source/SJTU-IPADS/OS-Course-Lab ‹main›
╰─$ tokei Lab0
thread 'main' panicked at /home/builder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.15/src/parser/error.rs:32:9:
Mismatch between definition and access of `input`. Could not downcast to TypeId { t: (13369810092395217272, 7199936582794304877) }, need to downcast to TypeId { t: (5251096943531356199, 14678738461321770110) }

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    24768 abort      tokei Lab0

@qtfkwk
Copy link
Contributor

qtfkwk commented Aug 23, 2024

@rich-purnell, I was able to confirm via:

~/github.com/qtfkwk/tokei$ git log -n 1 --pretty=format:"%h" --no-show-signature
26f1334
~/github.com/qtfkwk/tokei$ cargo build
...
~/github.com/qtfkwk/tokei$ ./target/debug/tokei src
thread 'main' panicked at src/cli.rs:334:28:
Mismatch between definition and access of `input`. Could not downcast to &str, need to downcast to alloc::string::String

qtfkwk pushed a commit to qtfkwk/tokei that referenced this issue Aug 23, 2024
XAMPPRocky pushed a commit that referenced this issue Aug 23, 2024
@rich-purnell
Copy link

@qtfkwk In version 13.0.0-alpha.5, the above phenomenon has disappeared. Congratulations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants