boyter / scc

Sloc, Cloc and Code: scc is a very fast accurate code counter with complexity calculations and COCOMO estimates written in pure Go
MIT License
6.28k stars 250 forks source link

error in Ubuntu 18.06: file or directory does not exist #409

Closed lxyeternal closed 6 months ago

lxyeternal commented 9 months ago
(base) server@server-XX-7D32:/data1/codes/testdataset$ scc /data1/codes/
file or directory does not exist: /data1/codes

The test file is exist, but the scc can not to detect and report the error.

boyter commented 9 months ago

That's an odd one. Are you able to recreate it somehow?

ErikPel commented 9 months ago

Did you install with snap?

I ran into same issue and figured out that the snap version cannot run for files outside your home directory.

Try moving that folder to your /home/ and try again and check if that works

boyter commented 9 months ago

Ah yes... that sounds familiar. I should update that on the README

boyter commented 6 months ago

Confirmed it is included on the README.