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

which version for python and clang #586

Open
lougxing opened this issue Sep 15, 2021 · 3 comments
Open

which version for python and clang #586

lougxing opened this issue Sep 15, 2021 · 3 comments

Comments

@lougxing
Copy link

MY system is centos6.2
My vim version is 8.2(+python3/dyn +python/dyn)
libclang.so is 3.4
python is 2.6.6
python3 is 3.4.5

bash-4.1$ cat .vimrc
let g:clang_library_path='/usr/lib64/llvm/libclang.so'
let g:clang_complete_copen=1
let g:clang_periodic_quickfix=1
let g:clang_snippets=1
let g:clang_close_preview=1
bash-4.1$ ll /usr/lib64/llvm/libclang.so
-rwxr-xr-x 1 root root 14477112 Jan 3 2015 /usr/lib64/llvm/libclang.so

The error message "Option completefunc is not set"

@xaizek
Copy link
Collaborator

xaizek commented Sep 15, 2021

Try with

let g:clang_library_path='/usr/lib64/llvm/'

This option specifies directory.

@lougxing
Copy link
Author

lougxing commented Sep 15, 2021

It still didn't work.

bash-4.1$ cat .vimrc
let g:clang_library_path='/usr/lib64/llvm/'
let g:clang_complete_copen=1
let g:clang_periodic_quickfix=1
let g:clang_snippets=1
let g:clang_close_preview=1

bash-4.1$ rpm -qf /usr/lib64/llvm/libclang.so
clang-3.4.2-4.el6.x86_64

bash-4.1$ cat .clang_complete
-I/usr/include/c++/4.4.4/

bash-4.1$ cat a.cc
#include
#include

int main() {
std::vector mm;

}

bash-4.1$ ll /usr/include/c++/4.4.4/vector
-rw-r--r-- 1 root root 2698 Jun 19 2018 /usr/include/c++/4.4.4/vector

@xaizek
Copy link
Collaborator

xaizek commented Sep 15, 2021

Right, looks like clang_library_path can point to a directory as well. I forgot about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants