{"action":"created","issue":{"url":"https://api.github.com/repos/zchee/deoplete-clang/issues/34","repository_url":"https://api.github.com/repos/zchee/deoplete-clang","labels_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/34/comments","events_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/34/events","html_url":"https://github.com/zchee/deoplete-clang/issues/34","id":161432034,"number":34,"title":"How to enable completion for external libraries?","user":{"login":"ambasta","id":54081,"avatar_url":"https://avatars.githubusercontent.com/u/54081?v=3","gravatar_id":"","url":"https://api.github.com/users/ambasta","html_url":"https://github.com/ambasta","followers_url":"https://api.github.com/users/ambasta/followers","following_url":"https://api.github.com/users/ambasta/following{/other_user}","gists_url":"https://api.github.com/users/ambasta/gists{/gist_id}","starred_url":"https://api.github.com/users/ambasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambasta/subscriptions","organizations_url":"https://api.github.com/users/ambasta/orgs","repos_url":"https://api.github.com/users/ambasta/repos","events_url":"https://api.github.com/users/ambasta/events{/privacy}","received_events_url":"https://api.github.com/users/ambasta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-06-21T13:07:54Z","updated_at":"2016-07-18T17:13:36Z","closed_at":"2016-06-27T10:52:54Z","body":"Hi,\r\n\r\nWhile deoplete-clang works wonders for stdlib, libraries such as boost/asio etc do not lead to code completion. How do I enable support for external libraries?\r\n\r\n## Environment Information\r\n\r\n - OS: Linux(Gentoo)\r\n - Neovim version: 0.1.4\r\n\r\n\r\n## init.vim\r\n\r\n```\r\nlet g:deoplete#enable_at_startup = 1\r\nlet g:deoplete#auto_complete_start_length = 1\r\nlet g:deoplete#sources#clang#libclang_path = \"/usr/lib64/libclang.so\"\r\nlet g:deoplete#sources#clang#clang_header = \"/usr/lib64/clang/3.8.0/include/\"\r\nlet g:deoplete#sources#clang#std#cpp = 'c++1z'\r\nlet g:deoplete#sources#clang#sort_algo = 'priority'\r\nlet g:deoplete#sources#clang#flags = [\r\n    \\ \"-stdlib=libc++\",\r\n    \\ ]\r\n```"},"comment":{"url":"https://api.github.com/repos/zchee/deoplete-clang/issues/comments/233394338","html_url":"https://github.com/zchee/deoplete-clang/issues/34#issuecomment-233394338","issue_url":"https://api.github.com/repos/zchee/deoplete-clang/issues/34","id":233394338,"user":{"login":"zchee","id":6366270,"avatar_url":"https://avatars.githubusercontent.com/u/6366270?v=3","gravatar_id":"","url":"https://api.github.com/users/zchee","html_url":"https://github.com/zchee","followers_url":"https://api.github.com/users/zchee/followers","following_url":"https://api.github.com/users/zchee/following{/other_user}","gists_url":"https://api.github.com/users/zchee/gists{/gist_id}","starred_url":"https://api.github.com/users/zchee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zchee/subscriptions","organizations_url":"https://api.github.com/users/zchee/orgs","repos_url":"https://api.github.com/users/zchee/repos","events_url":"https://api.github.com/users/zchee/events{/privacy}","received_events_url":"https://api.github.com/users/zchee/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T17:13:35Z","updated_at":"2016-07-18T17:13:35Z","body":"> I don't really understand why deoplete is slow for external libraries.\r\n> libclang should work for external libraries (and fast).\r\n> The only thing you need is to specify the header locations.\r\n\r\nYes, libclang is faster and de-facto library for parse C language.\r\n`and fast` meaning of on YCM?\r\nIf so, Yes. YCM also uses libclang. But it's real libclang shared library.\r\n\r\n**Maybe**(I do not much look at the YCM code) parse buffer, conversion AST to complete word or whatever, were executed C++ side.  Not through a Python.\r\nWe use `libclang-python3`. It's libclang binding for Python3, and performance is degraded because bypass a Python.\r\n(If experience you have with the libclang-python and was not slow, please let me know)\r\n\r\nI think If included small external library such as `dispatch.h`, it will fast.\r\nBut boost library seems large(I never used boost), very slow.\r\nHowever, the slow cause might be a problem with the current deoplete-clang code, so we are during the validation now."}}
{"actor":{"display_login":"zchee"}}