fortran-tags icon indicating copy to clipboard operation
fortran-tags copied to clipboard

FORTAGS generating ERROR

Open OrionRandD opened this issue 2 years ago • 2 comments

I cannot generate the FORTAGS file. It gives an error in line 527
:(

fortran-tags.py -g FORTAGS Traceback (most recent call last): File "/home/lea/scimax/user/local-repo/fortran-tags/fortran-tags.py", line 527, in total_size = (sum(os.stat(f).st_size for f in args.generate) - File "/home/lea/scimax/user/local-repo/fortran-tags/fortran-tags.py", line 527, in total_size = (sum(os.stat(f).st_size for f in args.generate) - FileNotFoundError: [Errno 2] No such file or directory: 'FORTAGS'


Same here:

fortran-tags.py -g ~/Documents/programming_courses/fortran/FORTAGS Traceback (most recent call last): File "/home/lea/scimax/user/local-repo/fortran-tags/./fortran-tags.py", line 527, in total_size = (sum(os.stat(f).st_size for f in args.generate)

File "/home/lea/scimax/user/local-repo/fortran-tags/./fortran-tags.py", line 527, in total_size = (sum(os.stat(f).st_size for f in args.generate)

FileNotFoundError: [Errno 2] No such file or directory: '/home/lea/Documents/programming_courses/fortran/FORTAGS'


Also: could you add it to MELPA?

OrionRandD avatar Oct 15 '22 16:10 OrionRandD

Your argument to fortran-tags.py should actually be the source file name (or several source file). Like this:

 fortran-tags.py -g main.f90

It then produces a file called FORTAGS (you can change that with the -o flag).

raullaasner avatar Oct 17 '22 12:10 raullaasner

Your argument to fortran-tags.py should actually be the source file name (or several source file). Like this:

 fortran-tags.py -g main.f90

It then produces a file called FORTAGS (you can change that with the -o flag).

OK. Thx a lot... Looking forward to seeing it on MELPA and also, if possible, an ox-fortran to use it inside orgmode babel sources... :)

OrionRandD avatar Oct 18 '22 14:10 OrionRandD