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).
Please see CONTRIBUTING.md.
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.
I already saw this, but I haven't vim/macvim
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?
Terminal Vim...
which is vim... but still I don't see any point regarding writing good issue reports in CONTRIBUTING.md
"Then start gvim/macvim"...?
If you are unable to install them then just put this in your vimrc
let g:ycm_server_keep_logfiles = 1
let g:ycm_server_log_level = 'debug'
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.md
Oh! Now we're moving on! :-)
I stalled all packages pointed in README (build-essential, cmake and python-dev) and update all my Vim plugins few days ago (rerunning ./install.sh --clang-completer in the folder, of course).
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).
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)
Happening in all files I try to edit.
Linux debian 3.2.0-4-amd64 # 1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
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"
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: "~/.vim/gvimrc"
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
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)
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
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
cd ~.vim/plugged/YouCompleteMe (vim)
cd ~/.local/share/nvim/site/plugged/YouCompleteMe (neovim) :)
./install.py
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!
@yelled1
thanks
@yelled1
exactly
It was extremely frustrating & annoying!
Also, clearly documented int he README.
Not using Vundle / using plug. So, took me a bit to try the install.py after multiple rm -rf YCM* PlugInstall, PlugUpdate, etc...
Prb w/ vim or nvim - a long error msgs get truncated & also pushed out by others quickly on a fast computer. So, have to :messages see it all which is a new trick I learned after all these years (Thanks to the person who pointed that out!)
4 thumbs up = at least some finds it helpful (so pls don't discourage info sharing)
We appreciate YCM team, but vim is w/o bloat & not exactly friendly. My init.vim is now 300 lines long & still only do about 80% of what needs to be done.
@yelled1 Thanks.
I am using vundle to manage plugins (Ubuntu 16.04, kernel 4.10). So the path is
~/.vim/bundle/Youcompleteme/install.py
If you are getting this error on Ubuntu 17.10, Please install python-dev package. By default, Python 3.6 is shipped with this version of Ubuntu. Re-run the install.py file from the installed directory.
This fixed my problem.
@yelled1
Thank you! :)
sounds like your autocomplete package is missing the ycmd server that it requires. You need to install the YCM server. Follow the instructions from:
https://github.com/Valloric/YouCompleteMe#ubuntu-linux-x64
This worked for me...
cd /usr/local/share/vim/vim80/plugged/YouCompleteMe
sudo python3 install.py --clang-completer --js-completer
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/youcompletemeinstall.py --clang-completer --js-completerCause 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?
Not sure if this is an issue. The installation instructions in the documentation seem to cover the solutions suggested in this thread.
@yelled1 Thank you! This worked for me, except I needed to go to
cd ~/.vim/bundle/YouCompleteMe
as @Linlinzhao said, and my issue was that cmake was not installed when I tried to do ./install.py so, on Ubuntu 16.04:
sudo apt install cmake
./install.py
And perfect! Tried opening Vim, now works like a charm :)
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 running vim and using the :PluginInstall command, installed Homebrew Python 3.6.5 with brew 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.
It turns out that this issue happens every time after I update YCM using Vundle.
@yelled1 ty
cd ~/.vim/bundle/YouCompleteMe
./install.py
I am using Anaconda and had the same issue. What also seems to work is to install the missing library within Anaconda.
conda install libgcc
did the trick for me.
@yelled1 You sir, deserve a cookie.
(cd ~/.vim/bundle/YouCompleteMe && ./install.py --go-completer --java-completer --rust-completer --clang-completer)
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)
This is in the FAQ isn’t it?
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 run install.py to install YCM and run it again when a big update happens. It's not like install.py is mentioned 39 times in the docs.
Most helpful comment
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!