Comments (8)
Glad I could help 👍
I updated the docs to better explain that setting.
from grayout.vim.
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.
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.
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.
After more searching the web, I installed libclang-dev
and 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.
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.
Oh! I thought that settings is used to point to the file!
Now it works well!
Thanks!
from grayout.vim.
For people who needs it, here's how I had it done at that time in Ubuntu 20.04:
- Install clang
sudo apt install libclang1
- move to the installation folder
You need to change to a appropriate version of yours. For example:cd /usr/lib/llvm-14/lib
- Alias the library
sudo ln -s libclang.so.1 libclang.so
from grayout.vim.
Related Issues (14)
- ARM Project not seeing #define HOT 7
- Vim with python3 is not supported HOT 2
- errors on non C code HOT 2
- python plugin not detected (neovim) HOT 4
- Additional empty before line number after running GrayoutUpdate HOT 2
- Error parsing translation unit. HOT 5
- AttributeError HOT 5
- Tags are not injected after an "#endif" in multi-line comments HOT 2
- Does grayout.vim support GCC? HOT 12
- grayout.vim create a vertical bar on the left? HOT 7
- Highlighting stops working after enabling and then disabling Goyo HOT 5
- How to make the gray area not beyond a certain column? HOT 1
- Return "Error Parsing translation Unit" when run ":GrayoutUpdate" in *.h headerfile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grayout.vim.