Code Monkey home page Code Monkey logo

Comments (9)

XAMPPRocky avatar XAMPPRocky commented on September 1, 2024 1

Thank you for your issue! cc @qtfkwk it seems this is caused by your clap changes.

from tokei.

qtfkwk avatar qtfkwk commented on September 1, 2024 1

Can confirm @9SMTM6's error on a similar system (amd64 / debian). Looking into a fix now.

from tokei.

qtfkwk avatar qtfkwk commented on September 1, 2024 1

PR: #1139

from tokei.

9SMTM6 avatar 9SMTM6 commented on September 1, 2024 1

I can confirm that this solves the issue cargo install --git https://github.com/qtfkwk/tokei.git --branch fix-issue-1138 tokei. I'm gonna keep this open until merged and released in case others have issues. Feel free to close if preferred or if solved.

from tokei.

qtfkwk avatar qtfkwk commented on September 1, 2024

Found the same issue also affects the hidden, languages, no_ignore, no_ignore_parent, no_ignore_dot, no_ignore_vcs, and compact options, since they are also flag options.

Have a working fix now. Submitting a PR momentarily.

from tokei.

qtfkwk avatar qtfkwk commented on September 1, 2024

Sorry about that! Please pull after the PR merges (or use my fork) and confirm if the issue is resolved. Thanks!

from tokei.

0323pin avatar 0323pin commented on September 1, 2024

oh ... I was coming here to say this ... I get the same.

But, I'll leave the build warnings as well

warning: method `is_not_line_ending_whitespace` is never used
 --> src/utils/ext.rs:5:8
  |
3 | pub(crate) trait AsciiExt {
  |                  -------- method in this trait
4 |     fn is_whitespace(&self) -> bool;
5 |     fn is_not_line_ending_whitespace(&self) -> bool;
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: constant `FALLBACK_ROW_LEN` is never used
 --> src/consts.rs:3:11
  |
3 | pub const FALLBACK_ROW_LEN: usize = 81;
  |           ^^^^^^^^^^^^^^^^

warning: constant `LANGUAGE_COLUMN_WIDTH` is never used
 --> src/consts.rs:6:11
  |
6 | pub const LANGUAGE_COLUMN_WIDTH: usize = 10;
  |           ^^^^^^^^^^^^^^^^^^^^^

warning: constant `PATH_COLUMN_WIDTH` is never used
 --> src/consts.rs:7:11
  |
7 | pub const PATH_COLUMN_WIDTH: usize = 80;
  |           ^^^^^^^^^^^^^^^^^

warning: constant `FILES_COLUMN_WIDTH` is never used
 --> src/consts.rs:8:11
  |
8 | pub const FILES_COLUMN_WIDTH: usize = 8;
  |           ^^^^^^^^^^^^^^^^^^

warning: `tokei` (lib) generated 5 warnings
warning: field `verbose` is never read
  --> src/cli.rs:55:9
   |
38 | pub struct Cli {
   |            --- field in this struct
...
55 |     pub verbose: u64,
   |         ^^^^^^^
   |
   = note: `Cli` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: associated function `all` is never used
   --> src/cli_utils.rs:114:12
    |
104 | impl NumberFormatStyle {
    | ---------------------- associated function in this implementation
...
114 |     pub fn all() -> &'static [&'static str] {
    |            ^^^

warning: `tokei` (bin "tokei") generated 2 warnings

from tokei.

qtfkwk avatar qtfkwk commented on September 1, 2024

oh ... I was coming here to say this ... I get the same.

But, I'll leave the build warnings as well

Created a new issue for those: #1141

from tokei.

9SMTM6 avatar 9SMTM6 commented on September 1, 2024

alpha3 solved this particular issue.

from tokei.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.