I have eclim setup and working. I know this because
:PingEclim
shows
eclim 2.3.4
eclipse 4.3.2
Press ENTER or type command to continue
in appropriate colors and Ctrl-X, Ctrl-U show correct completions after a partial method name in insert mode.
However, YouCompleteMe does not work. To install YouCompleteMe, I added the following lines.
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'Valloric/YouCompleteMe'
let g:EclimCompletionMethod = 'omnifunc'
When I type the partial method name, I expect to see the same completions as when I typed Ctrl-X Ctrl-u above. Instead what I see is
-- User defined completion (^U^N^P) Pattern not found
The "Pattern not found" part is in red color.
How do I verify YCM is installed correctly? What does the error message mean?
YCM triggers Eclim automatically. So you don't need to press C-xC-u to invoke completion.
And the configuration let g:EclimCompletionMethod = 'omnifunc' disabled the key combination and remap it to C-xC-o.
So, as long as you have installed YCM correctly and configured eclim correctly, you don't even bother to press control key to invoke eclim. And if you do want to complete manually, you can press C-xC-o.
The installation of YCM requires you to build a native C++ component. Please refer to the official manual. It has quick guide for both OSX and Linux. (and YCM isn't available on windows, sigh).
You don't need to verify the installation of YCM purposely. If YCM is in your runtimepath but not installed correctly, it will warn you at the startup of vim. If YCM works correctly, it will just popup when you are typing in insert mode.
OP probably forgot to create a .project file and to generate a project structure with :ProjectCreate . -n java (inside vim, when in the project root directory).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With