anaconda
anaconda copied to clipboard
For some reason Go to jumps to import statement firstly
I've noticed strange behavior recently.
When I am trying to use go to
definition anaconda jumps to import statement with that expression, and only after that by pressing go to
second time I am able to jump to expression definition in that file. I mean that there is intermediate place in import statement between direct jump. Any ideas?
Maybe there is some change in how Jedi resolves the symbols, this happens always or just with some kind of symbol? (like defined by you, part of standard library, 3rd party libraries, etc)
Most of the time. Looks like it is ok only with default go to
fallbacks.
Hm there is some pattern.
If there is direct import statement with some expression from .selectable import TableClause
go to called on TableClause
jumps to import statement and only after that in file which contains TableClause
definition.
I confirm. Very annoying behaviour.
After look into this for a while, looks like Jedi is resolving to those locations itself
Yeah https://github.com/davidhalter/jedi/issues/995
Should be fixed on v2.1.27
Reproduced on version 2.1.28
I had to rollback so 2.1.28 is equivalent to 2.1.26