-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocompletion in virtualenv #379
Comments
It should work if you activate the virtualenv before opening the vim session and the python version matches. Also use the latest dev branch of Jedi. |
Thnx for your reply. I've tested it in the following setting: (jedi-vim) master branch Made two projects: workon test3 If I put the cursor on peewee and I press 'K' It should display the docs of peewee, but it's says that there are no docs. Also when press '' it should display the completions of the imported modules. The strange thing is when I import os or time, jedi-vim works great :) I've tested it with test2 and test3. I've tried to clone the dev branch of jedi-vim ( git clone --branch dev https://github.com/davidhalter/jedi-vim.git), but I get the following errors: |
Can you tell me what commit of jedi-vim you are using? |
The last commit of the master branch:
The last commit of the dev branch:
|
What's your vim |
I think there is a conflict between 2 versions: Vim is compiled with python 2 and jedi is installed on python 3.4.
If I compile vim with python3 support and I run :python3 print (sys.path) I'm getting: Any suggestions. |
Hmm I'm also a bit afraid that ycm and jedi-vim might conflict. You don't need both. |
Just removed ycm to see if it makes any differences, but no luck :|. A few questions to see if it's not a config problem: |
There's currently a PR davidhalter/jedi#562 about virtualenv that I intend to merge. Since I'm going to release very soon, let's just wait for that to happen. I'm pretty sure you're just messing something up. VIRTUALENV support in VIM is not very good, to be honest it's very bad. emacs-jedi for example built a lot of stuff around Jedi to actually make it work. We have to improve quite a few things, before we can actually make it work well. I guess especially davidhalter/jedi#385 would help. |
Thnx, I'll wait for the next release. Thanks for your time :) |
Hmm I'm not sure if that PR will get into Jedi at the right time and even if I'm not sure if that will improve virtualenv support by a lot. So I'm reopening. |
I've reinstalled all the plugins I'm using to see if it make a difference and now it include the site-packages of a virtualenv lib in the sys path. The only problem is that it include just 2.7 libs and not > 2.7 |
That's intentional. I've talked about this times and times again. As long as there's no mechanism to recover from segfaults (via multiprocessing or something similar), this will not happen. |
Hi everyone,
I've installed virtualenv and vim-jedi and I like to know if it's possible to get auto completion and doc of installed modules in virtualenv.
For example when I install sqlalchemy in an virtualenv I can't get no docs or auto completion of sqlalchemy in vim.
The text was updated successfully, but these errors were encountered: