Youcompleteme: The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). Unexpected exit code -11.

Created on 29 Jul 2018  路  7Comments  路  Source: ycm-core/YouCompleteMe

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) _before_ filing your issue:

  • [x] I have read and understood YCM's [CONTRIBUTING][cont] document.
  • [x] I have read and understood YCM's [CODE_OF_CONDUCT][code] document.
  • [x] I have read and understood YCM's [README][readme], especially the
    [Frequently Asked Questions][faq] section.
  • [x] I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. ([Example Google
    search.][search])
  • [x] If filing a bug report, I have included the output of vim --version.
  • [x] If filing a bug report, I have included the output of :YcmDebugInfo.
  • [x] If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • [x] If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • [x] If filing a bug report, I have included a minimal test case that reproduces
    my issue, including what I expected to happen and what actually happened.
  • [x] If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • [x] I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt _gift_ of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • [x] I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank 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

  • What did you do?

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.

  • What did you expect to happen?

I expected to see no error messages and be able to get completions.

  • What actually happened?

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.

Diagnostic data

Output of vim --version

VIM - 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

Output of YcmDebugInfo

Printing 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

Contents of YCM, ycmd and completion engine logfiles

: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).

OS version, distribution, etc.

mac OS version 10.13.6

Output of build/install commands

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

Most helpful comment

There's an FAQ entry about Anaconda. So just build YCM outside Anaconda environment.

All 7 comments

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.

Was this page helpful?
0 / 5 - 0 ratings