| View previous topic :: View next topic |
| Author |
Message |
stofferthebest Tux's lil' helper

Joined: 31 Jul 2003 Posts: 114 Location: Denmark
|
Posted: Tue Jun 28, 2005 12:35 pm Post subject: Emacs and jde |
|
|
I have just install jde(a java plugin for emacs), and all it's dependencys. But when I try loading jde, I got an error:
| Code: |
JDEE requires a version of CEDET between 1.0beta2 and 1.0 (found none)
|
but I have version 1.0beta3, so why do I got an error and how to fix it?
Here is my .emacs file, I hope it can help
| Code: |
;;Emacs configuration file
(setq debug-on-error t)
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/jde/lisp/"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/semantic"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/speedbar"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/eieio"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/elib"))
(defun jde-check-version (1.0beta3))
(setq defer-loading-jde nil)
(if defer-loading-jde (progn (autoload 'jde-mode "jde" "JDE mode." t) (setq auto-mode-alist (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))) (require 'jde))
(add-hook 'jde-mode-hook' (lambda () (setq c-basic-offset 2)))
|
greetings
stofferthebest |
|
| Back to top |
|
 |
resin n00b

Joined: 28 Feb 2003 Posts: 15 Location: Chicago
|
Posted: Tue Jun 28, 2005 1:47 pm Post subject: |
|
|
I had the same problem when I upgraded cedet to a version > 1.0beta2, changing the value of the jde-check-version-flag variable to nil seems to fix things. I use JDE 2.3.5 with cedet 1.0pre2.
M-x customize-variable jde-check-version-flag
Hope this helps. |
|
| Back to top |
|
 |
gentsquash l33t

Joined: 03 Nov 2004 Posts: 753 Location: Still a Gentoo beginner.
|
Posted: Tue Jun 28, 2005 1:49 pm Post subject: |
|
|
Whence
| Code: | | (defun jde-check-version (1.0beta3)) |
? The "1.0beta3" is the name of the argument to the function,
and can't (normally) communicate any information to Emacs.
Could the function definition be missing, or was this perhaps to
be a no-argument fnc that was to return the symbol 1.0beta3 or
the string?
In any case, I don't understand the role of fnc jde-check-version. _________________ Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida |
|
| Back to top |
|
 |
stofferthebest Tux's lil' helper

Joined: 31 Jul 2003 Posts: 114 Location: Denmark
|
Posted: Tue Jun 28, 2005 2:00 pm Post subject: |
|
|
Still not working. Now my .emacs file, looks like this:
| Code: |
;;Emacs configuretion file
(setq debug-on-error t)
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/jde/lisp/"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/semantic"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/speedbar"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/cedet/eieio"))
(add-to-list 'load-path (expand-file-name "/usr/share/emacs/site-lisp/elib"))
(setq defer-loading-jde nil)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(jde-check-version-flag nil))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
(if defer-loading-jde (progn (autoload 'jde-mode "jde" "JDE mode." t) (setq auto-mode-alist (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))) (require 'jde))
(add-hook 'jde-mode-hook' (lambda () (setq c-basic-offset 2)))
|
|
|
| Back to top |
|
 |
jsled n00b

Joined: 12 Sep 2005 Posts: 11
|
Posted: Mon Sep 12, 2005 9:19 am Post subject: |
|
|
| gentsquash wrote: | Whence
In any case, I don't understand the role of fnc jde-check-version. |
I'd imagine the role is to check the version of CEDET and complain if there is a mismatch between the version installed and the versions known to work. Unfortunately, it appears that the CEDET people introduced a "new" naming convention ("beta"->"pre"->release), breaking the check.
For me just now and as per http://article.gmane.org/gmane.emacs.jdee/4608 , turning off the jde-check-version-flag does the trick.
If you're willing to modify the sources, this patch against /usr/share/emacs/site-lisp/jde/lisp/jde.el seems to work for me; just don't forgot to re-byte-compile jde with jde-compile-jde, though.
| Code: |
--- orig-jde.el 2005-09-12 10:05:03.000000000 -0400
+++ jde.el 2005-09-12 10:05:41.000000000 -0400
@@ -998,8 +998,10 @@
(defun jde-earlier-versionp (ver1 ver2)
"Return non-nil if VER1 is earlier than VER2"
- (let ((ver1-betap (string-match "beta" ver1))
- (ver2-betap (string-match "beta" ver2)))
+ (let ((ver1-betap (or (string-match "beta" ver1)
+ (string-match "pre" ver1)))
+ (ver2-betap (or (string-match "beta" ver2)
+ (string-match "pre" ver2))))
(if (or (and ver1-betap ver2-betap)
(and (not ver1-betap) (not ver2-betap)))
(string< ver1 ver2)
|
It'd probably be better to do this patch in the ebuild, of course. |
|
| Back to top |
|
 |
|