I'm on the vim_dev mailing list as well so I've been following the
discussion.
> I implemented this workaround, so, here's patch: http://goo.gl/b5ztR (only
> one file is patched, eclim/autoload/eclim/util.vim )
> Now, autocomplete works for me on files with any encodings. Nice!
I haven't checked it in yet, but I've applied the necessary changes to
fix this.
> But this is just a part of the different encoding problem. The second part
> is that signs is misplaced if &encoding != &fileencoding . I just figured
> out that this is not Vim part, but eclimd : after calling
> eclim#ExecuteEclim() result is wrong. So, there's need to fix server
> eclimd, i don't familiar with it.
>
> How to reproduce the bug: start eclimd, open any java file from the proper
> project, do the following:
>
> :set &encoding=cp1251
> :set &fileencoding=utf-8
>
> insert *in the begin of the file* comment with any multi-byte text (say,
> you can copy-paste this test text: http://goo.gl/rNkRF ), and initiate some
> errors or warnings in this file. You will see that signs is upper than they
> should be.
>
> This is not very critical for me (less than autocomplete), but anyway it is
> annoying. Could you please try to solve this?
Although I could easily reproduce the code completion issue I've been
unable to reproduce the misplacement of the validation signs.
Can you check your default jvm file encoding by running the following
through a test class:
System.out.println(java.nio.charset.Charset.defaultCharset().name());
--
eric
--
eric
--
You received this message because you are subscribed to the Google Groups "eclim-dev" group.
To post to this group, send email to ecli...@googlegroups.com.
To unsubscribe from this group, send email to eclim-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/eclim-dev?hl=en.
Hmm, that's what I've set mine to and I still can't reproduce the
issue. Can you give me a full example of a file that you can trigger
this issue with?
--
eric
--
eric
--
You received this message because you are subscribed to the Google Groups "eclim-dev" group.
To post to this group, send email to ecli...@googlegroups.com.
To unsubscribe from this group, send email to eclim-dev+unsubscribe@googlegroups.com.
I'm still having issues reproducing this. I've gone so far as to
attempt to setup Russian as my default language on my windows VM, but
when I open that file in gvim using cp1251 as the encoding, those
comments display as a long series of garbage until I set encoding to
utf-8 (but then vim's messages become a different type of garbage like
your screenshot sent to vim_dev). Regardless of how the text looks
though, the sign always displays in the correct place.
One thing you can try that in theory would fix the problem, would be
to start eclimd with: -Dfile.encoding=utf-8
Since the files you are editing are using utf-8, but your eclipse is
defaulting to cp1251, forcing utf-8 to be the default should fix the
translation of eclipse offsets to vim line/column numbers.
--
eric
One thing you can try that in theory would fix the problem, would be
to start eclimd with: -Dfile.encoding=utf-8
Since the files you are editing are using utf-8, but your eclipse is
defaulting to cp1251, forcing utf-8 to be the default should fix the
translation of eclipse offsets to vim line/column numbers.
--
eric
Since the files you are editing are using utf-8, but your eclipse is
defaulting to cp1251, forcing utf-8 to be the default should fix the
translation of eclipse offsets to vim line/column numbers.
--
eric
In this case file.encoding must be set at jvm startup time, so your
best bet would be to edit the eclipse.ini file in your eclipse home
directory and add -Dfile.encoding=utf-8 on a new line below the
-vmargs line.
Great to hear!
> Could you please post this solution to eclim's FAQ or Troubleshooting? I
> think i'm not alone who use eclim on Windows with one-byte encoding.
I just checked in a change which adds an entry to the troubleshooting
section which links to the FAQ on how to set the default file
encoding.
> **
> By the way, not regarding to today's question, but regarding to eclim's
> documentation:
> When i use embedded Vim, i face the issue with the embedded gvim's command
> line being cut off.
> Suggested options ( set guioptions-=m | set guioptions-=T ) didn't help
> me, but some another did:
>
> set guioptions-=L " remove left scrollbar when window is splitted vertically
> set guioptions-=l " remove left scrollbar
>
> Now, this issue is gone. I would add these options to the docs with
> embedded eclim ( http://eclim.org/eclimd.html?highlight=embedded )
>
> **
I also checked in an update to those docs suggesting these settings as
well. Thanks for tracking that down :)
> Thanks again!
>
>
> > Since the files you are editing are using utf-8, but your eclipse is
> > defaulting to cp1251, forcing utf-8 to be the default should fix the
> > translation of eclipse offsets to vim line/column numbers.
FYI, I also checked in the change[1] to GetOffset to handle the differing
fileencoding vs encoding:
[1] https://github.com/ervandew/eclim/commit/007a9be55073016962714dbce45827b2837d235a
--
eric
On 2011-12-22 08:47:16, Дмитрий Франк wrote:In this case file.encoding must be set at jvm startup time, so your
> > I'm still having issues reproducing this. I've gone so far as to
> > attempt to setup Russian as my default language on my windows VM, but
> > when I open that file in gvim using cp1251 as the encoding, those
> > comments display as a long series of garbage until I set encoding to
> > utf-8 (but then vim's messages become a different type of garbage like
> > your screenshot sent to vim_dev). Regardless of how the text looks
> > though, the sign always displays in the correct place.
> >
> > One thing you can try that in theory would fix the problem, would be
> > to start eclimd with: -Dfile.encoding=utf-8
>
>
> Where can i define options to eclimd when it's started from Eclipse?
> I would use embedded gvim, so, eclimd is started from Eclipse
> automatically, and unfortunately i can't find where can i set up options
> for it.
best bet would be to edit the eclipse.ini file in your eclipse home
directory and add -Dfile.encoding=utf-8 on a new line below the
-vmargs line.
> >
> >
> > Since the files you are editing are using utf-8, but your eclipse is
> > defaulting to cp1251, forcing utf-8 to be the default should fix the
> > translation of eclipse offsets to vim line/column numbers.
--
eric