4

I'm using YouCompleteMe to do omni complete.

Most of these are fine. But when I want to complete Python3, there is something wrong. It only can complete python2.

For example,

import urllib # Python2 & Python3 mod

urllib.

I want to complete to urllib.request.Request, but the completion menu doesn't have it. It is the same as Python2's urlopen. (In Python3, it is urllib.request.urlopen, but now is urllib.urlopen.)

I have installed jedi with both pip and pip3 ( import jedi can be done in Python3 and Python2 )

I also have set let g:ycm_python_binary_path = '/usr/local/bin/python3' in .vimrc.

But it seems to have no effect.

4
  • When did you last update YCM?
    – muru
    Feb 26, 2016 at 13:37
  • @muru Last month
    – Vonfry
    Feb 26, 2016 at 13:40
  • Python3 completion support was also added last month, so perhaps your last update was before that? If it wasn't, please report it as an issue on YCM's Github issue tracker.
    – muru
    Feb 26, 2016 at 13:49
  • @muru Let me update it again. If it has the same problem, I will report it..Thanks
    – Vonfry
    Feb 26, 2016 at 13:51

1 Answer 1

3

I tried to update YCM and recompile it.

Now, it is fine.

Python3 support was added for last month and I just updated YCM last month.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.