benbalter / count-org-loc

Count total lines of code across a GitHub organization
MIT License
110 stars 129 forks source link

cloc not outputting summary #4

Closed xzuttz closed 2 years ago

xzuttz commented 2 years ago

Hi,

When running the script, it doesn't output a summary.

Testing with the serilog organization.

Script output:

me@DESKTOP-PR6Q977:/mnt/c/Code/count-org-loc$ ./script/count serilog
Found 52 repos. Counting...
Counting serilog...
Counting serilog-generator...
Counting serilog-sinks-mongodb...
Counting serilog-sinks-applicationinsights...
Counting serilog-sinks-splunk...
Counting serilog-sinks-loggly...
Counting serilog-sinks-azuredocumentdb...
Counting serilog-sinks-azureeventhub...
Counting serilog-sinks-azuretablestorage...
Counting serilog-sinks-couchbase...
Counting serilog-sinks-couchdb...
Counting serilog-sinks-email...
Counting serilog-sinks-eventlog...
Counting serilog-sinks-log4net...
Counting serilog-sinks-logentries...
Counting serilog-sinks-loggr...
Counting serilog-sinks-xamarin...
Counting serilog-sinks-nlog...
Counting serilog-sinks-ravendb...
Counting serilog-sinks-raygun...
Counting serilog-sinks-xsockets...
Counting serilog-sinks-signalr...
Counting serilog-sinks-datadog...
Counting serilog-sinks-rethinkdb...
Counting serilog-sinks-amazonkinesis...
Counting serilog-extensions-logging...
Counting serilog-settings-configuration...
Counting serilog-sinks-dynamodb...
Counting serilog-sinks-console...
Counting serilog-sinks-file...
Counting serilog-sinks-observable...
Counting serilog-sinks-periodicbatching...
Counting serilog-sinks-rollingfile...
Counting serilog-sinks-textwriter...
Counting serilog-sinks-trace...
Counting serilog-enrichers-environment...
Counting serilog-enrichers-process...
Counting serilog-enrichers-thread...
Counting serilog-settings-appsettings...
Counting serilog-formatting-compact...
Counting serilog-sinks-reflectinsight...
Counting serilog-sinks-async...
Counting serilog-formatting-compact-reader...
Counting serilog-extensions-logging-file...
Counting serilog-filters-expressions...
Counting serilog.github.io...
Counting serilog-sinks-map...
Counting serilog-aspnetcore...
Counting serilog-sinks-debug...
Counting serilog-extensions-hosting...
Counting serilog-sinks-browserconsole...
Counting serilog-expressions...
Done. Summing...

                       cloc -- Count Lines of Code

Usage:
    cloc [options] <file(s)/dir(s)/git hash(es)>
        Count physical lines of source code and comments in the given files
        (may be archives such as compressed tarballs or zip files) and/or
        recursively below the given directories or git commit hashes.
        Example:    cloc src/ include/ main.c

    cloc [options] --diff <set1>  <set2>
        Compute differences of physical lines of source code and comments
        between any pairwise combination of directory names, archive
        files or git commit hashes.
        Example:    cloc --diff Python-3.5.tar.xz python-3.6/

cloc --help  shows full documentation on the options.
https://github.com/AlDanial/cloc has numerous examples and more information.
benbalter commented 2 years ago

@xzuttz are you able to share the output of cloc --version?

xzuttz commented 2 years ago

@benbalter

keno@DESKTOP-PR6Q966:~$ cloc --version
1.92
benbalter commented 2 years ago

@xzuttz That's the same version I'm using, at it works for me. Right after the script outputs the "summing" text I see in your comment, it runs the cloc -sum-reports command. I'm not sure why it's failing for you and appears to be showing the cloc help text, rather than the output of the summation. The only thing I could think of is an escaping issue with the individual reports paths causing the command to fail, but they should be escaped based on how the command is executed. Do you have any ideas what might be happening?

xzuttz commented 2 years ago

@benbalter it seems to be working now. I reinstalled everything and made sure that cloc was on version 1.92. Thanks for an awesome tool 👍 :)