raullaasner / fortran-tags

Emacs plugin for source code indexing of modern Fortran
GNU General Public License v3.0
18 stars 2 forks source link

FORTAGS generating ERROR #10

Open OrionRandD opened 2 years ago

OrionRandD commented 2 years ago

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?

raullaasner commented 2 years ago

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).

OrionRandD commented 2 years ago

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... :)