Closed mklassen closed 6 years ago
Python 3 support on the latest version of MacVim (8.0-146) is broken. I can reproduce the crash with the command:
mvim -u NONE -c "py3 pass"
which results in
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fffa4432380 (most recent call first):
Vim: Caught deadly signal ABRT
Vim: Finished.
The solution is to specify the right Python home with the pythonthreehome
option in vimrc:
set pythonthreehome=/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6
this helps, thanks a lot. how grateful I am.
Issue Prelude
Please complete these steps and check these boxes (by putting an
x
inside the brackets) before filing your issue:vim --version
.:YcmDebugInfo
.:YcmToggleLogs
command.install.py
(orcmake
/make
/ninja
) including its invocationThank you for adhering to this process! It ensures your issue is resolved quickly and that neither your nor our time is needlessly wasted.
Issue Details
vim crashes on startup when including YCM plugin
Upgraded Homebrew packages, Xcode and macOS to latest versions.
Crashes were isolated to YCM, by using a minimal
~/.vimrc
No crash.
Diagnostic data
Output of
vim --version
Output of
YcmDebugInfo
Unable to get output as vim will not start with YCM enabled
Contents of YCM, ycmd and completion engine logfiles
Unable to get output as vim will not start with YCM enabled
OS version, distribution, etc.
macOS 10.13.4
Output of build/install commands
https://gist.github.com/mklassen/896f16f54e508862c8e51d56b61f733e