Closed memeplex closed 3 years ago
Setting PYTHONPATH is not respected in VIMs Python. We could potentially do that in jedi-vim. What do you think @blueyed ?
Do you mean to massage sys.path
for Jedi, or some other way?
Yeah, exactly. Not saying that it's a good idea at the moment, but somewhere in the future if virtualenvs are supported?!
I'm having the exact same problem, is there any workaround at the moment?
Latest Jedi is way way smarter about this stuff and thanks to your reproduction case I was able to see that this has been solved.
I'm having a problem similar to https://github.com/davidhalter/jedi-vim/issues/195, here is a step by step procedure to reproduce the issue:
Now try to autocomplete
import pkg.
, jedi will suggest onlytest_mod
, which is wrong given thePYTHONPATH
, and won't suggestmod
, which is also wrong.Now, if you edit
pkg/mod.py
instead,import pkg.
will correctly suggestmod
. It is as if the file being edited is influencing jedi's notion of the python path.