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 (or cmake/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.
Provide a clear description of the problem, including the following key
questions: After ycm loaded, vim will crash.
What did you do?
Upgrade macos to 10.15
Upgrade vim to VIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 30 2019 02:59:45)
And I found ycm will causing vim crash after it load(i can not open vim if ycm loaded)
So I remove the ycm plugin folder, and re-pull and reinstall it again(install.py was tried on python2 and python3)
But the situation did not change
What actually happened?
After ycm loaded, vim will crash.
vim --versionVIM - Vi IMproved 8.1 (2018 May 18, compiled Sep 30 2019 02:59:45)
macOS version
Included patches: 1-2100
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl -farsi -mouse_sysmouse -tag_any_white
+arabic +file_in_path +mouse_urxvt -tcl
+autocmd +find_in_path +mouse_xterm +termguicolors
+autochdir +float +multi_byte +terminal
-autoservername +folding +multi_lang +terminfo
-balloon_eval -footer -mzscheme +termresponse
+balloon_eval_term +fork() +netbeans_intg +textobjects
-browse +gettext +num64 +textprop
++builtin_terms -hangul_input +packages +timers
+byte_offset +iconv +path_extra +title
+channel +insert_expand +perl -toolbar
+cindent +job +persistent_undo +user_commands
-clientserver +jumplist +postscript +vartabs
+clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +virtualedit
+cmdline_hist +langmap -python +visual
+cmdline_info +libcall +python3 +visualextra
+comments +linebreak +quickfix +viminfo
+conceal +lispindent +reltime +vreplace
+cryptv +listcmds +rightleft +wildignore
+cscope +localmap +ruby +wildmenu
+cursorbind +lua +scrollbind +windows
+cursorshape +menu +signs +writebackup
+dialog_con +mksession +smartindent -X11
+diff +modify_fname -sound -xfontset
+digraphs +mouse +spell -xim
-dnd -mouseshape +startuptime -xpm
-ebcdic +mouse_dec +statusline -xsmp
+emacs_tags -mouse_gpm -sun_workshop -xterm_clipboard
+eval -mouse_jsbterm +syntax -xterm_save
+ex_extra +mouse_netterm +tag_binary
+extra_search +mouse_sgr -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -o vim -lncurses -liconv -lintl -framework AppKit -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.14 -fstack-protector-strong -L/usr/local/lib -L/usr/local/Cellar/perl/5.30.0/lib/perl5/5.30.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation -lruby.2.6
YcmDebugInfoI can not get this, vim crash immediately after ycm loaded.
Vim: Caught deadly signal ABRT
Error detected while processing function <SNR>82_OnVimLeave:Vim: Finished.
line 6:
Traceback (most recent call last):
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 193, in Session
return cls.session
AttributeError: type object 'BaseRequest' has no attribute 'session'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 193, in Session
return cls.session
AttributeError: type object 'BaseRequest' has no attribute 'session'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/youcompleteme.py", line 498, in OnVimLeave
self._ShutdownServer()
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/youcompleteme.py", line 283, in _ShutdownServer
SendShutdownRequest()
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/shutdown_request.py", line 45, in SendShutdownRequest
request.Start()
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/shutdown_request.py", line 39, in Start
display_message = False )
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 127, in PostDataToHandler
BaseRequest.PostDataToHandlerAsync( data, handler, timeout ),
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 137, in PostDataToHandlerAsync
return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 152, in _TalkToHandlerAsync
return BaseRequest.Session().post(
File "/Users/joshua/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 196, in Session
from requests_futures.sessions import FuturesSession
ImportError: cannot import name 'FuturesSession' from 'requests_futures.sessions' (/Users/joshua/.vim/bundle/YouCompleteMe/third_party/requests-futures/requests_futures/sessions.py)
[1] 86684 abort vim
macos 10.15
run by python3
$python3 install.py
Searching Python 3.7 libraries...
Found Python library: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin/libpython3.7.dylib
Found Python headers folder: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin/libpython3.7.dylib (found suitable version "3.7.4", minimum required is "3.5")
-- NOT using libclang, no semantic completion for C/C++/ObjC will be available
-- NOT using clang-tidy for static analysis.
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/j7/q1wbf4190bd9zhyz1xswqb840000gn/T/ycm_build_7e9ort2c
Scanning dependencies of target BoostParts
[ 2%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/codecvt_error_category.cpp.o
[ 4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/operations.cpp.o
[ 7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path.cpp.o
[ 9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path_traits.cpp.o
[ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/portability.cpp.o
[ 14%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/unique_path.cpp.o
[ 16%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o
[ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/windows_file_codecvt.cpp.o
[ 21%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/c_regex_traits.cpp.o
[ 23%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cpp_regex_traits.cpp.o
[ 26%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cregex.cpp.o
[ 28%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/fileiter.cpp.o
[ 30%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/icu.cpp.o
[ 33%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/instances.cpp.o
[ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/posix_api.cpp.o
[ 38%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex.cpp.o
[ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_debug.cpp.o
[ 42%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_raw_buffer.cpp.o
[ 45%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_traits_defaults.cpp.o
[ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/static_mutex.cpp.o
[ 50%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/usinstances.cpp.o
[ 52%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/w32_regex_traits.cpp.o
[ 54%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wc_regex_traits.cpp.o
[ 57%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wide_posix_api.cpp.o
[ 59%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/winstances.cpp.o
[ 61%] Linking CXX static library libBoostParts.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(windows_file_codecvt.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(icu.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(instances.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(regex_debug.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(usinstances.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(w32_regex_traits.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(winstances.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(windows_file_codecvt.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(icu.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(instances.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(regex_debug.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(usinstances.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(w32_regex_traits.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libBoostParts.a(winstances.cpp.o) has no symbols
[ 61%] Built target BoostParts
Scanning dependencies of target ycm_core
[ 64%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o
[ 69%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CharacterRepository.cpp.o
[ 71%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Character.cpp.o
[ 71%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CandidateRepository.cpp.o
[ 73%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePoint.cpp.o
[ 76%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CodePointRepository.cpp.o
[ 78%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o
[ 80%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o
[ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o
[ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o
[ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o
[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o
[ 92%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Word.cpp.o
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o
[ 97%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o
[100%] Linking CXX shared library /Users/joshua/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
[100%] Built target ycm_core
-- The C compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonLibs: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin/libpython3.7.dylib (found version "3.7.4")
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/j7/q1wbf4190bd9zhyz1xswqb840000gn/T/regex_build_t9bmxo5u
Scanning dependencies of target _regex
[ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex_unicode.c.o
[ 66%] Building C object CMakeFiles/_regex.dir/regex_3/_regex.c.o
[100%] Linking C shared library /Users/joshua/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/cregex/regex_3/_regex.so
[100%] Built target _regex
how did you install vim ? brew install vim ?
Could you try and start vim without ycm enabled and do :py3 import sys; print(sys.path)
:py3 import sys; print(sys.path)
Yes, I installed vim by brew.
And the output inside vim was:
['/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python37.zip', '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/li
b/python3.7', '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload', '/usr/local/opt/python/Frameworks/Python.fra
mework/Versions/3.7/lib/python3.7/site-packages', '_vim_path_']
that's strange; do you have some time to head to Gitter and chat ? It might be quicker to resolve that way , then report back here. i'm sure this can be easily fixed, but the problem isn't obvious right now; will need to do some poking. it's not unusual for things to randomly break with new major macOS releases, particularly when it comes to Python.
For example, i know that mccvim is broken on Catalina unless you install with brew install --HEAD macvim
So I remove the ycm plugin folder, and re-pull and
just to be sure, could you confirm what commands you ran to re-pull ycm?
So I remove the ycm plugin folder, and re-pull and
just to be sure, could you confirm what commands you ran to re-pull ycm?
I have free time now, but I don't know how to use gitter. I mean I deleted ~/.vim/bundle/YouCompleteMe, after that I pull ycm inside ~/.vim/bundle/.
I had macvim(Custom Version 8.1.950 (155)), ycm seems fine in this version.
YcmDebugInfooutput
Printing YouCompleteMe debug information...
-- Client logfile: /var/folders/j7/q1wbf4190bd9zhyz1xswqb840000gn/T/ycm_rg6zj5gx.log
-- Server Python interpreter: /usr/local/opt/python/bin/python3.7
-- Server Python version: 3.7.4
-- Server has Clang support compiled in: False
-- Clang version: None
-- No extra configuration file found
-- Server running at: http://127.0.0.1:49736
-- Server process ID: 13236
-- Server logfiles:
-- /var/folders/j7/q1wbf4190bd9zhyz1xswqb840000gn/T/ycmd_49736_stdout_z2k72xvx.log
-- /var/folders/j7/q1wbf4190bd9zhyz1xswqb840000gn/T/ycmd_49736_stderr_0uvp50zz.log
:version in macvim output
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 18 2019 23:51:40)
macOS version
Included patches: 1-950
Compiled by [email protected]
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +cmdline_hist +ex_extra +jumplist +mouse_dec +path_extra +startuptime +title -X11
+arabic +cmdline_info +extra_search +keymap -mouse_gpm +perl/dyn +statusline +toolbar -xfontset
+autocmd +comments -farsi +lambda -mouse_jsbterm +persistent_undo -sun_workshop +transparency +xim
+autochdir +conceal +file_in_path +langmap +mouse_netterm +postscript +syntax +user_commands -xpm
-autoservername +cryptv +find_in_path +libcall +mouse_sgr +printer +tag_binary +vartabs -xsmp
+balloon_eval +cscope +float +linebreak -mouse_sysmouse +profile +tag_old_static +vertsplit -xterm_clipboard
+balloon_eval_term +cursorbind +folding +lispindent +mouse_urxvt +python/dyn -tag_any_white +virtualedit -xterm_save
+browse +cursorshape -footer +listcmds +mouse_xterm +python3/dyn -tcl +visual
++builtin_terms +dialog_con_gui +fork() +localmap +multi_byte +quickfix +termguicolors +visualextra
+byte_offset +diff +fullscreen +lua/dyn +multi_lang +reltime +terminal +viminfo
+channel +digraphs -gettext +menu -mzscheme +rightleft +terminfo +vreplace
+cindent +dnd -hangul_input +mksession +netbeans_intg +ruby/dyn +termresponse +wildignore
+clientserver -ebcdic +iconv +modify_fname +num64 +scrollbind +textobjects +wildmenu
+clipboard +emacs_tags +insert_expand +mouse +odbeditor +signs +textprop +windows
+cmdline_compl +eval +job +mouseshape +packages +smartindent +timers +writebackup
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X -DMACOS_X_DARWIN -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L. -fstack-protector-strong -L
/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurse
s -liconv -framework AppKit -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE
https://gitter.im/Valloric/YouCompleteMe
You're not being clear enough to help debug this via GitHub comments. The solution is probably to brew reinstall vim, but i'm not 100% sure why.
for the record, i have the exact same vim installed on catalina (from brew install vim) and it works fine, so this is likely something unique to your python environment that's tricky to track down.
I had the same problem yesterday, after installing OS X Catalina from scratch. The issue is caused by MacVim. As @puremourning suggested, installing vim from brew solves the issue, just make sure that you brew link vim after the installation.
Catalina uses the /usr/local/share/man directory to store files with root ownership, so probably brew link failed, unless you have previously changed the ownership of the directory(ies).
This should solve the issue.
I had the same problem yesterday, after installing OS X Catalina from scratch. The issue is caused by
MacVim. As @puremourning suggested, installing vim from brew solves the issue, just make sure that youbrew link vimafter the installation.Catalina uses the
/usr/local/share/mandirectory to store files with root ownership, so probablybrew linkfailed, unless you have previously changed the ownership of the directory(ies).This should solve the issue.
I checked, /usr/local/share/man was own by me username:admin, also I ran sudo chown -R $(whoami) $(brew --prefix)/*, after that I brew reinstall vim,and that I unlink & relink vim manually, but this still can not solve the issue.
My issue was about vim from brew, not macvim, macvim in my system was fine.
I installed the HEAD version macvim. same crash
โ client git:(master) โ Vim: Caught deadly signal ABRT
Error detected while processing function <SNR>144_OnVimLeave:Vim: Finished.
line 6:
Traceback (most recent call last):
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 193, in Session
return cls.session
AttributeError: type object 'BaseRequest' has no attribute 'session'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 193, in Session
return cls.session
AttributeError: type object 'BaseRequest' has no attribute 'session'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/youcompleteme.py", line 498, in OnVimLeave
self._ShutdownServer()
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/youcompleteme.py", line 283, in _ShutdownServer
SendShutdownRequest()
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/shutdown_request.py", line 45, in SendShutdownRequest
request.Start()
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/shutdown_request.py", line 39, in Start
display_message = False )
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 127, in PostDataToHandler
BaseRequest.PostDataToHandlerAsync( data, handler, timeout ),
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 137, in PostDataToHandlerAsync
return BaseRequest._TalkToHandlerAsync( data, handler, 'POST', timeout )
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 152, in _TalkToHandlerAsync
return BaseRequest.Session().post(
File "/Users/mutsu/.vim/bundle/YouCompleteMe/python/ycm/client/base_request.py", line 196, in Session
from requests_futures.sessions import FuturesSession
ImportError: cannot import name 'FuturesSession' from 'requests_futures.sessions' (/Users/mutsu/.vim/bundle/YouCompleteMe/third_party/requests-futures/requests_futures/sessions.py)
Can you do :py from requests_futures.sessions import FuturesSession or :py3 from requests_futures.sessions import FuturesSession from inside vim?
What about going into third_party/requirests-futures/ and executing python -c 'from requests_futures.sessions import FuturesSession'?
python -c 'from requests_futures.sessions import FuturesSession'
Vim will crash after executing py3 from requests_futures.sessions import FuturesSession with output:

And the follow is the output of executing python -c 'from requests_futures.sessions import FuturesSession'
โ requests_futures git:(ef7d9e2) pwd
/Users/mutsu/.vim/bundle/YouCompleteMe/third_party/requests-futures/requests_futures
โ requests_futures git:(ef7d9e2) python3 -c 'from requests_futures.sessions import FuturesSession'
โ requests_futures git:(ef7d9e2)
โ requests_futures git:(ef7d9e2) python2 -c 'from requests_futures.sessions import FuturesSession'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named requests_futures.sessions
It's seems like the python environment problem.
Vim will crash after executing py3 from requests_futures.sessions import FuturesSession with output:
That's what I expected. Now to reproduce it outside of vim, perhaps.
And the follow is the output of executing python -c 'from requests_futures.sessions import FuturesSession'
Sounds like you didn't go to the right directory beforehand. Go into YouCompleteMe/third_party/requests-futures and try again.
Vim will crash after executing py3 from requests_futures.sessions import FuturesSession with output:
That's what I expected. Now to reproduce it outside of vim, perhaps.
And the follow is the output of executing python -c 'from requests_futures.sessions import FuturesSession'
Sounds like you didn't go to the right directory beforehand. Go into
YouCompleteMe/third_party/requests-futuresand try again.
โ requests-futures git:(ef7d9e2) pwd
/Users/mutsu/.vim/bundle/YouCompleteMe/third_party/requests-futures
โ requests-futures git:(ef7d9e2) python -c 'from requests_futures.sessions import FuturesSession'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "requests_futures/sessions.py", line 22, in <module>
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor
ImportError: No module named concurrent.futures
โ requests-futures git:(ef7d9e2)
โ requests-futures git:(ef7d9e2) python3 -c 'from requests_futures.sessions import FuturesSession'
[1] 79349 abort python3 -c 'from requests_futures.sessions import FuturesSession'
โ requests-futures git:(ef7d9e2)
After executing python3 -c 'from requests_futures.sessions import FuturesSession', Python crashed.

So something is wrong with your python3. Either fix your python or install YCM with python2.
Try removing the site packages you have in your homebrew python.
Closing as not YCM issue.
Try removing the site packages you have in your homebrew python.
Closing as not YCM issue.
Thanks, it helps.
Thanks, it helps. After I remove all site packages, crash stoped.
@chinanoahli
when running brew uninstall python3 and brew install python3, homebrew will/can not remove the folder /usr/local/lib/python3.7, so next time when you install python3 with brew install python3, folder /usr/local/lib/python3.7 will remain the same.
so the old /usr/local/lib/python3.x/site-package is possible to have conflicts with the new installed python3, which finally cause a crach.
@chinanoahli
when running
brew uninstall python3andbrew install python3, homebrew will/can not remove the folder/usr/local/lib/python3.7, so next time when you install python3 withbrew install python3, folder/usr/local/lib/python3.7will remain the same.so the old
/usr/local/lib/python3.x/site-packageis possible to have conflicts with the new installedpython3, which finally cause a crach.
I am using virtualenv for my project now, in system wide pip I just get pip wheel setuptools virtualenv installed. I think it will prevent this issue from now on.
That's a good solution.
I used these steps, which works well for me:
brew uninstall python3 -- remove python3sudo rm -rf /usr/local/lib/python3.7 -- remove old site-packages, which should been removed by homebrew, but not actually.brew install python3 -- install new python3, this will also generate new /usr/local/lib/python3.7/site-packagesSimilar symptom on archlinux: AttributeError: type object 'BaseRequest' has no attribute 'session'
The root cause seems to be related to leftover requests .pyc files at /usr/share/vim/vimfiles/third_party.
I guess old .pyc files take precedence over newly installed .py files.
Clearing all related .pyc files first may solve similar problems.
Most helpful comment
Try removing the site packages you have in your homebrew python.
Closing as not YCM issue.