jde-global-classpath too long?!
Please enter the details of your bug report here In our project the jar files moved one folder down in the file system. Since then XEmacs crashes whenever I try to do anything that involves usage of the classpath, i.e. opening a BSH buffer or doing JavaDoc generation. Also typing C-c C-v C-y crashes XEmacs big time. I'm suspecting it's got something to do with the length of the jde-global-classpath variable. When I shorten it to only one or two jar files JDE works OK. I'm sorry that I can't include a stacktrace, but when XEmacs crashes it opens a console window starts to type something and then it closes again before I have a chance to copy the contents. Thanks for your time and help. Christian Schmitt Emacs : XEmacs 21.4 (patch 11) Native Windows TTY Support (Windows) [Lucid] (i586-pc-win32) of Wed Jan 08 2003 on TSUNAMI Package: JDE version 2.3.3 Required packages: semantic-1.4.2 eieio-0.17 speedbar-0.14beta4 current state: == (setq jde-which-method-class-min-length 4 jde-gen-to-string-method-template '((end-of-line) ' \/**\ ''n \* Retrieve a String representation of this object\ ''n \* \ ''n \* @return a codeString/code representation of this object.\ ''n \* @see Object#toString()\ ''n \*/\ ''n (jde-gen-method-signature \public\ \String\ \toString\ nil ) ' (if jde-gen-kr () 'n) \{\''n ''r'n \}\''n') jde-bug-jre-home jde-bug-debugger-host-address FFZD04VN jde-import-insert-group-names nil jde-help-docsets '((JDK API c:/jdk1.3.1/docs/api nil) (User (javadoc) C:/dev/diva-fs2/build/doc/API nil) (User (javadoc) c:/dev/dreba-cocoon/build/cocoon-2.1-dev/javadocs nil) ) jde-complete-signature-display-time 5 jde-gen-junit-test-class-buffer-template '((funcall jde-gen-boilerplate-function) (jde-gen-get-package-statement) \import junit.framework.Test;\ ''n \import junit.framework.TestCase;\ ''n \import junit.framework.TestSuite;\ ''n 'n (progn (require 'jde-javadoc) (jde-javadoc-insert-start-block)) \ * \ \ Unit Test for class \ (jde-gen-junit-class (file-name-nondirectory buffer-file-name)) ''n \ \ (jde-javadoc-insert-empty-line) \ \ (jde-javadoc-insert-empty-line) \ * Created: \ (current-time-string) ''n \ \ (jde-javadoc-insert-empty-line) \ \ (jde-javadoc-insert 'tempo-template-jde-javadoc-author-tag) \ \ (jde-javadoc-insert 'tempo-template-jde-javadoc-version-tag) \ \ (jde-javadoc-insert 'tempo-template-jde-javadoc-end-block \*/\) \public class \ (file-name-sans-extension (file-name-nondirectory buffer-file-name)) \ extends TestCase \ (if jde-gen-kr () ''n) \{\''n 'n \ /** \ ''n \* Creates a new code\ (file-name-sans-extension (file-name-nondirectory buffer-file-name)) \/code instance.\ ''n \*\ ''n \* @param name test name\ ''n \*/\''n \public \ (file-name-sans-extension (file-name-nondirectory buffer-file-name)) \ (String name)\ (if jde-gen-kr () ''n) \{\''n \super(name);\''n \}\' ''n 'n \/**\ ''n \* @return a codeTestSuite/code\ ''n \*/\ ''n \public static TestSuite suite()\ ' (if jde-gen-kr () ''n) \{\''n \TestSuite suite = new TestSuite ();\ ''n ''n \return suite;\ ''n \}\''n'n \/** \ ''n \* Entry point \ ''n \*/ \ ''n \public static void main(String[] args) \ (if jde-gen-kr () ''n) \{\''n \junit.textui.TestRunner.run(suite());\''n \}\''n \}\ \// \ (file-name-sans-extension (file-name-nondirectory buffer-file-name)) ''n) jde-run-option-heap-profile '(nil ./java.hprof 5 20 Allocation objects) jde-compile-option-encoding jde-compile-option-optimize nil jde-project-hooks '(my-jde-project-hook) jde-run-executable-args nil jde-compile-option-verbose nil jde-gen-buffer-templates '((Class . jde-gen-class) (Interface . jde-gen-interface) (Console . jde-gen-console) (Swing App . jde-gen-jfc-app) (Unit Test . jde-gen-junit-test-class)) jde-wiz-get-set-methods-include '(Both) jde-gen-change-listener-template '(' (P \Component name: \) \.addChangeListener(\ jde-gen-method-signature-padding-2 \new ChangeListener\ jde-gen-method-signature-padding-1 \()\ ' (if jde-gen-kr jde-gen-method-signature-padding-3 'n) \{\''n (jde-gen-method-signature \public\ \void\ \stateChanged\ \ChangeEvent e\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n \}\ jde-gen-method-signature-padding-2 \);\''n''n') jde-run-option-classpath nil jde-devel-debug nil jde-gen-mouse-listener-template '((end-of-line) ' (P \Component name: \) \.addMouseListener(\ jde-gen-method-signature-padding-2 \new MouseAdapter\ jde-gen-method-signature-padding-1 \()\ ' (if jde-gen-kr jde-gen-method-signature-padding-3 'n) \{\''n (jde-gen-method-signature \public\ \void\ \mouseClicked\ \MouseEvent e\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n
ant and JDEE prj.el files
I was wondering if anyone had done any work on integrating JDE prj.el files and ant. I would quite like JDEE to pick up various options (well mostly the classpath!) as it has been set by ant. The calculation of this in ant is currently fairly involved, and its a pain to have to duplicate this in the JDEE files. If not, I may have a go myself, if I can find the time. I can think of two main possibilities 1) Use one of ANT's FilterReader rules to do some sort of regexp matching on the prj.el file. This should work, except that the prj.el file will have to be manually reloaded, if point is currently within the project (which is quite likely). 2) Use an exec to launch gnuclient, and run custom-set-value or some such some, to directly change the value. Of course then the user will have to manually save the prj.el file. Of course, gnuclient could do that, but this might be undesirable if the user has manually change over variables that the do not want saving. Also this sort of assumes that point is currently within the project, or the wrong project file will get changed. I'm sort of leaning toward the former. Has anyone done something similar? Any one got opinions? Phil
AW: jde-global-classpath too long?!
Hi, I did a little debugging and tracked the crash down to this: In 'jde-expand-classpath if jde-expand-classpath-p!=nil JDE passes the huge classpath I'm having to XEmacs' 'file-exists-p function which then causes the crash. Now I'm not sure if this is wanted behaviour to pass all of the classpath to the 'file-exists-p function or not. Anyway, as a workaround I set jde-expand-classpath-p to nil and JDE works again (for me) ;-) Cheers, Christian Schmitt -Ursprungliche Nachricht- Von: Christian Schmitt [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 19. Marz 2003 09:31 An: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Betreff: jde-global-classpath too long?! Please enter the details of your bug report here In our project the jar files moved one folder down in the file system. Since then XEmacs crashes whenever I try to do anything that involves usage of the classpath, i.e. opening a BSH buffer or doing JavaDoc generation. Also typing C-c C-v C-y crashes XEmacs big time. I'm suspecting it's got something to do with the length of the jde-global-classpath variable. When I shorten it to only one or two jar files JDE works OK. I'm sorry that I can't include a stacktrace, but when XEmacs crashes it opens a console window starts to type something and then it closes again before I have a chance to copy the contents. Thanks for your time and help. Christian Schmitt Lot's of system info deleted/
jde-open-class-at-point on import statements
Hello, The behavior of jde-open-class-at-point (bound do C-c C-v C-y) is strange when the point is on the following statement: import java.util.Collection; ..^ Point here It just issues a message saying Can not parse the thing at point! I tried a little bit of debugging, and discovered that it tries to interpret the leading prefix (here java.util) as the name of a class, just as if we had a statement like : ClassName instanceName; I'm using JDE 2.3.2. Is this a known bug with a related fix? If not, I'll fill a bug report. Bye /Herv -- Email : [EMAIL PROTECTED] Herv BITTEUR Office : +33 1.34.03.01.12 EMEA IT Architect Mobile : +33 6.86.49.04.14 __ Fax: +33 1.34.03.03.06 / __// / // \ _\_ \/ / // / / SUN Microsystems FRANCE \___/\__//_/_/ 13, avenue Morane Saulnier Microsystems 78142 Vlizy cedex France
Re: jde-open-class-at-point on import statements
Herve == =?windows-1252?Q?Herv=E9 Bitteur?= windows-1252 writes: Herve Hello, Herve The behavior of jde-open-class-at-point (bound do C-c C-v Herve C-y) is strange when the point is on the following statement: Herve import java.util.Collection; ..^ Point Herve here Herve It just issues a message saying Can not parse the thing at Herve point! Herve I tried a little bit of debugging, and discovered that it Herve tries to interpret the leading prefix (here java.util) as Herve the name of a class, just as if we had a statement like : As a related point this also happens in full qualified names within the class rather than in the imports
jde-global-classpath too long?!
Christian Schmitt writes: Please enter the details of your bug report here In our project the jar files moved one folder down in the file system. Since then XEmacs crashes whenever I try to do anything that involves usage of the classpath, i.e. opening a BSH buffer or doing JavaDoc generation. Also typing C-c C-v C-y crashes XEmacs big time. I'm suspecting it's got something to do with the length of the jde-global-classpath variable. When I shorten it to only one or two jar files JDE works OK. You have set jde-global-classpath incorrectly. You have set it to be a string of semicolon;separated paths. It's supposed to be a list of strings with each string being a path, i.e. '(path1 path2) not '(path1;path2) This is specified in the doc for jde-global-classpath: Specify a common classpath for compile, run, and debug commands. Use this variable if you want to the JDE to use the same classpath for compiling, running,and debugging an application. Note that the value of this variable is a list of strings, each of which specifies a path. The JDE converts this list to a colon- or semicolon-separated list before inserting in the compiler or vm command line. - Paul
Adding -c option to checkstyle for 3.0
Checkstyle 3.0 is out and now accepts a -c file option for the xml configuration file. I've hacked this option into jde-checkstyle.el attached to this message. I'm not a jde/defcustom expert so it probably needs reworking, but I hope it is useful. Thanks for JDEE!;;; JDE-CHECKSTYLE.EL --- Checkstyle interface for JDE ;; $Revision: 1.9 $ $Date: 2002/12/21 09:06:22 $ ;; Copyright (C) 2001, 2002 Markus Mohnen and Paul Kinnucan ;; Authors: Markus Mohnen and Paul Kinnucan ;; Maintainers: Markus Mohnen and Paul Kinnucan ;; Created: 06 Jun 2001 ;; ;; ;; Keywords: Java coding standard checker Emacs ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; A copy of the GNU General Public License can be obtained from this ;; program's author (send electronic mail to ;; ) or from the Free Software ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;; LCD Archive Entry: ;; jde-checkstyle|Markus Mohnen| ;; |Checkstyle interface for JDE ;; |$Date: 2002/12/21 09:06:22 $|$Revision: 1.9 $|~/packages/jde-checkstyle.el ;;; Commentary: ;;; This package provides an interface from JDE (see ;;; http://jde.sunsite.dk/) to Oliver Burn's CheckStyle (see ;;; http://checkstyle.sourceforge.net/) a development tool ;;; to help programmers write Java code that adheres to a coding ;;; standard. ;;; Installation: ;; ;; Put this file on your Emacs-Lisp load path and add following into your ;; ~/.emacs startup file ;; ;; (require 'jde-checkstyle) ;;; Usage: ;; ;; M-x `jde-checkstyle' to check the java file in the current buffer. ;; ;;; Customization: ;; ;; M-x `jde-checkstyle-customize' to customize all the jde-checkstyle options. ;;; Code: (require 'jde-compile) (if (fboundp 'jde-build-classpath) nil (require 'jde-run) (defalias 'jde-build-classpath 'jde-run-build-classpath-arg) ) (defconst jde-checkstyle-version 2.3) (defgroup jde-checkstyle nil JDE Checkstyle Options :group 'jde :prefix jde-checkstyle-option-) (defcustom jde-checkstyle-class com.puppycrawl.tools.checkstyle.Main *Java checker class. Specifies the class of the the program to be used to check the source in the current buffer. The default is the checkstyle program. :group 'jde-checkstyle :type 'string) (defcustom jde-checkstyle-classpath nil *Specify paths of classes required to run the jde-checkstyle application. The JDE uses the specified paths to construct a -classpath argument to pass to the Java interpreter. This option overrides the `jde-global-classpath' option. :group 'jde-checkstyle :type '(repeat (file :tag Path))) (defcustom jde-read-checkstyle-args nil *Specify whether to prompt for additional checker arguments. If this variable is non-nil, the jde-checkstyle command prompts you to enter additional checker arguments in the minibuffer. These arguments are appended to those specified by customization variables. The JDE maintains a history list of arguments entered in the minibuffer. :group 'jde-checkstyle :type 'boolean) (defvar jde-interactive-checkstyle-args String of checker arguments entered in the minibuffer.) (defvar jde-interactive-compile-arg-history nil History of checker arguments entered in the minibuffer.) (defcustom jde-checkstyle-properties-file *Path of file that specifies checkstyle options. :group 'jde-checkstyle :type 'file) (defcustom jde-checkstyle-xml-file *Path of file that specifies checkstyle xml options. :group 'jde-checkstyle :type 'file) (defcustom jde-checkstyle-option-member-format ^[a-z][a-zA-Z0-9]*$ *Regular expression that specifies the format of nonstatic nonpublic member variables. :group 'jde-checkstyle :type 'regexp) (defcustom jde-checkstyle-option-public-member-format ^f[A-Z][a-zA-Z0-9]*$ *Regular expression that specifies the format of public member variables. Default example: public int fCMPField; :group 'jde-checkstyle :type 'regexp) (defcustom jde-checkstyle-option-constant-format ^[A-Z](_?[A-Z0-9]+)*$ *Regular expression that specifies the format of final static variables. Default example: public static final int MAX_ROWS = 2; :group 'jde-checkstyle :type 'regexp) (defcustom jde-checkstyle-option-static-format ^[a-z][a-zA-Z0-9]*$ *Regular expression that specifies the format of static variables. Default example: private static int numCreated = 0; :group 'jde-checkstyle :type 'regexp) (defcustom jde-checkstyle-option-todo-format TODO: Regular expression that specifies the format of to-do comments. :group 'jde-checkstyle :type 'regexp) (defcustom