deoplete-plugins / deoplete-clang

deoplete.nvim source for C/C++/Obj-C/Obj-C++ with clang-python3
MIT License
189 stars 73 forks source link

dylib missing on startup #20

Closed alok closed 8 years ago

alok commented 8 years ago

I'm running the latest of deoplete, neovim, OSX, and deoplete-clang.

I get this error when starting neovim:

deoplete]   File "/Users/alokbeniwal/.config/nvim/bundle/deoplete-clang/rplugin/python3/deoplete/clang/clang/cindex.py", line 3765, in
get_cindex_library
[deoplete]   File "/Users/alokbeniwal/.config/nvim/bundle/deoplete-clang/rplugin/python3/deoplete/clang/clang/cindex.py", line 3765, in
get_cindex_library
[deoplete]     library = cdll.LoadLibrary(self.get_filename())
[deoplete]     library = cdll.LoadLibrary(self.get_filename())
[deoplete]   File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ctypes/__init__.py", line 425,
 in LoadLibrary
[deoplete]   File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ctypes/__init__.py", line 425,
 in LoadLibrary
[deoplete]     return self._dlltype(name)
[deoplete]     return self._dlltype(name)
[deoplete]   File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ctypes/__init__.py", line 347,
 in __init__
[deoplete]   File "/usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ctypes/__init__.py", line 347,
 in __init__
[deoplete]     self._handle = _dlopen(self._name, mode)
[deoplete]     self._handle = _dlopen(self._name, mode)
[deoplete] OSError: dlopen(libclang.dylib, 6): image not found
zchee commented 8 years ago

@Alok Thanks.

What are you set g:deoplete#sources#clang#libclang_path and g:deoplete#sources#clang#clang_header?

zchee commented 8 years ago

@Alok Maybe, you have not libclang.dylib. Required install llvm --with-clang use Homebrew, or self building llvm. If you have a dylib, please set g:deoplete#sources#clang#libclang_path

alok commented 8 years ago

Setting g:deoplete#sources#clang#libclang_path to my installation of llvm (/usr/local/Cellar/llvm/HEAD/lib/libclang.dylib) fixed it.