* emacs+eclim for Java development not working
@ 2013-12-18 17:09 Shiyuan
0 siblings, 0 replies; only message in thread
From: Shiyuan @ 2013-12-18 17:09 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-18 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 17:09 emacs+eclim for Java development not working Shiyuan
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).