Eclim 1.7.3 duplicate lines

9 views
Skip to first unread message

Charles Capps

unread,
Apr 18, 2012, 5:51:19 PM4/18/12
to eclim-user
Since I installed 1.7.3 from scratch, Eclim has started duplicating
lines in vim after writing the file to disk. (:w)

It's just a visual glitch---if I move the cursor around the glitch
eventually goes away. Sometimes, however, it never seems to go away.

Here I copied the text directly from VIM. I only typed line 36
System.out.println() code once, but when I went to save the file with
the missing semi-colon, this happened.

32 this.funcs =
funcs;
33 this.terms =
terms;
34 this.root = recursiveGrow(maxDepth,
method);

35
>> 36 System.out.println("Testing eclimd glitch!")
>> 36 System.out.println("Testing eclimd glitch!")

38
39 public int getResult(GameState state)
{
40 return
root.interpretForResult(state);
41 }

After moving the cursor around a bit it goes away (even before re-
saving.) But it's pretty annoying and sometimes the duplicate lines
don't go away for a long time.

Charles Capps

unread,
Apr 18, 2012, 5:54:58 PM4/18/12
to eclim-user
If I check :messages after saving a file *once*, I get this:

"src/capps/gp/gptrees/ERCNode.java" 18L, 388C
(0s) system: "/home/charles/sdks/eclipse/eclim" --nailgun-port 9091 -
editor vim -command projects
"src/capps/gp/gptrees/ERCNode.java" 18L, 388C written
(0s) system: "/home/charles/sdks/eclipse/eclim" --nailgun-port 9091 -
editor vim -command java_src_update -p "gp_spatial" -f "src/capps/gp/
gptrees/ERCNode.java
" -v

Not sure if it's supposed to have both messages. Looks okay, though.

Eric Van Dewoestine

unread,
Apr 19, 2012, 10:41:20 AM4/19/12
to eclim...@googlegroups.com
On 2012-04-18 14:51:19, Charles Capps wrote:
> Since I installed 1.7.3 from scratch, Eclim has started duplicating
> lines in vim after writing the file to disk. (:w)

What OS are you on?

If you are on OSX is this happening with macvim?

Are you using the embedded gvim in eclipse or this happening with
external vim instances?

What version of vim are you using (please post the first few lines of
:version)?

Does the problem still occur if you run vim with the minimal settings?
$ vim -u NONE -U NONE --cmd \
"set nocp | sy on | filetype plugin indent on | ru plugin/eclim.vim"

> It's just a visual glitch---if I move the cursor around the glitch
> eventually goes away. Sometimes, however, it never seems to go away.
>
> Here I copied the text directly from VIM. I only typed line 36
> System.out.println() code once, but when I went to save the file with
> the missing semi-colon, this happened.
>
> 32 this.funcs =
> funcs;
> 33 this.terms =
> terms;
> 34 this.root = recursiveGrow(maxDepth,
> method);
>
> 35
> >> 36 System.out.println("Testing eclimd glitch!")
> >> 36 System.out.println("Testing eclimd glitch!")
>
> 38
> 39 public int getResult(GameState state)
> {
> 40 return
> root.interpretForResult(state);
> 41 }
>
> After moving the cursor around a bit it goes away (even before re-
> saving.) But it's pretty annoying and sometimes the duplicate lines
> don't go away for a long time.

You can always force vim to redraw using :redraw! or Ctrl+l.

--
eric

Charles Capps

unread,
Apr 19, 2012, 12:55:12 PM4/19/12
to eclim-user
Hi Eric,

First off, just want to say I'm extremely appreciative that you
actively answer questions here.

I'm running Ubuntu.
:version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 28 2012 13:49:48)
Included patches: 1-154
Modified by pkg-vim-m...@lists.alioth.debian.org
Compiled by buildd@

I tried the minimal settings command you gave, and the problem went
away. I figured out what it was.

*Ironically* the problem was that I had g:EclimLogLevel = 10.

When it displayed the command at the bottom of the screen it wrapped
to a new line because the command is so long. I think this somehow
caused display tearing.

In any case, it's gone away now. Man, that's ironic that I was testing
things with the Eclim logs and that was also the problem in this
case!!

Thanks for the suggestions, I'll keep that command to get a minimal
setup in mind whenever I run into a problem with vim.

~Charles

Eric Van Dewoestine

unread,
Apr 19, 2012, 1:27:35 PM4/19/12
to eclim...@googlegroups.com
On 2012-04-19 09:55:12, Charles Capps wrote:
> Hi Eric,
>
> First off, just want to say I'm extremely appreciative that you
> actively answer questions here.
>
> I'm running Ubuntu.
> :version
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 28 2012 13:49:48)
> Included patches: 1-154
> Modified by pkg-vim-m...@lists.alioth.debian.org
> Compiled by buildd@
>
> I tried the minimal settings command you gave, and the problem went
> away. I figured out what it was.
>
> *Ironically* the problem was that I had g:EclimLogLevel = 10.
>
> When it displayed the command at the bottom of the screen it wrapped
> to a new line because the command is so long. I think this somehow
> caused display tearing.

Ah, yeah I could see that potentially causing rendering issues. Vim
does have a few quirks with rendering occasionally, but luckily they
are rare.

> In any case, it's gone away now. Man, that's ironic that I was testing
> things with the Eclim logs and that was also the problem in this
> case!!
>
> Thanks for the suggestions, I'll keep that command to get a minimal
> setup in mind whenever I run into a problem with vim.
>
> ~Charles

Glad to hear you got it all squared away!

--
eric

Reply all
Reply to author
Forward
0 new messages