Giter Site home page Giter Site logo

Comments (6)

mthebridge avatar mthebridge commented on July 18, 2024 10

I have the same issue - but I can workaround it, because if I run cargo count -a --exclude=$(cat .gitignore) everything works as expected. Which suggests it's the gitignore handling that's broken...?

from cargo-count.

Aeledfyr avatar Aeledfyr commented on July 18, 2024 3

Until the author makes a new version on crates.io, you can fix this by cloning the repo and building and installing it yourself.

Here is a quick script to do that: git clone https://github.com/kbknapp/cargo-count && cd cargo-count && cargo install --path . --force

from cargo-count.

 avatar commented on July 18, 2024

This is fixed for me by #37, which I find a bit strange, since I have no idea why the version mismatch between Cargo.toml and Cargo.lock would result in this behavior.

This is my first ever PR so I hope I did it right! (Even though this is pretty much the smallest PR possible...)

from cargo-count.

repi avatar repi commented on July 18, 2024

Same problem here, on both Mac and Windows with my repo. cargo count -a --exclude=$(cat .gitignore) worked around it

from cargo-count.

repi avatar repi commented on July 18, 2024

Can confirm that installing the latest git version solved the issue I was running into

from cargo-count.

lucidBrot avatar lucidBrot commented on July 18, 2024

Installing the latest git version with @Aeledfyr 's suggested command did install the new version but did not fix the issue for me in the root of my project workspace. However, it does now work for each individual crate, which it did not before.

from cargo-count.

Related Issues (18)

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.