Autocomplete difficulties

275 views
Skip to first unread message

Chris Boyce

unread,
Aug 25, 2015, 10:00:40 AM8/25/15
to eclim-user
I'm trying to use eclim with an existing Eclipse project and I'm unable to get the autocomplete to work. I have youcompleteme, and per the info here, I've added "let g:EclimCompletionMethod = 'omnifunc'". When trying to autocomplete, I get "E764: Option 'completefunc' is not set" which I see in the eclim FAQ, but the ProjectInfo command doesn't seem to indicate any errors. Any tips on where I can look to try to troubleshoot this?

Eric Van Dewoestine

unread,
Aug 25, 2015, 11:17:52 AM8/25/15
to eclim...@googlegroups.com
On 2015-08-25 07:00:40, Chris Boyce wrote:
> I'm trying to use eclim with an existing Eclipse project and I'm unable to
> get the autocomplete to work. I have youcompleteme, and per the info here
> <http://eclim.org/vim/code_completion.html>, I've added "let g:EclimCompletionMethod
> = 'omnifunc'". When trying to autocomplete, I get "E764: Option
> 'completefunc' is not set" which I see in the eclim FAQ, but the
> ProjectInfo command doesn't seem to indicate any errors. Any tips on where
> I can look to try to troubleshoot this?

My first suggestion would be to eliminate YCM from the equation. Can
you initiation completions by typing ctrl-x+ctrl-o directly?

You might want to also check that the omnifunc option is being set to
eclim's completion method:

:verbose set omnifunc?

--
eric

Chris Boyce

unread,
Aug 25, 2015, 6:19:11 PM8/25/15
to eclim-user
Thanks for the quick reply! Disabling YouCompleteMe lets me pull up code completion with C-X C-U, but C-X C-O gives me the same E764 error. Previously with YouCompleteMe enabled, C-X C-U didn't seem to do anything, so that's definitely an improvement.  The "verbose set omnifunc?" command seems to indicate that it's empty.  I always get confused with vim's autocomplete, so I'm not quite sure how to resolve whatever YouCompleteMe seems to be doing when enabled.  
 

Eric Van Dewoestine

unread,
Aug 25, 2015, 6:28:52 PM8/25/15
to eclim...@googlegroups.com
Where did you set g:EclimCompletionMethod = 'omnifunc' (in what file)?
If &omnifunc is empty then that setting is not being honored, so it's
probably not visible when eclim sets up code completion.

--
eric

Chris Boyce

unread,
Aug 26, 2015, 10:38:25 AM8/26/15
to eclim-user
Ah! I had been setting g:EclimCompletionMethod in the Ex command line, not in my vimrc.  Putting it in the .vmrc file works. You rock!
Reply all
Reply to author
Forward
0 new messages