zaiste / vimified

Yet another Vim configuration
http://zaiste.github.com/vimified/
686 stars 130 forks source link

Error messages on C++ with clang plugins #93

Closed wichtounet closed 10 years ago

wichtounet commented 10 years ago

Hi,

I tried to activate the C++ plugins (clang in local.vimrc) and now, when I'm opening C++ files, I get a lot of errors messages:

Error detected while processing /home/wichtounet/vimified/bundle/vim-clang/ftplugin/c/clang.vim: line 71: E117: Unknown function: lh#option#get E15: Invalid expression: lh#option#get('clang_key_usr' , 'u') line 72: E117: Unknown function: lh#option#get E15: Invalid expression: lh#option#get('clang_key_declarations', 'd') line 73: E117: Unknown function: lh#option#get E15: Invalid expression: lh#option#get('clang_key_references' , 'r') line 74: E117: Unknown function: lh#option#get E15: Invalid expression: lh#option#get('clang_key_subclases' , 's') line 80: E121: Undefined variable: s:key_usr E116: Invalid arguments for function lh#menu#make line 82: E121: Undefined variable: s:key_declarations E116: Invalid arguments for function lh#menu#make line 84: E121: Undefined variable: s:key_references E116: Invalid arguments for function lh#menu#make line 86: E121: Undefined variable: s:key_subclasses E116: Invalid arguments for function lh#menu#make

It seems to me that a dependency of clang.vim is missing, probably lh-vim-lib

Is it possible to fix that ?

Thanks

devx commented 10 years ago

@wichtounet have you had a chance to test the changes, it should resolved the issues you had opening c files. If you still have problems let me know.

wichtounet commented 10 years ago

It is better indeed, thanks.

However, the plugin does not seems to work. If I go into c++ code and do a r, I still have error messages:

Error detected while processing function clang#_init_python:
line 12: Traceback (most recent call last): File "", line 1, in File "/home/wichtounet/vimified/bundle/vim-clang/py/vimclang.py", line 26, in import bsddb.db as db ImportError: No module named bsddb.db Error detected while processing function clang#display_references..clang#get_references..182_CheckUseLibrary: line 3: E121: Undefined variable: g:clang_use_library E15: Invalid expression: ! g:clang_use_library Searching for references to debt... Error detected while processing function clang#display_references..clang#get_references: line 3: Traceback (most recent call last): File "", line 1, in NameError: name 'getCurrentReferences' is not defined

Perhaps the module error is a missing dependency, but for the remaining, it probably is up to the vim-clang plugin itself.

devx commented 10 years ago

I'll take a look, I only tested "c" files.

AdrienGiboire commented 10 years ago

Guys, do you have update for this?