-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pattern not found #39
Comments
Have you only installed the file "clang_complete.vim"? There are other files in clang_complete as well (i. e. the autoload directory and the .py files). |
Hi, I've the same issue with fresh .cpp file that contains: #include <vector>
int main()
{
std::vector v; <-- plugin displayed (after ::) list where I've found vector
v. <-- Here I've got error in VIM status bar: -- User defined completion (^U^N^P) Pattern not found
} OS: Mac OS X 10.6.7 .vimrc / .gvimrc:
p.s. Is it possible to use preinstalled (by Apple) clang? Looks like it was installed with XCode 4. |
MacVim somehow (very slow) work only with Apple preinstalled clang library. When I've changed path to clang (installed by MacPorts to /opt/local/lib) in .gvim that MacVim display error on start:
I've tried to play with DYLIB_LIBRARY_PATH but no luck:
|
Well afaik the clang that comes with xcode is pretty out of date and you need the last one if you want the "fast" version of libclang... The problem you apparently have is that the macports versions links dynamically and then fails loading What I did on OSX was that I followed the instructions at http://clang.llvm.org/get_started.html, along with the ones on the wiki on this project and was able to build a libclang.dylib that had everything statically linked, then I only played with Once stuff works, if things are still slow please tell I do know a workaround. |
Also if completion doesn't trigger properly when you write the dot, try |
I've found problem with completion... It is my epic fail :) Regarding issues with loading libclang (maybe move this information to other issue?):
Now VIM and MacVim can work with clang library. |
Yes, this is what I did too (move the files inside .vim folder). I see that you moved the .h too, which for some reasons is required by libclang in order for it to be fast (create the parse cache). Without those .h libclang is slow. I'm not sure if we should report that too... |
Vim keeps saying "pattern not found" for the following code.
include
int main()
{
std::string s;
s.
}
even if I have done the following.
Any suggestions? For example, does clang complete have conflict with some other plugins other than omni complete?
P.S. Clang version is 2.9, vim version is 7.3 (But I also tried 7.2). The same problem happens even if I deleted all other stuff except plugin/clang_complete.vim. In .vimrc, I removed almost everything. If I enable g:clang_complete_copen, a window pops up and says "unknown argument: '->, '
Bo
The text was updated successfully, but these errors were encountered: