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.
Do a fresh install of YCM on my system via Vundle, as per the README. ./install.py completes with no errors. This completed without errors.
But when i start vi. I came out an error.
I expected to see no error messages and be able to get completions.
The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code -11.
I got the error message posted above pretty much immediately after starting vim, with no user interaction required to cause it.
vim --versionVIM - Vi IMproved 8.1 (2018 May 17, compiled Jun 17 2018 23:04:26)
macOS version
Included patches: 1-72
Compiled by [email protected]
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +tag_binary
+arabic +file_in_path +mouse_sgr +tag_old_static
+autocmd +find_in_path -mouse_sysmouse -tag_any_white
-autoservername +float +mouse_urxvt -tcl
+balloon_eval +folding +mouse_xterm +termguicolors
+balloon_eval_term -footer +multi_byte +terminal
+browse +fork() +multi_lang +terminfo
++builtin_terms +fullscreen -mzscheme +termresponse
+byte_offset -gettext +netbeans_intg +textobjects
+channel -hangul_input +num64 +timers
+cindent +iconv +odbeditor +title
+clientserver +insert_expand +packages +toolbar
+clipboard +job +path_extra +transparency
+cmdline_compl +jumplist +perl/dyn +user_commands
+cmdline_hist +keymap +persistent_undo +vertsplit
+cmdline_info +lambda +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent +python3/dyn +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui +lua/dyn +rightleft +windows
+diff +menu +ruby/dyn +writebackup
+digraphs +mksession +scrollbind -X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape +startuptime -xpm
+eval +mouse_dec +statusline -xsmp
+ex_extra -mouse_gpm -sun_workshop -xterm_clipboard
+extra_search -mouse_jsbterm +syntax -xterm_save
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 -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 -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 -lncurses -liconv -framework AppKit -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE
YcmDebugInfoPrinting YouCompleteMe debug information...
-- Client logfile: /var/folders/83/kh4k695n1yq96ksgz44jb7nh0000gn/T/ycm_mZFJNs.log
-- Server errored, no debug info from server
-- Server running at: http://127.0.0.1:56629
-- Server process ID: 2701
-- Server logfiles:
-- /var/folders/83/kh4k695n1yq96ksgz44jb7nh0000gn/T/ycmd_56629_stdout_Qv2xRF.log
-- /var/folders/83/kh4k695n1yq96ksgz44jb7nh0000gn/T/ycmd_56629_stderr_Eurd0Z.log
:YcmToggleLogs
Which logfile do you wish to open (or close if already open)?
1: ycm_kXfjuH.log
2: ycmd_56636_stderr_yhKoel.log
3: ycmd_56636_stdout_6YQQgB.log
Type number and <Enter> or click with mouse (empty cancels):
ycmd_56629_stdout_Qv2xRF.log and ycmd_56629_stderr_Eurd0Z.log are completely empty (size = 0B).
mac OS version 10.13.6
I didn't have any issues with building/installing, so I didn't save the output. But I can rerun ./install.py and post the output if you want
Does :py print('foo') or :py3 print('foo') work?
@bstaletic yeah, it can print foo, my default python environment is python 3.6 with anaconda.
There's an FAQ entry about Anaconda. So just build YCM outside Anaconda environment.
I'm seeing this same error after upgrading YCM but my Python install is in a virtualenv using --system-site-packages. I built YCM outside of the virtualenv as well as inside but the error hasn't gone away. Both of the print commands @bstaletic gave work as well.
Does PYTHON_USED_DURING_BUILDING have an expected value?
It looks like this error was resolved by installing again in the virtualenvs. Another plugin I updated had acted up as well which made it harder for me to debug everything.
Most helpful comment
There's an FAQ entry about Anaconda. So just build YCM outside Anaconda environment.