jdee-emacs / jdee

The JDEE is an add-on software package that turns Emacs into a comprehensive system for creating, editing, debugging, and documenting Java applications.
GNU General Public License v2.0
424 stars 55 forks source link

"Cannot open load file" "no such file or directory" "jdee-test" #79

Closed liar666 closed 8 years ago

liar666 commented 8 years ago

I've just upgraded to lastest jdee from ELPA.

When opening a java file, I get:

Debugger entered--Lisp error: (file-error "Cannot open load file" "no such file or directory" "jdee-test")
  require(jdee-test)
  eval-buffer(#<buffer  *load*-899972> nil "/home/xxx/.emacs.d/elpa/jdee-20161102.531/jdee.el" nil t)  ; Reading at buffer position 1882
  load-with-code-conversion("/home/xxx/.emacs.d/elpa/jdee-20161102.531/jdee.el" "/home/xxx/.emacs.d/elpa/jdee-20161102.531/jdee.el" nil t)
  require(jdee)
  eval-buffer(#<buffer  *load*> nil "/home/xxx/.emacs" nil t)  ; Reading at buffer position 14343
  load-with-code-conversion("/home/xxx/.emacs" "/home/xxx/.emacs" t t)
  load("~/.emacs" t t)
...
  command-line()
  normal-top-level()
liar666 commented 8 years ago

Commenting out require(jdee-test) in jdee.el seems to work around the problem for now...

pwojnowski commented 8 years ago

Thanks for the bug report. I created MELPA PR to fix this. It's tracked in #81.

liar666 commented 8 years ago

I just updated another machine and got the same error for require(dash). I don't know Emacs's package system, so I don't know if it is possible to do so, you might need to add a dependancy of jdee to dash...

m0smith commented 8 years ago

Does dash just need to be added to the Cask file?

pwojnowski commented 8 years ago

AFAIK package requirements have to be added to the package file (jdee.el in our case) specified in Cask - see Library Headers. Deps specified in Cask/development section are only for development (tests?) and will not be included in packaged library, only the libs from "Library Headers".