When I am in certain files, for example, External Library files, I am getting this behavior where the Go To Definition command jumps me to the import statement at the top of the file instead of opening the file with the real definition.
For example, I'm in an external library, (jumped here using Go To Definition), and from here, I again want to jump, so I put the cursor on the return statement on the Something token and hit "Go To Definition"...
from external.library.mod import Something
...
def scoped_session(arg):
...
return Something(arg)
... which jumps me to the "from external.library.mod import Something" statement at the top of the file. I have the paths and sub-paths defined in External Libraries for the project.
I expect it to instead open the actual definition in the given package/file instead of jumping to the import statement.
Ubuntu 11.10, Eclipse 3.7.1, PyDev 2.4.0, Python 2.7.2