-
-
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
Unable to read files with long paths on Windows using list-file #704
Comments
I didn't do anything different in building the exe for 1.96. Possibly the C:> cpan -i Digest::MD5 C:> cpan -i Regexp::Common C:> cpan -i Algorithm::Diff C:> cpan -i PAR::Packer C:> pp -M Win32::LongPath -M Digest::MD5 -c -x -o cloc-1.96.exe cloc-1.96.pl If that works for you, I'll repeat the build and upload an updated .exe. |
Ah, yeah that's the problem. Like with I tried the build command you gave, but then I was getting this error when I tried running it: So the build command that worked for me is |
Thanks for figuring this out for me! I'm squeezed for time this week but will update the exe (and README instructions) before the week is out. |
Added the updated exe to a new release 1.96.1 and updated the exe build notes in the README. |
Using the latest cloc 1.96 windows binary release, I'm still having trouble with long paths.
I'm using a list-file and have
--no-recurse
set, which is working in bypassingFile::Find
and the long-path problems associated with it. But I still getUnable to read
errors for files with > 255 char paths.It runs fine when I test it with the script instead though. I have Strawberry Perl v5.32.1, all the dependencies listed in the readme, and Win32::LongPath installed. Is the problem that Win32::LongPath isn't being shipped with the binary, so it's just falling back on the built-in file operators? If so, would it be possible to add it to the binary release?
The text was updated successfully, but these errors were encountered: