Results 1 to 2 of 2

Thread: Using YouCompleteMe with C semantic support

  1. #1
    Join Date
    2015-Sep
    Posts
    3

    Using YouCompleteMe with C semantic support

    Hello there!
    I am using vim, mostly for programming in c and golang. Now i want to have IntelliSense-like (yes, VS on Win. There was a time I wasn't enlightened ) AutoCompletion.
    I found YouCompleteMe, and really tried several times to copy the full-installation guide. I always become the following error:
    The ycmd server SHUT DOWN (restart with :YcmRestartServer). check console outpu
    t for logs!
    I copy some infos from the github-issue I opened:

    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
    How you can see I am using the Ubuntu-version of llvm/clang. I now think that this is the potential root of the failure I'm experiencing.
    However, now I noticed that there's a vim-autocomplete package in the Kali-Linux repos. But I still dont know how I should use that package (only installing? What's with semantic clang support?)

  2. #2
    Join Date
    2015-Sep
    Posts
    3
    Somebody answered on my git-issue.
    https://github.com/Valloric/YouCompleteMe/issues/1685
    It's working now.

Similar Threads

  1. Ufw support
    By jeffdog in forum Community Feedback
    Replies: 1
    Last Post: 2023-01-28, 19:30
  2. When comes the Support of gr-gsm for gnuradio 3.8?
    By msfu101 in forum General Archive
    Replies: 4
    Last Post: 2019-09-05, 02:02
  3. OTG Support
    By gch230 in forum NetHunter General Questions
    Replies: 6
    Last Post: 2014-10-29, 20:20

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •