New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The ycmd server SHUT DOWN (restart with :YcmRestartServer)" #914

Closed
tarciozemel opened this Issue Mar 29, 2014 · 33 comments

Comments

Projects
None yet
@tarciozemel

tarciozemel commented Mar 29, 2014

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

@Valloric

This comment has been minimized.

Owner

Valloric commented Mar 29, 2014

Please see CONTRIBUTING.md.

@Valloric Valloric closed this Mar 29, 2014

@tarciozemel

This comment has been minimized.

tarciozemel commented 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

This comment has been minimized.

Collaborator

vheon commented Mar 30, 2014

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?

@tarciozemel

This comment has been minimized.

tarciozemel commented Mar 30, 2014

Terminal Vim...

@vheon

This comment has been minimized.

Collaborator

vheon commented Mar 31, 2014

which is vim... but still I don't see any point regarding writing good issue reports in CONTRIBUTING.md

@tarciozemel

This comment has been minimized.

tarciozemel commented Mar 31, 2014

"Then start gvim/macvim"...?

@vheon

This comment has been minimized.

Collaborator

vheon commented Mar 31, 2014

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

@tarciozemel

This comment has been minimized.

tarciozemel commented Mar 31, 2014

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

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

@vheon

This comment has been minimized.

Collaborator

vheon commented Mar 31, 2014

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

willsALMANJ added a commit to willsALMANJ/YouCompleteMe that referenced this issue May 16, 2014

Explain how to get debug output with terminal vim
I found this through Valloric#914, but it should probably be in the docs here.
@yelled1

This comment has been minimized.

yelled1 commented 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

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!

@elStranger

This comment has been minimized.

elStranger commented Nov 16, 2017

@yelled1
thanks

@shinux

This comment has been minimized.

shinux commented Nov 22, 2017

@yelled1
exactly

@puremourning

This comment has been minimized.

Collaborator

puremourning commented Nov 22, 2017

It was extremely frustrating & annoying!

Also, clearly documented int he README.

@yelled1

This comment has been minimized.

yelled1 commented Nov 22, 2017

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.

@Linlinzhao

This comment has been minimized.

Linlinzhao commented Dec 19, 2017

@yelled1 Thanks.

I am using vundle to manage plugins (Ubuntu 16.04, kernel 4.10). So the path is

~/.vim/bundle/Youcompleteme/install.py

@karenachiketc

This comment has been minimized.

karenachiketc commented Jan 5, 2018

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.

@fad0

This comment has been minimized.

fad0 commented Jan 17, 2018

@yelled1
Thank you! :)

@maxprkr

This comment has been minimized.

maxprkr commented Jan 23, 2018

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

@jedmao

This comment has been minimized.

jedmao commented Feb 9, 2018

This worked for me...

cd /usr/local/share/vim/vim80/plugged/YouCompleteMe
sudo python3 install.py --clang-completer --js-completer
@narg95

This comment has been minimized.

narg95 commented 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 macOS
  • cd ~/.vim/bundle/youcompleteme
  • install.py --clang-completer --js-completer
@weaming

This comment has been minimized.

weaming commented 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

This comment has been minimized.

papiro commented 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.

@paradoor

This comment has been minimized.

paradoor commented Mar 29, 2018

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

@adam-erickson

This comment has been minimized.

adam-erickson commented 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 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.

@TerenceFeng

This comment has been minimized.

TerenceFeng commented Apr 19, 2018

It turns out that this issue happens every time after I update YCM using Vundle.

@willunicamp

This comment has been minimized.

willunicamp commented May 7, 2018

@xiaoniaoyou

This comment has been minimized.

xiaoniaoyou commented May 11, 2018

cd ~/.vim/bundle/YouCompleteMe
./install.py

@cstich

This comment has been minimized.

cstich commented 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.

 conda install libgcc

did the trick for me.

@moadAlami

This comment has been minimized.

moadAlami commented Jun 15, 2018

@yelled1 You sir, deserve a cookie.

@steakknife

This comment has been minimized.

steakknife commented Aug 19, 2018

(cd ~/.vim/bundle/YouCompleteMe && ./install.py --go-completer --java-completer --rust-completer --clang-completer)

@yelled1

This comment has been minimized.

yelled1 commented 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

This comment has been minimized.

Collaborator

puremourning commented Sep 21, 2018

This is in the FAQ isn’t it?

@micbou

This comment has been minimized.

Collaborator

micbou commented 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 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.

Repository owner locked and limited conversation to collaborators Sep 21, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.