{"action":"opened","issue":{"url":"https://api.github.com/repos/tweekmonster/deoplete-clang2/issues/21","repository_url":"https://api.github.com/repos/tweekmonster/deoplete-clang2","labels_url":"https://api.github.com/repos/tweekmonster/deoplete-clang2/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/tweekmonster/deoplete-clang2/issues/21/comments","events_url":"https://api.github.com/repos/tweekmonster/deoplete-clang2/issues/21/events","html_url":"https://github.com/tweekmonster/deoplete-clang2/issues/21","id":276545691,"number":21,"title":"Exception during clang2.on_event for event 'Init': expected string or bytes-like object.","user":{"login":"KristupasSavickas","id":1362643,"avatar_url":"https://avatars3.githubusercontent.com/u/1362643?v=4","gravatar_id":"","url":"https://api.github.com/users/KristupasSavickas","html_url":"https://github.com/KristupasSavickas","followers_url":"https://api.github.com/users/KristupasSavickas/followers","following_url":"https://api.github.com/users/KristupasSavickas/following{/other_user}","gists_url":"https://api.github.com/users/KristupasSavickas/gists{/gist_id}","starred_url":"https://api.github.com/users/KristupasSavickas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristupasSavickas/subscriptions","organizations_url":"https://api.github.com/users/KristupasSavickas/orgs","repos_url":"https://api.github.com/users/KristupasSavickas/repos","events_url":"https://api.github.com/users/KristupasSavickas/events{/privacy}","received_events_url":"https://api.github.com/users/KristupasSavickas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-24T08:30:39Z","updated_at":"2017-11-24T08:30:39Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI've just installed deoplete_clang2 and I'm getting this error when trying to edit a .c file:\r\n\r\n```\r\n[deoplete] Traceback (most recent call last):                                                                                                                          \r\n[deoplete]   File \"/home/savickaskr/.vim/bundle/deoplete.nvim/rplugin/python3/deoplete/deoplete.py\", line 473, in on_event                                             \r\n[deoplete]     source.on_event(context)                                                                                                                                \r\n[deoplete]   File \"/home/savickaskr/.vim/bundle/deoplete-clang2/rplugin/python3/deoplete/sources/deoplete_clang2.py\", line 151, in on_event                            \r\n[deoplete]     cmd, flags = self.build_flags(context)                                                                                                                  \r\n[deoplete]   File \"/home/savickaskr/.vim/bundle/deoplete-clang2/rplugin/python3/deoplete/sources/deoplete_clang2.py\", line 506, in build_flags                         \r\n[deoplete]     db_flags = self.find_db_flags(context)                                                                                                                  \r\n[deoplete]   File \"/home/savickaskr/.vim/bundle/deoplete-clang2/rplugin/python3/deoplete/sources/deoplete_clang2.py\", line 354, in find_db_flags                       \r\n[deoplete]     ')\\s*(\\S+)', entry.get('command')):                                                                                                                     \r\n[deoplete]   File \"/usr/lib/python3.6/re.py\", line 229, in finditer                                                                                                    \r\n[deoplete]     return _compile(pattern, flags).finditer(string)                                                                                                        \r\n[deoplete] TypeError: expected string or bytes-like object                                                                                                             \r\n[deoplete] Exception during clang2.on_event for event 'Init': expected string or bytes-like object.  Use :messages for error details.  \r\n```\r\nMy ~/.config/nvim/init.vim:\r\n```\r\nset number\r\nset mouse=a\r\nset background=dark\r\n\r\n\" NeoBundle settings\r\n\" Skip initialization for vim-tiny or vim-small.\r\nif 0 | endif\r\n\r\nif &compatible\r\n  set nocompatible               \" Be iMproved\r\nendif\r\n\r\nset runtimepath+=~/.config/nvim/bundle/neobundle/\r\ncall neobundle#begin(expand('~/.vim/bundle/'))\r\nNeoBundleFetch 'Shougo/neobundle.vim'\r\n\r\n\" My Bundles here:\r\n\" Refer to |:NeoBundle-examples|.\r\nNeoBundle 'airblade/vim-gitgutter'\r\nNeoBundle 'scrooloose/nerdtree'\r\nNeoBundle 'vim-airline/vim-airline'\r\nNeoBundle 'vim-airline/vim-airline-themes'\r\nNeoBundle 'tpope/vim-commentary'\r\nNeoBundle 'google/vim-searchindex'\r\nNeoBundle 'icymind/NeoSolarized'\r\nNeoBundle 'Shougo/deoplete.nvim'\r\nNeoBundle 'tweekmonster/deoplete-clang2'\r\n\r\ncall neobundle#end()\r\n\r\nfiletype plugin indent on\r\n\r\nNeoBundleCheck\r\n\r\nlet g:gitgutter_enabled = 1\r\nlet g:gitgutter_realtime = 1\r\nlet g:gitgutter_eager = 1\r\n\r\n\" NERDTree settings\r\n\" Open NERDTreee when opening vim with no files were specified\r\nautocmd StdinReadPre * let s:std_in=1\r\nautocmd VimEnter * if argc() == 0 && !exists(\"s:std_in\") | NERDTree | endif\r\n\r\n\" Close vim if the only tab open is NERDTree\r\nautocmd bufenter * if (winnr(\"$\") == 1 && exists(\"b:NERDTree\") && b:NERDTree.isTabTree()) | q | endif\r\n\r\n\" Files to be ignored by NERDTree\r\nlet NERDTreeIgnore = ['\\.o$', 'core']\r\n\r\n\" Toggle NERDTree\r\nmap <F2> :NERDTreeToggle<CR>\r\n\r\n\" Airline settings\r\nlet g:airline_theme='solarized'\r\nlet g:airline_solarized_bg='dark'\r\n\r\n\" Easier navigation in splits\r\nnnoremap <C-J> <C-W><C-J>\r\nnnoremap <C-K> <C-W><C-K>\r\nnnoremap <C-L> <C-W><C-L>\r\nnnoremap <C-H> <C-W><C-H>\r\n\r\n\" Set colorscheme\r\ncolorscheme NeoSolarized\r\n\r\n\" Deaoplete setup\r\nlet g:deoplete#enable_at_startup = 1\r\n\r\n```\r\n\r\nMy compile_commands.json:\r\n```\r\n[\r\n    {\r\n        \"arguments\": [\r\n            \"cc\",\r\n            \"-c\",\r\n            \"-Wall\",\r\n            \"-Wextra\",\r\n            \"-pedantic\",\r\n            \"-Iinclude\",\r\n            \"-pthread\",\r\n            \"-std=gnu99\",\r\n            \"-o\",\r\n            \"main.o\",\r\n            \"main.c\"\r\n        ],\r\n        \"directory\": \"/home/savickaskr/projects/stmd/testapp\",\r\n        \"file\": \"main.c\"\r\n    }\r\n]\r\n```"}}
{"actor":{"display_login":"KristupasSavickas"}}