GithubHelp home page GithubHelp logo

Comments (8)

mphe avatar mphe commented on June 14, 2024 1

Glad I could help 👍
I updated the docs to better explain that setting.

from grayout.vim.

mphe avatar mphe commented on June 14, 2024

Please set let g:grayout_debug_logfile = 1 and attach the grayout.log file.

My guess is that you don't have clang installed.

from grayout.vim.

timsu92 avatar timsu92 commented on June 14, 2024

grayout.log
I guess you are right as line 9 and line 22 both says it can't find libclang.so.
I installed clang through sudo apt install clang

from grayout.vim.

mphe avatar mphe commented on June 14, 2024

Alright, so clang is installed, but it can't be found automatically.
Try to find out where clang was installed and set g:grayout_libclang_path respectively.

from grayout.vim.

timsu92 avatar timsu92 commented on June 14, 2024

After more searching the web, I installed libclang-devand libclang1 using apt, files' names start with libclang.so are:

  • /usr/lib/llvm-10/lib/libclang.so
  • /usr/lib/llvm-10/lib/libclang.so.1
  • ~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clang/lib/libclang.so
  • ~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clang/lib/libclang.so.13
  • ~/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/clang/lib/libclang.so.13.0.0
  • /usr/lib/x86_64-linux-gnu/libclang-10.so

However, none of these work.

from grayout.vim.

mphe avatar mphe commented on June 14, 2024

So you have tried let g:grayout_libclang_path = '/usr/lib/llvm-10/lib/', etc. for all those paths and they all yield the same error?

Note that g:grayout_libclang_path takes the searchpath, not the full path to libclang.so.

from grayout.vim.

timsu92 avatar timsu92 commented on June 14, 2024

Oh! I thought that settings is used to point to the file!
Now it works well!
Thanks!

from grayout.vim.

timsu92 avatar timsu92 commented on June 14, 2024

For people who needs it, here's how I had it done at that time in Ubuntu 20.04:

  1. Install clang
    sudo apt install libclang1
  2. move to the installation folder
    You need to change to a appropriate version of yours. For example:
    cd /usr/lib/llvm-14/lib
  3. Alias the library
    sudo ln -s libclang.so.1 libclang.so

from grayout.vim.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.