You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
YouCompleteMe stopped working after update to 8.1.560 #803
After I updated today to the latest version 8.1.560 YouCompleteMe stopped working. I guess it is related to the change in handling of python in macvim.
When I install YouCompleteMe i usually install through python3. However, I think that due to the change in macvim 8.1.560, python2 is taken as default. Therefore, I have an error
YouCompleteMe unavailable: dlopen(/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Pytho
n.framework/Versions/2.7/lib/python2.7/lib-dynload/_io.so, 2): Symbol not found: __PyC
odecInfo_GetIncrementalDecoder
Referenced from: /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Ver
sions/2.7/lib/python2.7/lib-dynload/_io.so
Expected in: flat namespace
in /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/p
ython2.7/lib-dynload/_io.so
Usually I install YouCompleteMe as
python3 install.py --clang-completer
Before the latest update everything was working fine.
Also everything is working fine with homebrew vim.
MacOS 10.13.6
P.S. I think it is related to lines 32-33 of this file #739, here
Thanks.
Reacted by schmee, 颜志鹏, Johannes Bittner and Ricardo Matsui
YouCompleteMe maintainer here. The error you see isn't YCM specific. Your vim can't do :py import _io, even though _io is part of the Python's standard library.
I cannot give too much insight into YCM since I don't use the plugin. Do you know how YCM selects python2 versus python3 in Vim? Is it by magic or manual configuration? That may shed some insight why it switched from Python3 in previous MacVim version to Python2.
Does Python3 still work for you in MacVim in general? You can type :python3 print('testing') to see if it does. It could be that it's now linking to a different version from what your machine has installed. Either way can you paste what you see when you do :set pythondll? and set pythonthreedll?
Activity
LukeOrgana commentedon Dec 7, 2018
I am also having problems with YouCompleteMe using MacVim 8.1.560.
zhipengyan commentedon Dec 9, 2018
Me too
rseddon commentedon Dec 9, 2018
I downgraded to the previous version, and youcompleteme works again. So this does seem to be a regression.
bstaletic commentedon Dec 10, 2018
YouCompleteMe maintainer here. The error you see isn't YCM specific. Your vim can't do
:py import _io, even though_iois part of the Python's standard library.ychin commentedon Dec 10, 2018
I cannot give too much insight into YCM since I don't use the plugin. Do you know how YCM selects python2 versus python3 in Vim? Is it by magic or manual configuration? That may shed some insight why it switched from Python3 in previous MacVim version to Python2.
Does Python3 still work for you in MacVim in general? You can type
:python3 print('testing')to see if it does. It could be that it's now linking to a different version from what your machine has installed. Either way can you paste what you see when you do:set pythondll?andset pythonthreedll?tupos commentedon Dec 10, 2018
I think that the problem is there
There is a typo. insted
set pythondllit is writtenset pythonthreedllin the section about python2.Can you check this?
ychin commentedon Dec 10, 2018
Yes I just saw that line after posting. I will fix that. Thanks.
Fix misconfigured Homebrew Python 2.7 path in default vimrc
Fix misconfigured Python paths in default vimrc
tupos commentedon Dec 10, 2018
I just looked at you commit e92be4c. But the lines 32 and 33 are still the same and it appears that
pythonthreedllis set to python2.Am I missing something?
tupos commentedon Dec 10, 2018
Ahh sorry. Did not see your further commit.
ychin commentedon Dec 10, 2018
There are two bugs in that original PR. I had to fix both :)