eclim opens no file on mac using mvim

38 views
Skip to first unread message

Zhamak

unread,
Nov 5, 2011, 5:09:13 AM11/5/11
to eclim-dev
Hi,

I'm trying to get eclim 1.7.2 to play with MacVim (IM - Vi IMproved
7.2) on Mac OS X (10.6.8).

I like to run gvim from Eclipse as an external editor (knowing that
embedding doesn't work from other posts).

Eclipse -> Preferences -> Vimplugin -> Path to gvim (/Applications/
MacVim/mvim)

Eclipse and eclimd are installed under /Applications/eclimd.
There are no spaces in the path of applications (eclimd, eclipse) and
the files I'm trying to open.

Opening a file with "Vim" runs the gvim instance successfully but with
no file and this is the process running:


2183 ?? 0:00.79 /Applications/MacVim/MacVim.app/Contents/
MacOS/Vim -f -g --servername 3 -nb:


Any idea?

thanks,
- zhamak

p.s. I have seem a couple of other posts on this problem but none got
a resolution and had gone quiet for a while :(

Eric Van Dewoestine

unread,
Nov 9, 2011, 9:58:04 AM11/9/11
to ecli...@googlegroups.com

I was trying this out in my Lion VM yesterday with MacVim snapshot 62
and ran into a bug that I never saw in Snow Leopard with an older
MacVim version. I've fixed that (still need to test it in Snow
Leopard), and now I can reproduce the issue of no file opening as
you've described. From the vimplugin console it appears that the
netbeans interface setup is occurring correctly and the command to
open the file is sent, but for some reason macvim isn't opening that
file. I'll have to dig in further to see what's going on.

--
eric

zhamak dehghani

unread,
Nov 10, 2011, 1:40:25 AM11/10/11
to ecli...@googlegroups.com
Thanks Eric!

I've been checking this thread everyday hoping to hear something back. So I'm quite happy to hear the problem is at least reproducible.

eclim is my only hope at the moment for using my favorite editor and java IDE together since it's actually executing MacVim instead of trying emulate vim like others (e.g. vimplugin).

Looking forward to your success on this.

- zhamak

Eric Van Dewoestine

unread,
Nov 12, 2011, 6:58:40 PM11/12/11
to ecli...@googlegroups.com

So amazingly macvim's processing of netbeans messages has been broken
for just under a year now. I guess the set of people who have a
version of macvim from this year, are using the netbeans interface,
and are willing to report a problem quickly narrows down to just you
:(

I posted a patch to the vim_mac mailing list[1] which you can use to
get a working version of macvim built.

[1] http://groups.google.com/group/vim_mac/browse_thread/thread/e0e90599a36efcab

--
eric

zhamak dehghani

unread,
Nov 16, 2011, 4:32:19 AM11/16/11
to ecli...@googlegroups.com
Hi Eric,

Applied your patch and it worked! Thanks for that :)

So I have managed to exernally open MacVim with the Java file from Eclipse.
Next step, explore Eclipse goodies inside MacVim, haven't tried that yet.

Thanks again. Much appreciate it.
I figured your patch is not submitted to the master branch on github, right?

thanks,
- zhamak

Eric Van Dewoestine

unread,
Nov 16, 2011, 10:05:47 AM11/16/11
to ecli...@googlegroups.com
On 2011-11-16 20:32:19, zhamak dehghani wrote:
> Hi Eric,
>
> Applied your patch and it worked! Thanks for that :)

Good to hear!

> So I have managed to exernally open MacVim with the Java file from Eclipse.
> Next step, explore Eclipse goodies inside MacVim, haven't tried that yet.
>
> Thanks again. Much appreciate it.
> I figured your patch is not submitted to the master branch on github, right?

Are you asking if I based the patch off the master branch (I did), or
if I've submitted a pull request (I have not)? If I don't get a
response on the vim_mac mailing list by this weekend, I'll try a pull
request on github to get the fix applied.

> thanks,
> - zhamak

--
eric

zhamak dehghani

unread,
Nov 21, 2011, 4:58:37 PM11/21/11
to ecli...@googlegroups.com
> Are you asking if I based the patch off the master branch (I did), or
> if I've submitted a pull request (I have not)?  If I don't get a
> response on the vim_mac mailing list by this weekend, I'll try a pull
> request on github to get the fix applied.

The later and got my answer :)

thanks,
- zhamak

Eric Van Dewoestine

unread,
Nov 21, 2011, 5:53:17 PM11/21/11
to ecli...@googlegroups.com

FYI, still no response on the mailing list, so I filed a pull
request[1] on github (your mail reminded me that I needed to do that).

[1] https://github.com/b4winckler/macvim/pull/22

--
eric

Reply all
Reply to author
Forward
0 new messages