Modify

Ticket #275 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

cl prepare --ctags failure with exuberant ctags 5.7

Reported by: René Stadler <mail@…> Owned by: thomas
Priority: critical Milestone: 0.2.6
Component: moap Version: TRUNK
Keywords: Cc: t.i.m@…

Description (last modified by thomas) (diff)

Since I switched from Ubuntu Feisty to Gutsy beta (exuberant-ctags 5.6 to 5.7), moap cl prepare --ctags fails for me like so:

$ ~/build/moap/bin/moap cl prepare --ctags

Updating ChangeLog from Bazaar repository.

Finding changes.

Extracting affected tags from source.

Traceback (most recent call last):
  File "/home/cymacs/build/moap/bin/moap", line 28, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/main.py", line 13, in main
    ret = c.parse(argv)
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 235, in parse
    return self.aliasedSubCommands[command].parse(args[1:])
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 231, in parse
    return self.subCommands[command].parse(args[1:])
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 213, in parse
    ret = self.do(args)
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/command/cl.py", line 498, in do
    ct.addString(output)
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 72, in addString
    self._parse(string.split('\n'))
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 79, in _parse
    t.parse(line)
  File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 38, in parse
    raise KeyError, "line %s not a ctags line" % line
KeyError: 'line ctags: Warning: ignoring null tag in GstInspector/GUI.py not a ctags line'

I traced the problem to the different ctags versions. The newer one outputs a warning line like this on stderr:

ctags: Warning: ignoring null tag in test-ctags.py

While this seems that I'm hitting a very very strange bug in ctags, I think moap should ignore this warning message instead of aborting.

Attachments

Change History

comment:1 Changed 6 years ago by t.i.m@…

  • Cc t.i.m@… added

Odd, I have not run into problems with exuberant-ctags and moap in gutsy so far. (But I've enabled ctags in moap only recently, maybe it's been fixed in gutsy)

comment:3 Changed 5 years ago by thomas

  • Description modified (diff)

comment:4 Changed 5 years ago by thomas

  • Status changed from new to closed
  • Resolution set to fixed

(In [347]) * moap/util/ctags.py:

Handle ignoring null tag warnings from exuberant ctags. Fixes #275.

comment:4 Changed 4 years ago by anonymous

Traceback (most recent call last):

File "/home/cymacs/build/moap/bin/moap", line 28, in <module>

sys.exit(main(sys.argv[1:]))

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/main.py", line 13, in main

ret = c.parse(argv)

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 235, in parse

return self.aliasedSubCommands[command].parse(args[1:])

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 231, in parse

return self.subCommands[command].parse(args[1:])

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/extern/command/command.py", line 213, in parse

ret = self.do(args)

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/command/cl.py", line 498, in do

ct.addString(output)

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 72, in addString

self._parse(string.split('\n'))

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 79, in _parse

t.parse(line)

File "/home/cymacs/build/moap/lib/python2.5/site-packages/moap/util/ctags.py", line 38, in parse

raise KeyError?, "line %s not a ctags line" % line

I'm closing it according to the last comment.
----------
 nike air yeezy

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.