Open maximvl opened 8 years ago
Hello, and thanks for the suggestion! Elpy simply passes the position to the backend – you seem to be using Rope, which does not do the right thing in this situation. If you add (setq elpy-rpc-backend "jedi")
to your config and restart (or just deinstall rope and install jedi), does it work then?
@jorgenschaefer Well, ye, with jedi
go to module definiton works, but symlinked libraries, which were working with rope
don't work with jedi
. I'll make reproducible example later.
Ah, sorry for not understanding before! A reproduceable example would be great – this is something Jedi would have to implement :-)
Hi! I've found that
elpy-goto-definition
works well with functions, classes and variables. But I can't go to the definition of modules. The patternfrom module1 import module2
is widely used in python and I think it would be nice to have it implemented, if backend supports this, of course.Simple test I've tried - with file
a.py
:and file
b.py
in same directory:So, if I'm in
b.py
, and point is onfun_a
- it will move me to the definition offun_a
. But if point is ona
either in import or function call -elpy-goto-definition
will do nothing.