Public bug reported:

Binary package hint: exuberant-ctags

The behavior of exuberant-ctags has recently changed so that, when
indexing Python code, imports will be mixed up with definitions.  In
practice, it means that when one searches for ClassName, everything
which lists ClassName in an import statement will be included in the
result next to the definition itself, which is pretty bad.

To workaround the problem, include this in your ~/.ctags file:

    --python-kinds=-i

Colin found the actual commit and upstream bug related to the problem:

----

Probably this commit (from the bzr import):

 revno: 693
 committer: elias
 timestamp: Sun 2009-07-05 15:38:06 +0000
 message:
   Synchronized the python parser with the geany tagmanager, including the 
following geany commits:
   r3788: nestlevel.c and some other stuff
   r3804: Parse Python import statements to get symbol completion for the 
imported module names.
   r3809: Parse Python calltips.
   r3831: Fix grouping functions/classes under a nested function.

   Many thanks to the geany devs!

Here's the upstream bug:

http://sourceforge.net/tracker/index.php?func=detail&aid=2829739&group_id=6556&atid=106556

** Affects: exuberant-ctags (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Changed in: exuberant-ctags (Ubuntu)
       Status: New => Confirmed

-- 
Python imports being mixed with actual definition
https://bugs.launchpad.net/bugs/618979
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to