Today I installed clang_complete using Pathogen (i. e., I installed it as a submodule of my dotﬁles git repository aka nesono-bin.
I tried to be smart and went into the submodule’s directory and invoked
That nicely built the vimball and installed itself - but whenever I tried to open a
cpp-ﬁle I got the following error:
"/tmp/sample.cpp" 10L, 144C Error detected while processing function
15_ClangCompleteInit.. 15_initClangCompletePython: line 29: Traceback (most recent call last): File " ", line 1, in File "/Users/iss/nesono-bin/vim/bundle/clang_complete/plugin/libclang.py", line 63, in initClangComplete Config.set_compatibility_check(False) File "/Users/iss/nesono-bin/vim/plugin/clang/cindex.py", line 3126, in set_compatibility_check raise Exception("compatibility_check must be set before before " \ Exception: compatibility_check must be set before before using any other functionalities in libclang. line 30: E121: Undefined variable: l:res E15: Invalid expression: l:res == 0
The error message was caused by the fact, that vim was loading
clang_complete twice, as it was now installed in the
bundle directory and in the
To ﬁx this issue, I deleted all
clang_complete related ﬁles:
bin/ doc/clang_complete.txt doc/tags plugin/clang/ plugin/clang_complete.vim plugin/libclang.py plugin/snippets/
Everything worked pretty ﬁne from now on.
That’s it again