{"action":"closed","issue":{"url":"https://api.github.com/repos/zchee/deoplete-clang/issues/25","repository_url":"https://api.github.com/repos/zchee/deoplete-clang","labels_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/25/comments","events_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/25/events","html_url":"https://github.com/zchee/deoplete-clang/issues/25","id":150922389,"number":25,"title":"Deoplete-clang cannot find my libclang.so","user":{"login":"natemara","id":6109875,"avatar_url":"https://avatars.githubusercontent.com/u/6109875?v=3","gravatar_id":"","url":"https://api.github.com/users/natemara","html_url":"https://github.com/natemara","followers_url":"https://api.github.com/users/natemara/followers","following_url":"https://api.github.com/users/natemara/following{/other_user}","gists_url":"https://api.github.com/users/natemara/gists{/gist_id}","starred_url":"https://api.github.com/users/natemara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemara/subscriptions","organizations_url":"https://api.github.com/users/natemara/orgs","repos_url":"https://api.github.com/users/natemara/repos","events_url":"https://api.github.com/users/natemara/events{/privacy}","received_events_url":"https://api.github.com/users/natemara/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2016-04-25T16:46:08Z","updated_at":"2016-06-26T01:41:09Z","closed_at":"2016-06-26T01:41:09Z","body":"## Problems summary\r\n\r\nAfter installing deoplete-clang and setting the path to my `libclang.so` file, deoplete-clang complains about not being able to open the libclang file.\r\n\r\n## Expected\r\n\r\nDeoplete-clang uses the libclang shared library folder set in my `init.vim` file, but it does not appear to.\r\n\r\n## Environment Information\r\n\r\n - OS: Xubuntu 15.04\r\n - Neovim version: v0.1.4\r\n\r\n\r\n## Provide a minimal init.vim with less than 50 lines and not plugin manager (Required!)\r\n\r\n```vim\r\nset runtimepath+=~/.config/nvim/plugged/deoplete.nvim/\r\nset runtimepath+=~/.config/nvim/plugged/deoplete-clang/\r\n\r\nlet g:deoplete#enable_at_startup = 1\r\nlet g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-3.6/lib/libclang.so.1'\r\nlet g:deoplete#sources#clang#clang_header = '/usr/include/clang/3.6.0/include/'\r\n```\r\n\r\nor, try use it [tests/deoplete-clang.vim](../tests/deoplete-clang.vim)\r\n\r\n\r\n## The reproduce ways from neovim starting (Required!)\r\n\r\n 1. Use the minimal `init.vim` shown above\r\n 2. Open a c/cpp/obj-c file with neovim\r\n 3. Start typing\r\n 4. Get no predictions and open `:messages`\r\n\r\n\r\n## Traceback shown in `:messages`\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n\r\n    During handling of the above exception, another exception occurred:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        complete_position, candidates = self.gather_candidates(context)\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n        self.load_sources()\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        source = module.Source(self.__vim)\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        self.index = clang.Index.create()\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n        value = self.wrapped(instance)\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n        lib = self.get_cindex_library()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n        raise LibclangError(msg)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n    An error has occurred. Please execute :messages command.\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n\r\n    During handling of the above exception, another exception occurred:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        complete_position, candidates = self.gather_candidates(context)\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n        self.load_sources()\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        source = module.Source(self.__vim)\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        self.index = clang.Index.create()\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n        value = self.wrapped(instance)\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n        lib = self.get_cindex_library()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n        raise LibclangError(msg)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n    An error has occurred. Please execute :messages command.\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n\r\n    During handling of the above exception, another exception occurred:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        complete_position, candidates = self.gather_candidates(context)\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n        self.load_sources()\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        source = module.Source(self.__vim)\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        self.index = clang.Index.create()\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n        value = self.wrapped(instance)\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n        lib = self.get_cindex_library()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n        raise LibclangError(msg)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n    An error has occurred. Please execute :messages command.\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n\r\n    During handling of the above exception, another exception occurred:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        complete_position, candidates = self.gather_candidates(context)\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n    Traceback (most recent call last):\r\n        self.load_sources()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n        source = module.Source(self.__vim)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        return self._dlltype(name)\r\n        self.index = clang.Index.create()\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        self._handle = _dlopen(self._name, mode)\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n\r\n        value = self.wrapped(instance)\r\n    During handling of the above exception, another exception occurred:\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n\r\n        lib = self.get_cindex_library()\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        raise LibclangError(msg)\r\n        complete_position, candidates = self.gather_candidates(context)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n    An error has occurred. Please execute :messages command.\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n        self.load_sources()\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        source = module.Source(self.__vim)\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        self.index = clang.Index.create()\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n        value = self.wrapped(instance)\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n        lib = self.get_cindex_library()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n        raise LibclangError(msg)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n    An error has occurred. Please execute :messages command.\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3765, in get_cindex_library\r\n        library = cdll.LoadLibrary(self.get_filename())\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 429, in LoadLibrary\r\n        return self._dlltype(name)\r\n      File \"/usr/lib/python3.4/ctypes/__init__.py\", line 351, in __init__\r\n        self._handle = _dlopen(self._name, mode)\r\n    OSError: libclang.so: cannot open shared object file: No such file or directory\r\n\r\n    During handling of the above exception, another exception occurred:\r\n\r\n    Traceback (most recent call last):\r\n      File \"/home/nate/.nvim/plugged/deoplete....hon3/deoplete/deoplete.py\", line 47, in completion_begin\r\n        complete_position, candidates = self.gather_candidates(context)\r\n      File \"/home/nate/.nvim/plugged/deoplete....on3/deoplete/deoplete.py\", line 77, in gather_candidates\r\n        self.check_recache()\r\n      File \"/home/nate/.nvim/plugged/deoplete....ython3/deoplete/deoplete.py\", line 341, in check_recache\r\n        self.load_sources()\r\n      File \"/home/nate/.nvim/plugged/deoplete....python3/deoplete/deoplete.py\", line 271, in load_sources\r\n        source = module.Source(self.__vim)\r\n      File \"/home/nate/.config/nvim/plugged/de...eoplete/sources/deoplete_clang.py\", line 64, in __init__\r\n        self.index = clang.Index.create()\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 2357, in create\r\n        return Index(conf.lib.clang_createIndex(excludeDecls, 0))\r\n      File \"/home/nate/.config/nvim/plugged/de...n3/deoplete/clang/clang/cindex.py\", line 141, in __get__\r\n        value = self.wrapped(instance)\r\n      File \"/home/nate/.config/nvim/plugged/de...thon3/deoplete/clang/clang/cindex.py\", line 3732, in lib\r\n        lib = self.get_cindex_library()\r\n      File \"/home/nate/.config/nvim/plugged/de...clang/clang/cindex.py\", line 3770, in get_cindex_library\r\n        raise LibclangError(msg)\r\n    clang.cindex.LibclangError: libclang.so: c... Config.set_library_path() or Config.set_library_file().\r\n    An error has occurred. Please execute :messages command."}}
{"actor":{"display_login":"Shougo"}}