I have installed
emacs-eclim and have it working in my Java buffers. For example, I can invoke
eclim-java-show-documentation-for-current-element and they behave as expected.
I can run
eclim-complete, and I receive a list of correct completions in another buffer.
I evaluate something like
company-emacs-eclim--candidates "Object.") in a java buffer, and I get a list of completion candidates.
company also works as expected.
What doesn't work
Hoping to get
eclim completion candidates in my Java buffers, I added the following lines to my
(require 'company-emacs-eclim) (company-emacs-eclim-setup)
However, I do not get eclim completions as expected. If I invoke
company-emacs-eclim explicitly, I get the error
"Cannot complete at point", with the following backtrace:
Debugger entered--Lisp error: (error "Cannot complete at point") signal(error ("Cannot complete at point")) error("Cannot complete at point") company-begin-backend(company-emacs-eclim) company-emacs-eclim(interactive) ad-Orig-call-interactively(company-emacs-eclim record nil) call-interactively(company-emacs-eclim record nil) command-execute(company-emacs-eclim record) execute-extended-command(nil "company-emacs-eclim") smex-read-and-run(("toggle-debug-on-error" "company-emacs-eclim" ...)) smex() ad-Orig-call-interactively(smex nil nil) call-interactively(smex nil nil)
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
of 2014-03-07 on lamiak, modified by Debian