Closed
Description
Maintainer's note: If you are coming here from Google, go here first: https://github.com/ycm-core/YouCompleteMe/wiki/Troubleshooting-steps-for-ycmd-server-SHUT-DOWN
I just upgraded the plugin and now it stop to work... When I open Vim, I always see the message "The ycmd server SHUT DOWN (restart with :YcmRestartServer)".
When I run that command, the message "Restarting ycmd server..." appears, but in no time "The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):" (no lines are shown).
Activity
Valloric commentedon Mar 29, 2014
Please see CONTRIBUTING.md.
tarciozemel commentedon Mar 29, 2014
I already saw this, but I haven't gvim/macvim. Unfortunately, my YCM is useless now and I'll have to find another plugin which comes close to this quality... I wish luck to those with this same problem.
vheon commentedon Mar 30, 2014
Are you sure you saw CONTRIBUTING.md? Because from the issue it doesn't seem so. And if you are not using vim then what are you using?
tarciozemel commentedon Mar 30, 2014
Terminal Vim...
vheon commentedon Mar 31, 2014
which is vim... but still I don't see any point regarding writing good issue reports in CONTRIBUTING.md
tarciozemel commentedon Mar 31, 2014
"Then start gvim/macvim"...?
vheon commentedon Mar 31, 2014
If you are unable to install them then just put this in your vimrc
then start vim look ycmd server shut down and go look at te logs (I'm not completely sure if
let g:ycm_server_keep_logfiles = 1
is needed but it wouldn't harm). To see where the logs are located run the command:YcmDebugInfo
. Then post the logs and the remaining points of writing good issue reports in CONTRIBUTING.mdtarciozemel commentedon Mar 31, 2014
Oh! Now we're moving on! :-)
I stalled all packages pointed in README (
build-essential
,cmake
andpython-dev
) and update all my Vim plugins few days ago (rerunning./install.sh --clang-completer
in the folder, of course).1. Write a step-by-step procedure that when performed repeatedly reproduces your issue.
I just upgraded the plugin and now it stop to work... When I open Vim, I always see the message "The ycmd server SHUT DOWN (restart with :YcmRestartServer)".
When I run that command, the message "Restarting ycmd server..." appears, but in no time "The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines):" (no lines are shown).
2. ycmd debug output stream in the console
RuntimeError: Error importing ycm_core. Are you sure you have placed a version 3.2+ libclang.[so|dll|dylib] in folder "/home/tarciozemel/.vim/bundle/YouCompleteMe/python"? See the Installation Guide in the docs. Full error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/tarciozemel/.vim/bundle/YouCompleteMe/python/ycm/server/../../libclang.so)
3. Create a test case for your issue
Happening in all files I try to edit.
4. Include your OS and OS version
Linux debian 3.2.0-4-amd64 # 1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
5. Include the output of vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 19 2014 14:02:52)
Correções incluídas: 1-155
Compilado por tarciozemel@debian
Versão enorme com interface GTK2. Recursos incluídos (+) ou não (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
+balloon_eval +float +mouse_urxvt -tag_any_white
+browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra +toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python +viminfo
+cscope +lispindent -python3 +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con_gui -lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
+dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent +xim
+emacs_tags +mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop +xpm
arquivo vimrc de sistema: "$VIM/vimrc"
arquivo vimrc do usuário: "$HOME/.vimrc"
2º arquivo vimrc do usuário: "
/.vim/vimrc"/.vim/gvimrc"arquivo exrc do usuário: "$HOME/.exrc"
arquivo gvimrc de sistema: "$VIM/gvimrc"
arquivo gvimrc do usuário: "$HOME/.gvimrc"
2º arquivo gvimrc do usuário: "
arquivo de menu do sistema: "$VIMRUNTIME/menu.vim"
padrão para $VIM: "/usr/share/vim"
padrão para $VIMRUNTIME: "/usr/share/vim/vim74"
Compilação: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Vinculação: gcc -L. -Wl,-z,relro -rdynamic -Wl,-export-dynamic -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lnsl -lselinux -L/usr/lib/python2.7-config -lpython2.7 -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -L/usr/lib
vheon commentedon Mar 31, 2014
Thats the error, and as suggested you should have seen the docs first
i-get-glibc_2xx-not-found-required-by-libclangso-when-starting-vim
Explain how to get debug output with terminal vim
yelled1 commentedon Nov 8, 2017
I know I'm late to this party, but I had same issue for vim & neovim after update/upgrade.
Just took running ./install.py after
It was extremely frustrating & annoying! BUT it now works!
Still hack of better than using an alternative BIG FAT IDEs.
On Ubuntu 16.04 64bit w/ nyaovim mostly but happened to BOTH.
Hope this helps many!
elStranger commentedon Nov 16, 2017
@yelled1
thanks
shinux commentedon Nov 22, 2017
@yelled1
exactly
7 remaining items
narg95 commentedon Feb 19, 2018
I had the same issue on Mac and the problem was because
cmake
was not installed. I solved it with:brew install cmake
and then what @jedmao mentioned but on macOScd ~/.vim/bundle/youcompleteme
install.py --clang-completer --js-completer
weaming commentedon Feb 21, 2018
Cause I installed anaconda python replacing the system default python, when I run
./install.sh
, it call the script with anaconda python instead of system default python.Then I run
/usr/bin/python ./install.sh
, it's been fixed 😄And, does anyone know what the script does to the python environments?
papiro commentedon Mar 8, 2018
Not sure if this is an issue. The installation instructions in the documentation seem to cover the solutions suggested in this thread.
revsuine commentedon Mar 29, 2018
@yelled1 Thank you! This worked for me, except I needed to go to
as @linlinzhao said, and my issue was that
cmake
was not installed when I tried to do./install.py
so, on Ubuntu 16.04:And perfect! Tried opening Vim, now works like a charm :)
admercs commentedon Apr 4, 2018
I also had problems with this error on MacOS, caused by installing with Anaconda Python 3.6.4. So, I removed the YouCompleteMe folder with
rm -rf ~/.vim/bundle/YouCompleteMe
, installed the latest MacVim binary from here, reinstalled all packages defined in my~/.vimrc
file by runningvim
and using the:PluginInstall
command, installed Homebrew Python 3.6.5 withbrew install python
, and finally installed YouCompleteMe with this command:sudo /usr/local/bin/python3 install.py --clang-completer --go-completer --js-completer
All systems are go.
Request: support for Anaconda Python would be excellent, as it is inefficient to have three separate installations of Python to manage.
terhuhf commentedon Apr 19, 2018
It turns out that this issue happens every time after I update YCM using Vundle.
willunicamp commentedon May 7, 2018
@yelled1 ty
xiaoniaoyou commentedon May 11, 2018
cd ~/.vim/bundle/YouCompleteMe
./install.py
cstich commentedon Jun 13, 2018
I am using Anaconda and had the same issue. What also seems to work is to install the missing library within Anaconda.
did the trick for me.
moadAlami commentedon Jun 15, 2018
@yelled1 You sir, deserve a cookie.
skull-squadron commentedon Aug 19, 2018
(cd ~/.vim/bundle/YouCompleteMe && ./install.py --go-completer --java-completer --rust-completer --clang-completer)
yelled1 commentedon Sep 21, 2018
Another important todo as I am now using pyenv:
export PYTHON_CONFIGURE_OPTS="--enable-shared"
Must be added to your .bash_aliases or somewhere like that to use: pyenv (mo better? than conda version control)
puremourning commentedon Sep 21, 2018
This is in the FAQ isn’t it?
micbou commentedon Sep 21, 2018
Even better, the
install.py
script suggests this. Anyway, I am locking the issue. Most comments are either outdated or irrelevant. Yes, you need to runinstall.py
to install YCM and run it again when a big update happens. It's not likeinstall.py
is mentioned 39 times in the docs.