edesiocs / google-gtags

Automatically exported from code.google.com/p/google-gtags
GNU General Public License v2.0
0 stars 0 forks source link

Better handling of empty targets #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run gentags.py in a directory not containing code in either Java,
Python, or C++.
2. Watch the output
3. List the files in the current directory

gentags.py shouldn't try to generate a TAGS file for a particular
programming language when there isn't any file written in this language in
the directory tree. I included a quick-and-dirty fix, to this issue ticket.

Here the error message I got:

% gentags.py --etags=/usr/bin/etags --rtags=~/tools/rtags.py \     
   --etags_to_tags=~/tools/etags_to_tags.py
generating tag file: TAGS
generating tag file: JTAGS
etags: No files specified. Try "etags --help".
errors generating tag file for JTAGS
generating tag file: PTAGS
generating tag file: TAGSC
generating tag file: JTAGSC
generating tag file: PTAGSC
translating tag file: cpp.tags
translating tag file: cpp.callers.tags
translating tag file: python.tags
translating tag file: java.callers.tags
translating tag file: java.tags
Traceback (most recent call last):
  File "/home/alex/tools/etags_to_tags.py", line 200, in ?
    main()
  File "/home/alex/tools/etags_to_tags.py", line 183, in main
    infile = open(options.input_file, "r")
IOError: [Errno 2] No such file or directory: 'JTAGS'
translating tag file: python.callers.tags

What version of the product are you using? On what operating system?
Version 1.0 on a development Ubuntu version (Feisty Fawn) with Python 2.5 

Original issue reported on code.google.com by avassalo...@gmail.com on 5 Mar 2007 at 1:24

Attachments:

GoogleCodeExporter commented 9 years ago
Oops, the patch was... well, empty. :)

Original comment by avassalo...@gmail.com on 5 Mar 2007 at 1:32

Attachments:

GoogleCodeExporter commented 9 years ago
Acknowledged. Will fix.

Original comment by piaw...@gmail.com on 18 Mar 2007 at 12:42

GoogleCodeExporter commented 9 years ago
This is fixed in gtags 1.0.1. We actually had to rewrite a good portion of 
gentags.py
as it was also causing problems for users on OSX. Thank you very much for 
submitting
patch.

Original comment by trace....@gmail.com on 19 Mar 2007 at 8:39