Very slow autocomplete in vim

678 views
Skip to first unread message

Алексей Кардапольцев

unread,
May 31, 2013, 8:57:12 AM5/31/13
to eclim...@googlegroups.com
When I pressed ^x^u it takes about 3 sec to autocomplete pop-up. Is it usual behaviour? From eclimd logs I got that it tries to recompile whole project each time I want complete.
When I try autocomplete directly in eclipse it works fine.

I use Eclipse Indigo, eclim 1.7.14, and working on scala project.

Thanks in advance for any help.

Eric Van Dewoestine

unread,
May 31, 2013, 4:26:56 PM5/31/13
to eclim...@googlegroups.com
On 2013-05-31 05:57:12, Алексей Кардапольцев wrote:
> When I pressed ^x^u it takes about 3 sec to autocomplete pop-up. Is it
> usual behaviour?

The first code completion after starting eclimd can be slow as eclipse
warms up its cache, but subsequent completions should be fast. Is that
the behavior your experiencing or are all completions slow? What OS
are you on?

> From eclimd logs I got that it tries to recompile whole
> project each time I want complete.

What logs are you looking at that give you this impression?

It shouldn't be recompiling your whole project on completion attempts.
It will perform incremental builds when writing files though, but like
code completion, after that first save it should be fast and you
shouldn't even notice that it's doing anything.

> When I try autocomplete directly in eclipse it works fine.
>
> I use Eclipse Indigo, eclim 1.7.14, and working on scala project.
>
> Thanks in advance for any help.

--
eric

Eric Van Dewoestine

unread,
Jun 1, 2013, 6:58:56 AM6/1/13
to eclim...@googlegroups.com, Алексей Кардапольцев
On 2013-05-31 21:21:46, Алексей Кардапольцев wrote:
> It's slow all the time. Even if I don't save anything and try to complete
> the same thing. I'm running
>
> > uname -o -r
> >
> 3.8.13-gentoo GNU/Linux
> >
> >
> I'm starting eclimd from the console, and read logs from stdout.
> Unfortunately, I'm could not show you this logs till Monday.
> May be I should try new Eclipse 4.2 and new Eclim version? I'm tired from
> Intellij Idea and I want write my code in vim.
>
> Thanks for your reply.

Another thing to try is to run vim with the minimal environment to see
if the problem still occurs to determine if there is some setting or
plugin in your vim environment that may be contributing to the issue:

$ vim -u NONE -U NONE --cmd \
"set nocp | sy on | filetype plugin indent on | ru plugin/eclim.vim"
--
eric

Алексей Кардапольцев

unread,
Jun 2, 2013, 11:12:23 AM6/2/13
to eclim...@googlegroups.com
I'm install new eclipse, build eclim from source and now it works fine. Thanks for help.

Eric Van Dewoestine

unread,
Jun 15, 2013, 7:49:19 AM6/15/13
to eclim...@googlegroups.com, Алексей Кардапольцев
First off, sorry for the late response... it's been a busy time at
work.

On 2013-06-02 18:32:03, Алексей Кардапольцев wrote:
> Here eclimd logs after I pressed ^x^u in vim.
> eclimd log <http://pastebin.com/5ZFRKVbS>
>
> I've started vim as you suggest in previous message.

And it was still slow even with a minimal vim configuration?

> May be problem in
> eclipse configuration?
> 1) When I run eclimd from the console - it's slow

Are you running vim in the console as well or are you using gvim in
this case as well?

> 2) When I run gvim inside eclipse - it's OK
> 3) When I run gvim inside eclipse and turn on Project -> Build
> automatically - it's also slow, and I see "Rebulding workplace" message.
>
> Here eclimd starup log <http://pastebin.com/heCwcWML>.
>
> This behaviour I have on 2 different machines with an eclim_1.7.14.jar<http://sourceforge.net/projects/eclim/files/eclim/1.7.14/eclim_1.7.14.jar/download>on one and
> eclim_2.2.6.jar<http://sourceforge.net/projects/eclim/files/eclim/2.2.6/eclim_2.2.6.jar/download>(builded from source) on another.

So your previous message said it was working fine after a reinstall,
was that the case? Was it fast for your project until you changed
something? Can you reproduce the problem with a small test project
that you can give me?
--
eric

Алексей Кардапольцев

unread,
Jun 18, 2013, 2:57:28 AM6/18/13
to eclim...@googlegroups.com, Алексей Кардапольцев
Now I can't reproduse it. Works fine with new eclim and eclipse, and unfortunately I don't have enough time now to reinstall old version.

Thanks for help!

Ningsuhen Waikhom

unread,
Mar 13, 2017, 4:18:48 PM3/13/17
to eclim-user
For those who are facing the same issue, try turning off "Build Automatically" in your Eclipse. In my case, Eclipse was building the workspace everytime autocomplete is required. 
Reply all
Reply to author
Forward
0 new messages