help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs+eclim for Java development not working


From: Shiyuan
Subject: emacs+eclim for Java development not working
Date: Wed, 18 Dec 2013 09:09:22 -0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]