uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
151 stars 20 forks source link

Simply does not work after v1.3.0! #46

Closed philbowles closed 2 years ago

philbowles commented 3 years ago

No matter what I try, be it workspace, directory I get the error: [VSCodeCounter] There was no target file.

Version is showing as 2.2.1 and I'm using the latest fully-up-to-date version of VSCode

I "walked back" the versions... anything below 1.3.1 works , nothing above 1.3.0 works, all failing with the error above

uctakeoff commented 3 years ago

Thanks for the report.

pragmatically-dev commented 3 years ago

Unable to install extension 'uctakeoff.vscode-counter' as it is not compatible with VS Code '1.52.1'.

yanyan0207 commented 3 years ago

I have found that it does not work if the number of target files is very large.

In my case, it simply does not work when there are 11,670 cpp files. (No output, no error log).

Adding "Exclude" Settings to reduce the number of target files made it work.

uctakeoff commented 3 years ago

@yanyan0207 Probably fixed in ver. 2.3.0. Please try it out.

Zielgestalt commented 3 years ago

For me It only works for folders that aren't excluded by .gitignore. Just comment the lines out in gitignore - everything works for me. v2.3.0, MacOs 11.4.

uctakeoff commented 3 years ago

@Zielgestalt VS Code Counter references .gitignore setting. If you don't need it, disable the "VSCode Counter: Use Gitignore" setting.

yanyan0207 commented 3 years ago

@yanyan0207 Probably fixed in ver. 2.3.0. Please try it out.

It works fine! thanks!