clang_indexer icon indicating copy to clipboard operation
clang_indexer copied to clipboard

libclang.py error

Open celavek opened this issue 12 years ago • 2 comments

I just installed the plugin and configured it. If I try to get the references or subclasses for any of my types/methods I get an error from the libclang.py:

Error detected while processing function ClangGetSubclasses: line 2:
Traceback (most recent call last): File "", line 1, in File "/home/marius/.vim/bundle/clang_complete/plugin/libclang.py", line 355, in getCurrentReferences usr = getCurrentUsr() File "/home/marius/.vim/bundle/clang_complete/plugin/libclang.py", line 280, in getCurrentUsr tu = getCurrentTranslationUnit(True) TypeError: getCurrentTranslationUnit() takes at least 3 arguments (1 given) line 3: E121: Undefined variable: l:list E116: Invalid arguments for function empty(l:list) E15: Invalid expression: !empty(l:list)

Here follows my configuration related to clang_complete: let g:clang_debug=1 let g:clang_user_options='|| exit 0' let g:clang_auto_select=1 let g:clang_complete_auto=0 let g:clang_complete_copen=1 let g:clang_hl_errors=1 let g:clang_periodic_quickfix=0 let g:clang_snippets=1 let g:clang_snippets_engine="clang_complete" let g:clang_conceal_snippets=1 let g:clang_exec="clang" let g:clang_user_options="" let g:clang_auto_user_options=".clang_complete" let g:clang_use_library=1 let g:clang_library_path="/usr/local/lib" let g:clang_sort_algo="priority" let g:clang_complete_macros=1 let g:clang_complete_patterns=0

let mapleader = "," nnoremap <Leader>q :call g:ClangUpdateQuickFix()<CR> " the path needs to be setup accrodingly let g:clic_filename="/home/dev/index.db" nnoremap <Leader>r :call ClangGetReferences()<CR> nnoremap <Leader>d :call ClangGetDeclarations()<CR> nnoremap <Leader>s :call ClangGetSubclasses()<CR>

I use vim 7.3 with clang 3.1 built by me from sources.

celavek avatar Aug 23 '12 13:08 celavek

I have this problem too. This problem is not solved after 6 month?!

Kelvin-Ng avatar Feb 12 '13 06:02 Kelvin-Ng

Same for me

ithron avatar Aug 19 '14 11:08 ithron