Hi,
I have some problems with the latest version of JDE (2.2.3) and Emacs when I
want to use the menu JDE->New->Class. It will insert all the data in the
buffer, but does not insert new lines. This makes that everything is
inserted on one line. I did not have this problem when I used JDE 2.1.6.
All other functions work fine, even inserting a template, like for Session
Beans, in an existing file gives no problems. I have not a lot of experience
with emacs, but it seems to me that JDE is misinterpreting the eol features
(cr-lf versus lf).
I also did test it using Xemacs and this gives the same problem, so it
definitely has to do with JDE or one of it's mandatory packages.
The versions I use are:
OS: Windows 2000 Professional - Service Pack 1
emacs: GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy
semantic 1.2.1
speedbar 0.12
the latest elib
I have no problems at startup, compile and everything just works fine if I
use existing or manually coded files ...
Here is an example of the generated source:
// tester}}public tester (){public class tester {*/* @version* @author <a
href="mailto: "</a>** Created: Thu Sep 07 18:13:40 2000*** tester/**
The error I get is:
Signaling: (error "Cannot find end of balanced expression to
indent.")
signal(error ("Cannot find end of balanced expression to
indent."))
error("Cannot find end of balanced expression to indent.")
c-indent-exp()
jde-gen-class-buffer("~/tester")
call-interactively(jde-gen-class-buffer)
My .emacs file is this:
;; This .emacs file illustrates the minimul setup
;; required to run the JDE.
;; Set the debug option to enable a backtrace when a
;; problem occurs.
(setq debug-on-error t)
;; Update the Emacs load-path to include the path to
;; the JDE and its require packages. This code assumes
;; that you have installed the packages in the emacs/site
;; subdirectory of your home directory.
(add-to-list 'load-path (expand-file-name "c:/usr/jde-2.2.3/lisp"))
(add-to-list 'load-path (expand-file-name "~/elisp/semantic-1.2.1"))
(add-to-list 'load-path (expand-file-name "~/elisp/speedbar-0.12"))
(add-to-list 'load-path (expand-file-name "~/elisp/elib"))
;; Tell Emacs to load the entire JDE package at startup (only once).
(require 'jde)
;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
(setq c-basic-offset 4))
(add-hook 'jde-mode-hook 'my-jde-mode-hook)
;; Include the following only if you want to run
;; bash as your shell.
;; Setup Emacs to run bash as its primary shell.
(setq shell-file-name "bash")
(setq shell-command-switch "-c")
(setq explicit-shell-file-name shell-file-name)
(setenv "SHELL" shell-file-name)
(setq explicit-sh-args '("-login" "-i"))
(if (boundp 'w32-quote-process-args)
(setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
If anybody has any idea, please let me know, I would like to use this
feature again as I did in the past !
Cor