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 q :call g:ClangUpdateQuickFix()
" the path needs to be setup accrodingly
let g:clic_filename="/home/dev/index.db"
nnoremap r :call ClangGetReferences()
nnoremap d :call ClangGetDeclarations()
nnoremap s :call ClangGetSubclasses()
I use vim 7.3 with clang 3.1 built by me from sources.
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:", 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)
Traceback (most recent call last): File "
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 = "," nnoremapq :call g:ClangUpdateQuickFix()
" the path needs to be setup accrodingly
let g:clic_filename="/home/dev/index.db"
nnoremap r :call ClangGetReferences()
nnoremap d :call ClangGetDeclarations()
nnoremap s :call ClangGetSubclasses()
I use vim 7.3 with clang 3.1 built by me from sources.