On 09/01/14 21:57, Johann SAUNIER wrote:
> Hi all,
> 
> Code navigation in Python language is a pain due to the fact that the
> action "go to symbol definition" on classes or methods don't go to the
> actual definition, but rather heads to the import line at the top of the
> file. I am a bit surprised that no one complains about that...

I'm annoyed by this as well, beaten by it almost every day.


> The guilty is the call to parseImports() in tagmanager/ctags/python.c.

Ah, my code :(.
More seriously, I once debugged this quite a bit and the import parsing
is only the symptom, the real cause is deeper. Unfortunately, I don't
remember all the details because at some point I gave up on this issue
because I didn't find a way to fix it.

Not parsing the imports doesn't solve the problem, it rather just makes
it not happen. I personally like parsed imports and also want to get to
the real symbol definition instead of the import, obviously.

I'll try to recapture what I've found once and/or debug it again and
then ask Colomban for his great wisdom about tag parsing :).


> Would it be possible to only delete the line in Geany's source code ? or is
> anyone more interested in being redirected to the import line rather than
> the actual definition ?

No, surely not.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel

Reply via email to