unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Chris McMahan <cmcmahan@one.net>
To: help-gnu-emacs@gnu.org
Subject: Re: An Eclim frontend for Emacs
Date: Tue, 28 Apr 2009 16:33:40 -0400	[thread overview]
Message-ID: <80ab60jz6j.fsf@one.net> (raw)
In-Reply-To: mailman.5771.1240334666.31690.help-gnu-emacs@gnu.org

Tassilo Horn <tassilo@member.fsf.org> writes:

> Richard Riley <rileyrgdev@googlemail.com> writes:
>
> Hi Richard,
>
>> You're saying that eclipse completion features now work in emacs with
>> company-mode?
>
> Exactly.
>
>> Wow? Is it trivial to set up?
>
> Quite.  Here's my config.
>
> (require 'company)
> (define-key company-mode-map (kbd "M-SPC") 'company-complete)
>
> (defun th-turn-on-company-mode ()
>   (interactive)
>   (company-mode 1))
>
> (dolist (hook (list
>                'emacs-lisp-mode-hook
>                'lisp-mode-hook
>                'lisp-interaction-mode-hook
>                'clojure-mode-hook
>                'java-mode-hook
>                'haskell-mode-hook
>                'slime-repl-mode-hook
>                'sh-mode-hook))
>   (add-hook hook 'th-turn-on-company-mode))
>
> (setq company-idle-delay nil
>       company-eclim-auto-save t)
>
> (setq company-eclim-executable
>       "~/opt/eclipse/plugins/org.eclim_1.4.5/bin/eclim")
>
> (defun th-java-mode-init ()
>   (setq company-backend 'company-eclim))
>
> (add-hook 'java-mode-hook 'th-java-mode-init)
>
> And you need to install eclim, of course.  But it has an installer that
> worked just fine for me.
>
>> What about stuff like refactoring? Is there an eclim interface for
>> that? Or context API help?  Or are those outside of the remit of
>> eclim?
>
> No, I think most if not all features are usable via eclim.  For
> refactoring I don't know, but at least the eclipse incremental compiler
> can be used to highlight errors in the code.  Same for any completion
> functionality and things like "Organize imports".
>
> That's all available for Vim right now, and I plan to start a project
> which writes an emacs frontend.  But my time is quite limited at the
> moment, so I don't know exactly when I get a first version which
> implements some first features.  When I've done that, I'll announce it
> and hope for many volunteers doing the work for me. ;-)
>
> The git repo is already there:
>
>   http://repo.or.cz/w/eclim-emacs.git
>
> Bye,
> Tassilo


Thanks for the config, but I have had no luck getting it (or variations
of it) to work in Windows XP using Emacs 23. I've tried your config,
pointing the executable to 

  "c:/eclipse/plugins/org.eclim_1.4.5/bin/eclim.bat"
  "c:/eclipse/plugins/org.eclim_1.4.5/bin/eclim.cmd"
  "/cygdrivec/eclipse/plugins/org.eclim_1.4.5/bin/eclim.cmd"

and any other combination I can think of.

When I start the eclimd application
  "c:/eclipse/eclimd.bat"
or
  "c:/eclipse/eclimd.cmd"

it seems to start ok, and tells me it's listening on port 9091

... other output...

Debug options:
    file:/C:/eclipse/.options not found
Time to load bundles: 63
Starting application: 14656
2009-04-28 16:30:34,218 INFO  [org.eclim.eclipse.AbstractEclimApplication] Starting eclim...Application Started: 16562
2009-04-28 16:30:35,687 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading eclim plugins...
2009-04-28 16:30:35,703 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim.ant
2009-04-28 16:30:35,734 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loaded plugin org.eclim.ant_1.4.5.
2009-04-28 16:30:35,750 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim.jdt
2009-04-28 16:30:37,062 WARN  [org.eclim.plugin.jdt.PluginResources] Unable to locate jre src.zip.
2009-04-28 16:30:37,140 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loaded plugin org.eclim.jdt_1.4.5.
2009-04-28 16:30:37,156 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loading plugin org.eclim.maven
2009-04-28 16:30:37,171 INFO  [org.eclim.eclipse.AbstractEclimApplication] Loaded plugin org.eclim.maven_1.4.5.
2009-04-28 16:30:37,203 INFO  [org.eclim.eclipse.AbstractEclimApplication] Eclim Server Startedon port 9091.


But when I load the java file in emacs that I've set up inside eclipse,
I get no completions whatsoever. It's as if company is not even loaded.

I have verified that company works ok with elisp, and also the the
company-backend when editing java is set to "company-eclim",

I'm at a loss now on how to get this working on XP, but I would REALLY
like to see this functionality!

Has anyone else been able to get company and eclimd working on XP?

Thanks for a great package!!

- Chris McMahan


-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================


  parent reply	other threads:[~2009-04-28 20:33 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17  6:03 Is JDEE moribund? Is Emacs a viable Java devel environment? eefacm
2009-04-17 13:15 ` Martin
2009-04-17 17:19   ` eefacm
2009-04-18  1:15     ` Tim X
2009-04-17 17:28   ` Richard Riley
2009-04-17 19:50     ` Tassilo Horn
2009-04-17 22:08       ` Lennart Borgman
2009-04-17 22:52         ` Tassilo Horn
2009-04-17 23:32           ` Lennart Borgman
2009-04-18  8:05             ` David Engster
2009-04-18 11:32             ` An Eclim frontend for Emacs (was: Is JDEE moribund? Is Emacs a viable Java devel environment?) Tassilo Horn
2009-04-18 12:33               ` Lennart Borgman
2009-04-18 14:30                 ` Re[1]: " Eric M. Ludlam
2009-04-18 18:40                   ` An Eclim frontend for Emacs Tassilo Horn
2009-04-18 21:00                     ` Nikolaj Schumacher
2009-04-18 22:06                       ` Tassilo Horn
2009-04-19 12:18                         ` Nikolaj Schumacher
2009-04-19 16:59                           ` Tassilo Horn
2009-04-20  6:58                             ` Nikolaj Schumacher
2009-04-20  7:12                               ` Tassilo Horn
2009-04-20 18:56                           ` Tassilo Horn
2009-04-22  6:04                             ` Nikolaj Schumacher
2009-04-22  6:54                               ` Tassilo Horn
2009-04-22 18:08                                 ` Nikolaj Schumacher
2009-04-22 18:32                                   ` Tassilo Horn
     [not found]                           ` <mailman.5741.1240253822.31690.help-gnu-emacs@gnu.org>
2009-04-20 20:00                             ` Richard Riley
2009-04-21 17:24                               ` Tassilo Horn
     [not found]                               ` <mailman.5771.1240334666.31690.help-gnu-emacs@gnu.org>
2009-04-28 20:33                                 ` Chris McMahan [this message]
2009-04-29 23:40                                   ` Tassilo Horn
     [not found]                                   ` <mailman.6285.1241048434.31690.help-gnu-emacs@gnu.org>
2009-05-01  2:58                                     ` Chris McMahan
     [not found]                       ` <mailman.5655.1240092382.31690.help-gnu-emacs@gnu.org>
2009-04-18 22:13                         ` Richard Riley
2009-04-18 22:44                       ` Re[2]: " Eric M. Ludlam
     [not found]         ` <mailman.5568.1240008748.31690.help-gnu-emacs@gnu.org>
2009-04-18 14:25           ` Is JDEE moribund? Is Emacs a viable Java devel environment? Richard Riley
     [not found]       ` <mailman.5561.1240006100.31690.help-gnu-emacs@gnu.org>
2009-04-18 14:23         ` Richard Riley
2009-04-17 18:01 ` hazlup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=80ab60jz6j.fsf@one.net \
    --to=cmcmahan@one.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).