-
-
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
PyQt5 with pyton3.3 in virtualenv #265
Comments
Please update Jedi to the latest dev branch and check again. I don't think you need the changes of #31, because they are already present in Jedi. |
One of the problems may also be that VIM wasn't built with Python 3.3 support, but Python 3.2 support. We're discussing possible solutions in davidhalter/jedi#385. |
I updated to master (as of today newer than dev), but same problem. So I should move to PyQt4 with python 2.7 (or very old PyQt4 version which still supports 3.2) in the meantime... Thought its nice to jump into python 3.3 when starting a new project. I will keep my self updated in the jedi forums. |
I'm talking about Jedi, not jedi-vim! (The master is definitely not newer!) |
ok, created fresh virtualenv and installed jedi dev branch using
And I have the same behavior as in my original post. No improvement.
With pyton3 active I get:
If I try to use d on, lets say jedi_vim.goto, it works with pyton2 and python3. |
I don't think this will ever work, because it's basically a problem of the running Python instance (which VIM defines). We should be switching to a server client architecture as in davidhalter/jedi#385, which resolves these kind of problems. |
Thank you for your patient replies. Based on what you write I will switch my current project to PyQT4/python2.7. |
I wouldn't switch back to Python2 just because my autocompletion doesn't work with Python 3. I think it's wise of you to choose Python 3. Things you could try to get it working: Do a |
Ok, further debug: After activating my virtualenv (jeditest) in cmd:
then starting vim with "gvim", and inside vim
Hmm.. we might be up to something. Does not switch interpreter. Note: I get the same result when starting "vim" (not "gvim") in cmd. |
It does. You need to do |
Ok, when running Even if I deactivate the virtualenv. I might have found the problem. Running
So how to get the extra python33 stuff out or move to after my virtualenv? |
That's interesting. I don't know. |
Further to my answer ~20 minutes ago:
This is not the same that vim's :python3 shows. I'm using here jeditest33 virtualenv, but I get the same result for jeditest. |
Sorry for dumping very noisy messages. I now tried again the whole thing without virtualenv.
and in gvim:
Now in gvim, with Edit: Yes, only |
Don't excuse for all the copy pasting, it's what we need to debug this.
Yeah, I should still improve that message. The big question is basically how why gvim and vim are different? did you install two different versions of VIM? I don't really know any windows related VIM things anyway. |
I don't see any difference between vim and gvim. Maybe that was not clear from my comments. Where I do see a difference is between About docstring in pyqt (Leader-d). Seems the source itself is not python. So I guess I have to stick to the reference guide on the internet. |
Is there still an issue? I really lost the context here :-) |
There is still an issue, but to my understanding not with jedi or jedi-vim. Jedi-vim did not behave as expected when using a virtualenv, because the path is set wrong (vim problem?). Since the reason I started using virtualenv in the first place was because I worried that jed-vim gets confused with python2/3, but actually g:jedi#force_py_version works as expected, there is no more problem with jedi-vim. (^^) I stop using virtualenv and everything is fine. |
Haha :-) I'm closing this one. True virtualenv support might come with davidhalter/jedi#385. |
Before starting: thank you for writing jedi-vim!
I have a bit trouble with completion of PyQt5.
I am running vim 7.4 on Windows 7. I use dev branch of jedi-vim and I have the python code from #31 in my .vimrc to honor the virtualenv.
In the virtualenv I have jedi and PyQt5 installed.
Now my problem:
When g:jedi#force_py_version is 2, I get completion for
but if I place a period, I get "Pattern not found".
When I set g:jedi#force_py_version = 3 it does not even come up with PyQt5. As if it wasn't there.
Could this be related to #202 ?
The text was updated successfully, but these errors were encountered: