Skip to content
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

Bug(?): YcmRestartServer constantly shutting down #1685

Closed
Feve2 opened this issue Sep 14, 2015 · 2 comments
Closed

Bug(?): YcmRestartServer constantly shutting down #1685

Feve2 opened this issue Sep 14, 2015 · 2 comments

Comments

@Feve2
Copy link

Feve2 commented Sep 14, 2015

Hello there,
I know that there is already an issue regarding this. I tried to post on that issue, but however I cant post it there. I want to use YCM mostly for C and golang-dev .Here are are some information:
OS: Linux kali 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux
Vim-Version: 2:7.4.488-7
Python-Version: 2.7.9-1

I always get the message:

The ycmd server SHUT DOWN (restart with :YcmRestartServer). Stderr (last 30 lines)

Equally, if I change the ycm_python_path in the .vimrc (which python-version should I reference there? I have 2.7.x, python, and python 3.x)?

Steps to reproduce

  1. Edit your .vimrc, add the line Plugin 'Valloric/YouCompleteMe and save it.
  2. Go again into vim, type :PluginInstall.
  3. Wait until Vundle says it's done / You get the message that you should compile it.
  4. Download Clang for x86_64 Ubuntu 14.04
  5. Extract the content (the folders) into ~/ycm_temp/llvm_root_dir/
  6. cd to ~/ycm_build.
  7. Execute cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp.
    The output I got said that all went successful:

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Your C++ compiler supports C++11, compiling in that mode.
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.9", minimum required is "2.6")
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.9", minimum required is "2.6")
Using libclang to provide semantic completion for C/C++/ObjC
Using external libclang: /home/patrick/ycm_temp/llvm_root_dir/lib/libclang.so
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.9")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/patrick/ycm_build

(8). Execute make ycm_support_libs.
The output I got is basically:

Scanning dependencies of target BoostParts
[...]
Linking CXX static library libBoostParts.a
[ 75%] Built target BoostParts
Scanning dependencies of target ycm_client_support
Linking CXX shared library /home/patrick/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so
[100%] Built target ycm_core
Scanning dependencies of target ycm_support_libs
[100%] Built target ycm_support_libs

(9). Open a .c file. You should see the message *The ycmd server SHUT DOWN[...]

Debug-Log:

-- Server crashed, no debug info from server
-- Server running at: http://127.0.0.1:59344
-- Server process ID: 4787

@Feve2 Feve2 changed the title YcmRestartServer constantly shutting down Bug(?): YcmRestartServer constantly shutting down Sep 14, 2015
@micbou
Copy link
Collaborator

micbou commented Sep 15, 2015

I think this is related to #1686. Could you copy the library file libclang.so.3.7 from ~/ycm_temp/llvm_root_dir/lib to the ycmd root folder ~/.vim/bundle/YouCompleteMe/third_party/ycmd and try again?

@Feve2
Copy link
Author

Feve2 commented Sep 15, 2015

A 1000 thanks. Now its working!

@Feve2 Feve2 closed this as completed Sep 15, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants