Re: bsh-compilation-buffer error message upon starting emacs
Carlos Konstanski <[email protected]> Wed, 23 May 2007 08:17:34 -0600 (MDT)
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 23 May 2007, Sunnan wrote: > Date: Wed, 23 May 2007 11:45:02 +0200 > From: Sunnan <[email protected]> > To: [email protected] > Subject: Re: bsh-compilation-buffer error message upon starting emacs > > On 5/22/07, Carlos Konstanski <[email protected]> wrote: >> On Tue, 22 May 2007, Sunnan wrote: >> > Hi, I'm using jde and everything worked fine, but I must've borked it >> > somehow and I don't know how to trouble shoot. Any idea on where to >> > start looking? This is what I get when starting emacs. >> > >> > An error has occurred while loading `/home/sunnan/.emacs': >> > >> > error: "Given parent class bsh-compilation-buffer is not a class" >> > n >> >> Go into your /usr/share/emacs/site-lisp directory as root, and then >> run: >> >> grep -nr -e 'bsh-compilation-buffer' * >> >> You'll find that jde-compile.el, beanshell.el, and jde.el contain this >> text. Something is calling into this code from your .emacs file. >> >> Do you have the emacs debugger turned on? Or can you launch emacs >> with the --debug-init switch? A backtrace would be helpful here. > > This is all I get: > Debugger entered--Lisp error: (error "Given parent class > bsh-compilation-buffer is not a class") > signal(error ("Given parent class bsh-compilation-buffer is not a class")) > error("Given parent class %s is not a class" bsh-compilation-buffer) > eieio-defclass(jde-compile-server-buffer (bsh-compilation-buffer) > nil ("Compiler server buffer.")) > require(jde-compile) > eval-buffer(#<buffer *load*<2>> nil "jmaker" nil t) > load-with-code-conversion("/home/sunnan/Program/elisp/jmaker.el" > "jmaker" nil t) > require(jmaker) > eval-buffer(#<buffer *load*> nil "~/.emacs" nil t) > load-with-code-conversion("/home/sunnan/.emacs" "~/.emacs" t t) > > So I figure that commenting out > (require 'jmaker) > (require 'jde-eclipse-compiler-server) > in my .emacs would let me start emacs. The weird thing is that doing > that, and then re-requiring them after I've started emacs and loaded > jde-mode works. > So I added (require 'jde) and now everything works again! > Thanks for getting me started! > (You know, it actually says "Start Emacs with the `--debug-init' > option to view a complete error backtrace"... I feel pretty dumb now.) No one who successfully uses emacs and jde for java programming is dumb. What are jmaker and jde-eclipse-compiler-server, anyway? (No need to answer; I'm already googling.) I'm always looking for ways to make emacs and jde more digestible to my coworkers. I've given up on converting them, but anything that makes it easier for me to use emacs in their world is a good thing. Does the use of this code make hot-recompiling possible in jde, as can be done in eclipse? That's the only feature I miss, though I've been doing just fine without it. Even without hot-swap, I'm way more productive in emacs than eclipse. The improved jdebug in jde-2.3.5.1 is really nice, by the way. The speedup from the previous version is tremendous. Thanks! Carlos Konstanski