unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: emacs+eclim for Java development not working
Date: Wed, 18 Dec 2013 09:09:22 -0800	[thread overview]
Message-ID: <CAOm4EMt8S6BRTB0TGVZNQ3tF9edVVJdfJeMouNvfHCeWJYihGg@mail.gmail.com> (raw)

Hi,
    I am learning Java and I am looking for a  Java development environment
in emacs.  The package emacs+eclim http://www.skybert.net/emacs/java/ seems
to provide what I want.

I tried to setup emacs+eclim following this instruction:
https://github.com/senny/emacs-eclim
After setting the variables in .emacs as instructed above, I tried to
involve M-x eclim-java-find-declaration I got the error: "You must specify
a valid pattern or element search"

Then I stepped through the elisp function: eclim-java-find-declaration():

(defun eclim-java-find-declaration ()
  "Find and display the declaration of the java identifier at point."
  (interactive)
  (let ((i (eclim--java-identifier-at-point t)))
    (eclim/with-results hits ("java_search" "-n" "-f" ("-o" (car i)) ("-l"
(length (cdr i))) ("-x" "declaration"))
      (eclim--find-display-results (cdr i) hits t))))

I notice that the function eclim--java-identifier-at-point correctly pickup
the class name in my code, but the class name has never been passed to the
command-line,
The Backtrace is :

shell-command-to-string("~/softwares/eclipse/eclim -command java_search -o
938 -l 12 -x declaration ")
* (eclim--parse-result (shell-command-to-string cmd))
* (let ((cmd (eclim--make-command args))) (if eclim-print-debug-messages
(progn (message "Executing: %s" cmd))) (eclim--parse-result
(shell-command-to-string cmd)))
* eclim--call-process("java_search" "-n" nil "-f" nil "-o" "938" "-l" "12"
"-x" "declaration")
* apply(eclim--call-process ("java_search" "-n" nil "-f" nil "-o" "938"
"-l" "12" "-x" "declaration"))
* (let ((res (apply (quote eclim--call-process) command-line))) (funcall
on-complete-fn) res)


Do I miss anything? I am on Mac 10.9 (mavericks) and Eclipse Kepler. Any
help is greatly appreciated. If you know any other emacs package can
provide similar functionality, please also let me know.

Bests,
Shiyuan


                 reply	other threads:[~2013-12-18 17:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAOm4EMt8S6BRTB0TGVZNQ3tF9edVVJdfJeMouNvfHCeWJYihGg@mail.gmail.com \
    --to=gshy2014@gmail.com \
    --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).