Comments (6)
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.
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.
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.
Same problem here, on both Mac and Windows with my repo. cargo count -a --exclude=$(cat .gitignore)
worked around it
from cargo-count.
Can confirm that installing the latest git version solved the issue I was running into
from cargo-count.
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)
- C and C Headers have some unsafe code HOT 8
- cpp is not the only extension for C++ HOT 7
- Block comment bug HOT 1
- Unused import std::io::Write HOT 1
- Everything excluded when using exclude-all-then-add-some .gitignore HOT 9
- error: stream did not contain valid UTF-8 HOT 1
- Incorrect number of "unsafe" instances reported
- Add more languages HOT 1
- unable to install HOT 4
- Numerous warnings when building cargo-count
- Looking for maintainers?
- Add support of GLSL
- Ensure "unsafe" counts HOT 4
- cargo count dies if there are broken symlinks in tree HOT 2
- cago count will fail if a symlink points to a parent directory HOT 2
- cargo count counts rust source files in the target/ directory HOT 2
- Add option to use .gitignore as baseline for --exclude
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-count.