-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloc 1.68 warning: which: no abc in (..) #105
Comments
That's odd. The error is being triggered by line 133 where an attempt is made to see if SLOCCount is installed by way of its 133 $HAVE_SLOCCOUNT_c_count = external_utility_exists("echo 'abc' | c_count"); This works well enough on my Ubuntu 16.04 machine with and without What happens on your machine when you do echo 'abc' | c_count where You can delete the if statement at lines 132-134 to avoid the error. But of course I'd still like to understand and fix the issue for Arch Linux. |
I'm seeing the same warning with the following Perl snippet:
The command it's running is Perhaps you have |
echo 'abc' | c_count show from your command line? |
It shows Debian/Ubuntu seem to ship a custom implementation of |
Thanks for the info. Can you suggest a mechanism to test for the existence of an executable that would work on Arch and Debian (and RHEL, etc)? |
I installed VirtualBox on my Ubuntu system, created an Arch VM, and was able to duplicate the problem. So a fix should be forthcoming soon. |
<oops, wrong button, didn't mean to close> |
Not an obvious fix at all; the only way I could satisfy both Ubuntu and Arch was to test the output of c_count against some file--any file. I chose |
--use-sloccount (this should have been the logic from the start)
@AlDanial When might this fix be pushed into a bugfix release? Updating the Fedora packages -- should I patch around this issue for now, or can we expect a release soon? |
I'll make a release (v1.70) with this fix July 1st. Won't be able to get to it sooner. |
fyi, just released v1.70 which contains the fix |
I'm seeing the following warning in cloc 1.68 which didn't occur with previous versions:
which: no abc in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
Perl version shouldn't matter, but I'm using v5.22.2 on Arch Linux.
The text was updated successfully, but these errors were encountered: