Re: Problems debugging files with more than 1000 lines.
Morten / Datagruppen MultiMED [EMAIL PROTECTED] writes: man, 2004-11-22 kl. 13:31 skrev Morten: man, 2004-11-22 kl. 13:24 skrev Paul Kinnucan: It's possible there is a regression. I will take a look this evening to see if I can reproduce the problem. Just to be sure, which debugger are you using? The JDEE's interface to jdb or JDEbug? CUT I'm using the jdb. I noticed that in the code, it checks for , .. and replaces it with . This will definetely cause the problem. I can change the code to look for ., but I wonder if there are any other characters or a better way of doing this. Javier However, in my locale, lines past 999, are /not/ shown as : 1,204 .. they're show as 1.204 as we use , in fractional numbers. Eg. in danish, 1 is 1,5 not 1.5 .. so 1,204 would be between the first and the second line. Now in regex, . matches any char, so I guess it needs to be escaped with \ or something? (I am not proficient with lisp or elisp). Morten . -- Javier S. Lopez Software Developer Forum Systems, Inc. 95 Sawyer Road, Suite 110, Waltham, MA 02453 http://www.forumsys.com The information contained in this electronic mail and any attached document is the confidential and proprietary business information of Forum Systems, Inc. It is intended solely for the addressed recipient listed above. It may not be distributed in any manner without the express written consent of Forum Systems, Inc.
Re: Buffer is read-only: #buffer *compilation*
Anderson, Timothy K [EMAIL PROTECTED] writes: Hi, Using GNU Emacs CVS, JDE 2.3.4, CEDET 1.0beta3b. When trying to compile code with C-C C-V C-C, I am getting the following error: save-excursion: Buffer is read-only: #buffer *compilation* This looks familiar... I had the problem when running the latest emacs from cvs. All the compilation buffers are read only, I don't know what a good fix for this is. I just changed the compile.el file to avoid making the buffers readonly. But we probably need a better fix for this. Javier This happens every time - I think I have tried almost every combination of customize variables (at least, it feels that way). Has anyone else seen this? What should I do to find the cause? Thanks for any help. Tim Anderson CONFIDENTIALITY This e-mail and any attachments are confidential and also may be privileged. If you are not the named recipient, or have otherwise received this communication in error, please delete it from your inbox, notify the sender immediately, and do not disclose its contents to any other person, use them for any purpose, or store or copy them in any medium. Thank you for your cooperation. -- Javier S. Lopez Software Developer Forum Systems, Inc. 95 Sawyer Road, Suite 110, Waltham, MA 02453 http://www.forumsys.com The information contained in this electronic mail and any attached document is the confidential and proprietary business information of Forum Systems, Inc. It is intended solely for the addressed recipient listed above. It may not be distributed in any manner without the express written consent of Forum Systems, Inc.
Re: Best practices for setting up project file
Jesper Holmberg [EMAIL PROTECTED] writes: I feel that I am not using all the features of JDEE to the maximum. More specifically I seem to have problems setting up my environment so that 1) JDEE finds everything it needs to do it's magic stuff and 2) I don't have to write a lot of project details when I start a new project. I thus wonder if people could share some of their tips how they go about setting up a new project. Here is what I do so far: I always start a new project with this basic file structure: . | - build.xml - lib - src | - project | - prj.el - MainClass.java I use ant to bild my projects. Now, the prj.el typically contains the following: (jde-project-file-version 1.0) (jde-set-variables '(jde-project-name project) '(jde-ant-enable-find t) '(jde-global-classpath (quote (~/src/fasade/project/lib/Library1.jar) (~/src/fasade/project/lib/Library2.jar))) '(jde-run-working-directory ~/src/fasade/project/) '(jde-build-function (quote (jde-ant-build))) '(jde-sourcepath (quote (~/src/fasade/project/src/))) '(jde-run-application-class project.MainClass) '(jde-ant-working-directory ~/src/fasade/project/)) My questions: 1. Is it possible to set some sort of variable so that I don't have to write ~/src/fasade/project everywhere? I can't set this as an environment variable, since it is different for every project. Not sure about this. 2. Ant picks up any jar file put in the lib directory and adds it to the classpath through lib/**/*.jar. Is there anything similar which can be set for JDEE so that I don't have to explicitly name every jar-file I wan't to include? jde-global-classpath will pick up any jar/zip file in a directory set up in jde-lib-directory-names if jde-expand-classpath-p is enabled. 3. Is the placing of the prj.el down in the src-tree the correct one, or should I rather put it in the project root? I usually keep it at the top of the project. In my case am working with similar branches of the same tree, so I just copy the prj around. Another advantage is that relative path works much better. i.e set the global classpath to ./lib Javier TIA, Jesper --
Re: Ant needs JAVA_HOME for compilation
Hi Steinar, From your information I am making the following assumption. You are using the default jde-ant-invocation-method, which is script. The idea with the script method is that you have setup ANT previously in your system, i.e you can run it from a shell or command prompt. Then jde-ant in emacs works seemlessly. The reason I mention this is that ANT installation requires ANT_HOME and JAVA_HOME to be set. Now to your question. I could change the jde-ant code to set the JAVA_HOME environment to the current jde-jdk-registry setting. I don't think this is the correctly place to do it. My suggestion would be to set the JAVA_HOME variable as part of the jde-jdk-registry. And that would fix the problem. Paul: If I recall correctly I suggested this before. It seems to me like the correct thing to do but I don't know if users will like jde mocking with their environment variables. Any thougths? Javier Steinar Bang [EMAIL PROTECTED] writes: Platform: Intel PII, debian sarge testing/unstable Blackdown j2sdk 1.4.0.99beta-1, ant 1.5.4-3, jde 2.3.2-3, emacs20 20.7-13.1 Java compilation fails in ant, unless I've set the JAVA_HOME in the environment before starting emacs. Is there a way to make it pick up the classpath to the current JDK in the jde-jdk-registry setting? From looking at the jde-ant.el source, I thought setting jde-ant-use-global-classpath to t would help, but it didn't. Any hints and tips appreciated! Thanx! - Steinar --8-- Details follows --8--- This is the customized jde-jdk-registry setting from ~/.emacs: '(jde-jdk-registry (quote ((1.4.0.99beta-1 . /usr/lib/j2se/1.4) This is the prj.el file for the project: (jde-project-file-version 1.0) (jde-set-variables '(jde-ant-enable-find t) '(jde-build-function (quote (jde-ant-build))) '(jde-ant-use-global-classpath t)) This is the output from ant: cd /home/sb/cvs/webapps/shoppe/src/model/ ant -Dant.home= -buildfile /home/sb/cvs/webapps/shoppe/build.xml -emacs Buildfile: /home/sb/cvs/webapps/shoppe/build.xml prepare: compile: Compiling 1 source file to /home/sb/cvs/webapps/shoppe/${home}/webapps/shoppe/WEB-INF/classes BUILD FAILED file:/home/sb/cvs/webapps/shoppe/build.xml:77: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK Total time: 16 seconds Compilation exited abnormally with code 1 at Wed Dec 31 14:22:28 --
Re: jde-ant-program
Paul Kinnucan [EMAIL PROTECTED] writes: Phillip Lord writes: Javier == Javier S Lopez [EMAIL PROTECTED] writes: Javier I have heard people wanting the path normalized and other Javier people not wanting it normalized (i.e. me). Javier I think to suite everyone I should probably add a toggle for Javier normalization that is off by default. If people want Javier jde-ant-program normalize they can toggle it. That should Javier cover all the cases. This is a solution, but it still leaves an inconsistent user interface. Why do people want it normalised? Can their requirements be achieved in some other way? It would just be nicer if it could all work automatically. Why not invoke jde-normalize-path only if jde-ant-program is a path, i.e., contains a forward or backslash? This should work for all cases. You would not have to distinguish between ant and not ant. Paul This sounds good, it takes care of most cases. Javier --
Re: Executing an ANT process from Java.
You can take a look at jde.util.AntServer It uses the main method to pass the arguments and sets up a SecurityManager to avoid ANT from killing the app. Note, this is exactly what the ANT developers say not to do in their documentation. (Calling their API from main) The other thing you are going to see is the use of reflection this is done to allow compatability between JDK versions. So can probably ignore this and reference it directly. Javier Joseph Campbell [EMAIL PROTECTED] writes: Someone on the ANT users list pointed me in the directino of this project for a source of someone who has embedded ANT into their project. I have need to execute an ANT process from java and am looking for someone who has done it. Can you provide any assistance on this topic? Thanks, Joe Campbell -- I wonder if there is anyone in the world who works harder at anything than American school kids work at popularity. Navy SEALs and neurosurgery residents seem slackers by comparison. - Paul Graham - Joseph Campbell | EMAIL: [EMAIL PROTECTED] Staff Consultant | URL: www.inventa.com Inventa Technologies | PH:(856)914-5200 | PGER: (888)454-0876 - --
Re: Code completion fails when type cast
Schmitt, Christian (ext.) [EMAIL PROTECTED] writes: Sorry. This is a known drawback of the parsing scheme that JDE uses. For casting to work you need the space. Javier Hi, I haven't been following the list too close lately, so I'm not sure whether this has already come up or not. Suppose this piece of code: ArrayList al = new ArrayList(); al.add(Hello World!); String hello = (String)al. Now with point after the period on the third line I press C-c C-v C-. and get No completion at this point :-( However when I alter the third line to read: String hello = (String) al. (note the extra space after (String)) it works quite OK. Sine I like the coding style of the first example better I'd like JDEE to complete there too. Cheers, Christian Schmitt P.S.: After a couple of weeks of learning I must say: JDEE rocks!. Thanks for a great product. -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453 The information contained in this electronic mail and any attached document is the confidential and proprietary business information of Forum Systems, Inc. It is intended solely for the addressed recipient listed above. It may not be distributed in any manner without the express written consent of Forum Systems, Inc.
Re: Introspection based Java class browser....also demonstrates alittle bit of java and lisp integration...
Sprenger, Karel [EMAIL PROTECTED] writes: Hello, [...] Is this a semantic problem? No. Completion looks for the logger class type by parsing the current java file. (jde-parse-declared-type-of) The method is not smart enough to look for it in the super class or classes within the same package. I will take a look at it later, it should be straightforward to use semantic to add the functionality to look for the variable in the super class. Javier
Re: Compile window watching
M-x compilation-scroll-output t. Javier James Higginbotham [EMAIL PROTECTED] writes: Hi, Anyone have a hook or an idea for how to craft a hook to ensure that the compile buffer follow the scrolling text? Right now, I have to switch to the buffer and put the cursor at the end to get the buffer to track all new text appended to the buffer. Also, any ideas on doing a new frame ala the JDEbug frame for compilation, so that it doesn't kill your custom frame splits you work so hard for (i.e. a buffer that will always be visible in another frame so it doesn't break my current frame's setup..) Thanks, James --
Re: JDEbug and LinkedList
Troy Daniels [EMAIL PROTECTED] writes: Hello, There appears to be a bug in JDEbug regarding circular references. I was trying to look at a java.util.LinkedList. The implementation in my JDK uses a class like the following: class LLNode { Object element; LLNode next; LLNode previous; } where next and previous point to the next and previous elements of the list. Looking at the first element was fine. I clicked on the reference to the first LLNode, and expanded element. When I tried to look at the second element by expanding next, the mechanism to presever the expanded state imploded. It expanded the LLNode for next, then next.previous, then next.previous.next, and so on, looping between those two two objects until it hit some iteration limit. As a result, I couldn't look at any local variables. It apparently even failed to set up the properties so that I could close the objects. This persisted through exiting the debugger and starting a new run. In general, the mechanism is good and user full, but is there a way to turn if off in cases like this? No. Fixing this has been in my todo for a while. The mechanism caches the name of the variable, in order to know what to open. This works for most cases, but there a few cases, like the linked list and the detail cause within exceptions that causes the behavior. The cache name should include the id of the object. That would avoid the recursion. If I get the chance I will try to patch this, before the next release. Javier Troy Troy Daniels [EMAIL PROTECTED] 781-273-3388 x218
Re: problems finding method definition
There is a bug in the code. I just fixed the bug in cvs, if you are runnning the latest feel free to grab a the new version jde-open-source.el. You might be able to grab the file even if you are not running the latest, just check that your version of jde-open-source.el is 1.8. Javier Raul Acevedo [EMAIL PROTECTED] writes: Sometimes JDE can't find the method definition, when that method is defined in a parent class. For example: SomeClass.java: public class SomeClass { public void someMethod() { Foo f = new foo(); f.doFooThing() f.doParentClassThing(); } } ParentClass.java: public class ParentClass { public void doParentClassThing() { ... } } Foo.java: public class Foo extends ParentClass { public void doFooThing() { ... } } If I put the cursor over f.dooFooThing(), C-x C-v C-g will find the method definition just fine. If I put the cursor over f.doParentClassThing(), the buffer for Foo.java will get displayed, and I'll get a dialog box for Which class? which shows java.lang.Object and org.omg.CORBA.Object as choices (apparently I have CORBA classes in my CLASSPATH, and it is just showing all possibilites for an Object class). Obviously what should happen is that JDE takes me to ParentClass.java and the definition of doParentClassThing. Any ideas? Raul -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: ANT compile don't parse errors
Gross Trebut, Rainer [EMAIL PROTECTED] writes: Grab jde-compile.el and jde-ant.el from the repository. http://cvs.sunsite.dk/viewcvs.cgi/jde/lisp/ I have fixed both of the problems. Javier Hi all: I am using ant to compile proyects which are based on the Jakarta/Turbine environment. If I compile using the JDE my *compilation* Buffer fills up with the ant output and disapears when finished. (I allready read that I am not the only one with this problem and I am considering changing the mentioned Hook) But I do have another problem and this is that the only error recoginzed by the *compilation* Buffer is the last one wich indicates a non existing problem in the build.xml line 144. All the other errors generated by the javac compiler are ignored and I am not able to jump to these errors to correct the problem. I added my *compilation* buffer output (I reduced it a bit by adding '...' at some places). I also tried to change the regular expresion used to parse the errors and ended up with this simples version which surely maches the given error mesages but even with this regexp they are not recongized in the *compilation* buffer. (\([^[]+\[javac\]\) \([a-zA-Z]:[^:( ]*\):\([0-9]+\): 2 3) Any help would be apreciated. Thanks Rainer Gross *compilation* Buffer follows: cd c:/user/Rainer_Gross/Proyectos/.../datatypes/ C:\user\Rainer_Gross\bin\Ant\bin\ant.bat -Dant.home=c:/user/Rainer_Gross/bin/Ant -buildfile c:/user/Rainer_Gross/.../Dev/build/build.xml Buildfile: c:\user\Rainer_Gross\...\Dev\build\build.xml check_for_optional_packages: env: [echo] build.compiler = classic ... [echo] prepare: compile: [javac] Compiling 4 source files to C:\user\Rainer_Gross\Proyectos\SONDAframe\Productos\Plataforma\PrototipoTxManager\Dev\bin\classes [javac] C:\user\Rainer_Gross\\actions\BTUIngresarDireccionParticular.java:44: Return required at end of com.sonda.bancos.SONDAframe.datatypes.SFDataStructure preloadForm(org.apache.turbine.util.RunData, com.sonda.bancos.SONDAframe.datatypes.SFDataStructure). [javac] public SFDataStructure preloadForm(RunData data, SFDataStructure out) [javac] ^ [javac] C:\user\Rainer_Gross\...\actions\BTUIngresarDireccionParticular.java:55: Class com.bambutut.modules.actions.retn not found. ... [javac] 3 errors BUILD FAILED c:\user\Rainer_Gross\\Dev\build\build.xml:144: Compile failed, messages should have been provided. Total time: 2 seconds Compilation finished at Mon Sep 23 09:00:41 -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: ANT compile don't parse errors
Jeff Rancier [EMAIL PROTECTED] writes: Javier, Regarding flagging the build as successful or not, there may be situations when people don't want the customization to disappear? Maybe a customizable list of regular expressions or strings to pass to the jde-ant-set-build-status() function? Also, maybe a customizable duration for the compilation buffer to show? In that case people could write their own hooks. It should be straightforward to use the current hook as an example and expand it. I will add a customizable variable for the duration of the compilation buffer to show. Javier Jeff - Original Message - From: [EMAIL PROTECTED] To: Gross Trebut, Rainer Cc: [EMAIL PROTECTED] Sent: Monday, September 23, 2002 10:23 AM Subject: Re: ANT compile don't parse errors Gross Trebut, Rainer [EMAIL PROTECTED] writes: Grab jde-compile.el and jde-ant.el from the repository. http://cvs.sunsite.dk/viewcvs.cgi/jde/lisp/ I have fixed both of the problems. Javier Hi all: I am using ant to compile proyects which are based on the Jakarta/Turbine environment. If I compile using the JDE my *compilation* Buffer fills up with the ant output and disapears when finished. (I allready read that I am not the only one with this problem and I am considering changing the mentioned Hook) But I do have another problem and this is that the only error recoginzed by the *compilation* Buffer is the last one wich indicates a non existing problem in the build.xml line 144. All the other errors generated by the javac compiler are ignored and I am not able to jump to these errors to correct the problem. I added my *compilation* buffer output (I reduced it a bit by adding '...' at some places). I also tried to change the regular expresion used to parse the errors and ended up with this simples version which surely maches the given error mesages but even with this regexp they are not recongized in the *compilation* buffer. (\([^[]+\[javac\]\) \([a-zA-Z]:[^:( ]*\):\([0-9]+\): 2 3) Any help would be apreciated.Thanks Rainer Gross *compilation* Buffer follows: cd c:/user/Rainer_Gross/Proyectos/.../datatypes/ C:\user\Rainer_Gross\bin\Ant\bin\ant.bat -Dant.home=c:/user/Rainer_Gross/bin/Ant -buildfile c:/user/Rainer_Gross/.../Dev/build/build.xml Buildfile: c:\user\Rainer_Gross\...\Dev\build\build.xml check_for_optional_packages: env: [echo] build.compiler = classic ... [echo] prepare: compile: [javac] Compiling 4 source files to C:\user\Rainer_Gross\Proyectos\SONDAframe\Productos\Plataforma\PrototipoTxManager\Dev\bin\classes [javac] C:\user\Rainer_Gross\\actions\BTUIngresarDireccionParticular.java:44: Return required at end of com.sonda.bancos.SONDAframe.datatypes.SFDataStructure preloadForm(org.apache.turbine.util.RunData, com.sonda.bancos.SONDAframe.datatypes.SFDataStructure).[javac] public SFDataStructure preloadForm(RunData data, SFDataStructure out) [javac] ^ [javac] C:\user\Rainer_Gross\...\actions\BTUIngresarDireccionParticular.java:55: Class com.bambutut.modules.actions.retn not found.... [javac] 3 errors BUILD FAILED c:\user\Rainer_Gross\\Dev\build\build.xml:144: Compile failed, messages should have been provided.Total time: 2 seconds Compilation finished at Mon Sep 23 09:00:41 -- Javier S. Lopez [EMAIL PROTECTED] Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453 -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: ant build
Alex Ott [EMAIL PROTECTED] writes: Hello i found few errors in ant build system. first -- jde-ant-build not work with empty targer. This has been fixed. If you are using jde 2.2.9beta12 you can grab the latest jde-ant.el from the repository (http://cvs.sunsite.dk/viewcvs.cgi/jde/lisp/jde-ant.el). second -- ant run with java, using ANT_HOME. but in my case i install ant from rpm and not have *.jar at $ANT_HOME/lib May will better run ant or ant.bat? You could use the script method, or find the place where the jar files were installed. And set ANT_HOME or jde-ant-home to that directory. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: ant build
The compilation is running the hook jde-compile-finish-kill-buffer. This hook looks for the strings exited abnormally or BUILD FAILED to be able to tell if the compilation ended up with errors or not. Since the compilation buffer is disappearing you probably don't have any of the strings. If you tell me what error string you get in your compilation buffer I will add it to the hook or fix the regexp. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: ant build
hmm... This is odd. I don't see this on my system. To work around the problem while a solution is found you can remove the jde-compile-finish-kill-buffer from the jde-ant-build-hook Could you send me a bug report on this, using the jde utility (i.e. jde-submit-problem-report) Please include the ant version as well, thanks. Javier
Re: Problems with ant
Ulrich Obst [EMAIL PROTECTED] writes: Hi! I just downloaded the latest version of jde and I have some problems with ant build functions: 1. If Jde Ant Read target option is disabled I get the message Wrong type argument: arrayp, nil when I try to build my project. This has been fixed already, it will be included in the next release. 2. Jde requires either the ANT_HOME environment variable or the Jde Ant Home Option to be set to the ant home directory. But on a well configured (UNIX) System ant can be called simply with ant without any additional settings. JDE should be able to call ant in this way too if no home directory is configured. This requirement is a bug. JDEE requires ANT_HOME o jde_ant_home when trying to use the java or the ant server invocation method. When using the script method as you mentioned above there is no need for it. 3. If Jde Ant Complete Target Option is enabled, jde searches the build.xml file in the wrong directory. I set Jde Ant Buildfile to ./build.xml, because it is in the same directory as the project file, but jde always searches it in the directory of the current java buffer. I believe this is the intended behavior. Kevin Burton might be able to expand on this. JDE starts at the current directory and works its way up to find the proper build file, it does not take the current project file into account. Javier Bye ulli -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 788-4206 95 Sawyer St., Suite 110, http://www.forumsys.com Waltham, MA 02453
Re: Extending abstract class?
Andy Piper [EMAIL PROTECTED] writes: If I use the extend abstract class wizard to try and extend java.net.SocketImpl it insteads defines the functions from SocketOptions (implemented by SocketImpl). This seems like a bug but I don't know whether it is XEmacs specific. JDE 2.2.9beta10 andy Thanks, the Java class getting the abstract methods was not including protected methods. A fix will be provided in the next release. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: jde-compile
Jeff Rancier [EMAIL PROTECTED] writes: Hello All. Is there any customization to have jde-compile to automatically save the source file if not saved? Yes, set compilation-ask-about-save to nil. Javier Thanks, Jeff - Jeffery B. Rancier Softechnics, a METTLER TOLEDO company 7063 Interstate Island Rd. Syracuse, NY 13209 http://www.softechnics.com http://www.mt.com - Live as if you were to die tomorrow. Learn as if you were to live forever. - M.K. Gandhi -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Has jde-open-source.el been integrated into JDE?
Roland [EMAIL PROTECTED] writes: Hello, the function jde-show-class-source is not working correctly even after I set my source directories: (setq jde-db-source-directories (quote (d:/src/java/ d:/src/webapps/sharkfin/Web-inf/classes))) What is wrong? Do I need to set up etags? What about jde-open-source? I found that function in the archives: http://www.mail-archive.com/jde@sunsite.dk/msg03887.html Has that already been integrated into jde? Yes, it is call jde-open-class-at-point. Javier Thanks for any answers... Roland -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Compile all open Java buffers
Jonathan Meeks [EMAIL PROTECTED] writes: Does anyone know a JDEE command that compiles all open Java buffers that are in the current project? Something like C-c C-v C-c, except that it finds and compiles multiple files... No. Make and Ant are used for this purpose. Javier Thanks in advance, Jonathan -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: 2.2.9beta10 problem w/ jde-help-symbol
Thank you for the bug report. I have fixed the problem. Feel free to grab the latest copy from the repository. http://cvs.sunsite.dk/viewcvs.cgi/jde/lisp/ Javier Hervé Bitteur [EMAIL PROTECTED] writes: Hi, Calling jde-help-symbol (C/cvw) opens a browser window on the proper javadoc file, based on your defined docsets list pointed by jde-help-docsets variable. Fine. If jde-help-docsets is not defined, you get a warning. Fine. If jde-help-docsets is defined but your class html file is not found (for example, you have just cleaned up your application doc, and not yet regenerated it), you get the following error : wrong type argument: stringp, nil which is rather obscure. It originates in the following statement in method jde-help-show-class-member-doc in file jde-help.el (line 343): (pos (string-match [^/]*$ docfile)) where docfile is nil, so the error. I'm not fluent enough in Lisp, but I would appreciate a more understandable error message, such as No doc found for class foo. Thanks /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 Microsystems78142 Vélizy cedex France -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Problem with Ant target
Vishwanathan SVN [EMAIL PROTECTED] writes: Hi! I am having problems building the following ant targets using the Ant server under JDE Target Name : bobl\codegen The output I get is the following : AntServer output: -Dant.home=C:/Ant -buildfile e:/Main/build.xml -Dbuild=E:/Main/build bobl\codegen // Error: Error parsing input: bsh.TokenMgrError: Lexical error at line 1, column 107. Encountered: \n (10), after : \); It looks like the \ in the target is confusing the bsh interpreter. Yes, '\' were not being escape before being set to the beanshell. Feel free to grab the latest jde-ant.el from the repository. http://cvs.sunsite.dk/viewcvs.cgi/jde/lisp/ Javier P.S. You might need to restart your beanshell, after it fails parsing it gets into some weird state. My environment: Windows 2000 Professional XEmacs 21.4 (patch 6) Common Lisp (Windows) [Lucid] (i586-pc-win32) JDEE 2.2.9beta10 I am attaching my prj.el. Thanks in advance vishy -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: set path for jde-run?
Anagnost, Ted (MED, GEMS-IT) [EMAIL PROTECTED] writes: I don't know if this was received, so I'm sending it again. Hello, In my standalone .bat file I need to set the path (Winnt). How can I configure JDE to set the PATH needed to run? The PATH is one of several properties that I want to set. For example, I want something like this: set PATH=c:\winnt\system32\; set OTHER=...; You need to set an environment variable in the system. Emacs will pick the variables up and so will Jde. In windows NT, you can go to you system properties -Advanced-Environment Variables. Javier java -classpath ... This one you can set an environment variable, but if you work in more than more project it is better to set up jde-global-classpath. Thanks, Ted -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: navigate code completion
Armin Haaf [EMAIL PROTECTED] writes: is it possible to navigate through the code completion window without using the mouse? Yes. You can customize the variable jde-complete-use-menu to nil. The completion will the show up in the minibuffer. This is not included in jde2.2.8, you will have to use the latest beta. Javier Hi, Greetings Armin -- Armin Haaf, mercatis information systems GmbH Marlene-Dietrich-Str. 5 Fon +49 (0) 731 98588 - 615 ___o 89231 Neu-Ulm, GermanyFax +49 (0) 731 98588 - 511_\ _ http://www.mercatis.demailto:[EMAIL PROTECTED] (_)ø(_) -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: JDE java compile fail with Wrong type argument: sequencep, 45 error
Could you tell me what were you trying to complete and the cursor position? i.e. StringBuffer sb; sb.a ^ Javier Tipin Chang [EMAIL PROTECTED] writes: I have problem to compile a java file in JDE using the JDE -- Compile (C-c C-v C-c) menu. The min-window shows the following error message: Wrong type argument: sequencep, 45 and the *Message* buffer shows the problem is from jde-compile-compiler? Please help... Thanks in advance, Ben -- (D:\Utils\emacs-21.1\bin\emacs.exe) Loading font-lock... Loading regexp-opt...done Loading font-lock...done Loading xhtml/xhtml_setup (source)...done Loading d:/utils/emacs-21.1/site-lisp/source-safe...done For information about the GNU Project and its goals, type C-h C-p. Loading image...done Server subprocess exited Loading jde (source)... Loading cl-macs...done Bootstrapping objects...done Loading d:/Utils/emacs-21.1/bin/fns-21.1.1.el (source)...done Defining colors... Loading mule-util...done jde-java-font-lock: building names cache...empty Loading jde (source)...done Loading cl-seq...done Setting JDE variables to startup values... Loading cl-extra...done Loading senator...done (No files need saving) jde-compile-compiler: Wrong type argument: sequencep, 45 Emacs : GNU Emacs 21.1.1 (i386-msvc-nt5.0.2195) of 2001-10-22 on buffy Package: JDE version 2.2.9beta9.1 Required packages: semantic-1.4beta14 eieio-0.17beta3 speedbar-0.13 current state: == (setq jde-gen-session-bean-template '((jde-import-insert-imports-into-buffer (list \javax.ejb.*\ \java.rmi.RemoteException\)) ' (jde-wiz-update-implements-clause \SessionBean\) ' (jde-gen-method-signature \public\ \void\ \ejbActivate\ nil \RemoteException\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n 'n (jde-gen-method-signature \public\ \void\ \ejbPassivate\ nil \RemoteException\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n 'n (jde-gen-method-signature \public\ \void\ \ejbRemove\ nil \RemoteException\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n 'n (jde-gen-method-signature \public\ \void\ \setSessionContext\ \SessionContext ctx\ \RemoteException\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n 'n (jde-gen-method-signature \public\ \void\ \unsetSessionContext\ nil \RemoteException\ ) ' (if jde-gen-kr () 'n) \{\''n \}\''n 'n ') jde-gen-beep '((end-of-line) ' \Toolkit.getDefaultToolkit().beep();\''n') jde-complete-signature-display '(Eldoc) jde-project-name default jde-which-method-format '([ jde-which-method-current ]) jde-run-classic-mode-vm nil jde-complete-unique-method-names nil jde-find-granularity '(Character) jde-javadoc-gen-nodeprecatedlist nil jde-which-method-max-length 20 jde-package-search-classpath-variables '(jde-compile-option-classpath jde-global-classpath) jde-imenu-include-classdef t jde-javadoc-gen-link-online nil jde-gen-cflow-else '((if (jde-parse-comment-or-quoted-p) '(l \else\) '(l ' \else \ (if jde-gen-kr () ''n) \{\''n''r'n \} \''n') )) jde-gen-code-templates '((Get Set Pair . jde-gen-get-set) (toString method . jde-gen-to-string-method) (Action Listener . jde-gen-action-listener) (Window Listener . jde-gen-window-listener) (Mouse Listener . jde-gen-mouse-listener) (Mouse Motion Listener . jde-gen-mouse-motion-listener) (Inner Class . jde-gen-inner-class) (println . jde-gen-println) (beep . jde-gen-beep) (property change support . jde-gen-property-change-support) (EJB Entity Bean . jde-gen-entity-bean) (EJB Session Bean . jde-gen-session-bean)) jde-make-args jde-jdk-registry nil jde-javadoc-gen-destination-directory JavaDoc jde-mode-line-format '(- mode-line-mule-info mode-line-modified
Re: jde-open-class-source from field not classname
Paul Kinnucan [EMAIL PROTECTED] writes: Ralph Jocham writes: Hi All, c-c c-v c-y finds and opens the source from a class. For that you have to have the cursor over the classname. c-c c-v c-. works on a field, which is cool. Is it possible to have the c-c c-v c-y functionality when the cursor is on a field. I guess, since c-c c-v c-. does it already it should be possible. Yes, it is possible. As Paul mentioned, I am working on the integration of the submitted code. The functionality will hopefully be integrated for the next beta release. Javier A JDEE user has already submitted code that opens a source file to the definition of the method or field name at point. This code needs to be integrated more cleanly into the JDE. Javier Lopez has undertaken the integration task. Perhaps he can comment. - Paul -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: JDE New Class Bug (?)
Paul Ebermann [EMAIL PROTECTED] writes: Javier S. Lopez skribis: Paul Ebermann [EMAIL PROTECTED] writes: Javier S. Lopez skribis: This is not going to be true all the time. But IF it is true, it could be choosen? The question is how will jde know which one to choose? You have two interfaces with the same unqualified name, and it is perfectly acceptable to implement either one of them, since it is not require for an interface to be part of the same package to be implemented. If I normally only write --- package de.dclj.paul.collections; class CustomArrayList implements CustomList { } ---, the Compiler would (automatically) choose de.dclj.paul.collections.CustomList, not de.dclj.paul.tools.CustomList. Why the Template-Generator could not behave identically? The template generator works slightly different from the compiler. The compiler uses imports to decide which classes to use. The template generator does not have this advantage. There are no imports to use. So it must be to the user, to decide which one to use. Javier If in the same package (or java.lang) is no so-named Interface, the choose-Dialog is perfect. But that is not very bad, I just got reminded that I forgot to delete the old classfiles (in the tools-Package). Paul -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: problem with auto-completion
Heather Buch [EMAIL PROTECTED] writes: Hello, I don't seem to have much luck getting jde to auto-complete code within my package (though it will auto-complete methods from the current class, this). The beginning of my package name is edu, and it sits in /var/local/https-1.0/https/tomcat/lib/apps/classes As an example, I have a class called DatePatterns. It is in the following directory (which may not be what Tomcat wants, but it's worked ok so far): /var/local/https-1.0/https/tomcat/lib/apps/classes/edu/mit/emcc/util/DatePatterns.class The path to my package is configured in my jde-global-classpath as follows: /var/local/https-1.0/https/tomcat/lib/apps (I have also set it as /var/local/https-1.0/https/tomcat/lib/apps/classes in jde-global-classpath, but no luck) This is the right setting. Set it to this path and restart the beanshell. Check that the beanshell classpath includes that directory /var/.../classes Javier Whenever I try to autocomplete on DatePatterns (or any other in my package, except the one I am currently in), I get this sort of error: Error: // Error: // Uncaught Exception: TargetError : at Line: 295 : in file: unknown file : jde .util .Completion .getClassInfo ( edu.mit.emcc.util.DatePatterns , 0 ) Target exception: java.lang.NullPointerException [2 times] progn: Beanshell eval error. See messages buffer for details. No completion at this point if: Quit Auto-saving...done Press Return to bury the buffer list Any help would be great. Thanks, -- Heather -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: problem with auto-completion
Heather Buch [EMAIL PROTECTED] writes: Javier S. Lopez wrote: Set it to this path and restart the beanshell. Check that the beanshell classpath includes that directory /var/.../classes Hi Javier, I changed my classpath entry and restarted the beanshell (I don't know how to check the beanshell classpath). I now get this: Look at the *bsh* buffer. At the top you will see something like: - cd c:/cygwin/home/jslopez/code/dev/src/com/forumsys/server/process/ c:/j2sdk1.4.0/bin/javaw.exe -classpath [...] bsh.Interpreter BeanShell 1.1a16 - by Pat Niemeyer ([EMAIL PROTECTED]) bsh % --- The classpath is after the -classpath flag. Debugger entered--Lisp error: (error Beanshell eval error. See messages buffer for details.) [...] And here is what I am running: emacs 21.1 eieio-0.17beta3.tar.gz elib.tar.gz jde-beta.tar.gz speedbar-0.14beta2.tar.gz semantic-1.4beta13.tar.gz ecb 1.70 Thanks, Heather If you see this again, restart your emacs. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Ant Server?
Unfortunately, I don't think there is any good documentation about it. 1. To use it you just need to have ant.jar in the classpath that starts the beanshell (bsh).(This is a bug that is going to be fix in the next release) 2. Customize jde-build-function to jde-ant-build. 3. Customize jde-ant-invocation-method to Ant Server. This should get you started. Javier GOUDMAN,PETER (HP-Germany,ex1) [EMAIL PROTECTED] writes: Hi, could someone kindly point me in the correct direction for information regarding the Ant Server. I have searched on Google but without much success. thanks Peter Goudman -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Ant invocation method
If I set this to Script everything is OK. If I set it to Java I get the java usage message (Usage: java [-options] class [args...] etc), I think this is because I'm running on W2k but I have cygwin-bash as my shell and it doesn't like the format of the command. Finally if I try the ant server option, bash starts but the build script doesn't execute (I'm sure there's more information I could give you here but I'm not sure how to get it) For the benefit of everyone else. Problem: Ant server starts and it appears to hang. You will see something like this in the compilation window: --- CompileServer output: -Dant.home=d:/javadev/ant -find build/build.xml --- Cause: The ant.jar is not in the classpath of the beanshell. Resolution: Add ant.jar to jde-global-classpath, or to the environment variable CLASSPATH (whichever are you using) I modified the AntServer code to return a message explaining the problem. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-5406 40 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Field-completion also viy mounted drives?
I'm wondering if the following is possible: We have a SUN Solaris system, where our java-sources reside. These = sources are also compiled to *.class files with the SUN-JDK and reside also onto = the Solaris system. But we want to use JDE with NTEmacs 21.1. onto Windows NT 4.0 and edit = the java-sources onto the SUN-system via SAMBA mounted drives. Ok, editing works fine, no problem. But now i have tried to use the field-completion of the = Windows-NT-JDE/Beanshell with our SUN/Solaris-compiled java-sources. IMHO i have set CLASSPATH onto the NT-system correct so it should find = the class-files. I have also set jde-db-source-directories to the = class-files (is this necessary? Which variable of JDE must point to the compiles class-files = so the method-completion works?). In order for the completion to work correctly check the beanshell path. The *.class must exist in the path of the beanshell when it is started. But sometimes it finds the class and completes correct, sometimes it = don't find it and asks to attempt to import it (after y it finds it), but = sometimes the Beansshell throws an error in jde.util: Expression: = jde.util.Completion.getClassInfo(de.hvb.ha.adapter.bloomberg.BloombergP= arams,0); Error: // Error: // Uncaught Exception: TargetError : at Line: 30 : = in file: unknown file : jde .util .Completion .getClassInfo ( = de.hvb.ha.adapter.bloomberg.BloombergParams , 0 )=20 Target exception: java.lang.NoClassDefFoundError: = javax/ejb/EJBException [2 times] bsh-eval: Beanshell eval error. See messages buffer for details. OK: Should it be possible to complete with NT-beansshell/JDE = SUN/Solaris sources? Yes, you should be able to do it. What can be the reason for the beanshell error above? 1. The class BloombergParams cannot be reach from the beanshell classpath. 2. The class BloombergParams can be reach from the beanshell classpath but it did not exist when the beanshell was started. Javier Thanks in advance! Klaus
Re: Ant invocation method
If I set this to Script everything is OK. If I set it to Java I get the java usage message (Usage: java [-options] class [args...] etc), I think this is because I'm running on W2k but I have cygwin-bash as my shell and it doesn't like the format of the command. Finally if I try the ant server option, bash starts but the build script doesn't execute (I'm sure there's more information I could give you here but I'm not sure how to get it) Use the jde reporting tool. It is better when you reproduce the bug using a minimal .emacs plus the necessary additions to cause the failure. From what you tell me I can't tell what is wrong. I am using w2k and cygwin-bash and the ant server is working fine. I'm happy using Script but what is the preferred option here? The script is fine, but the ant server is usually faster. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: J2SE 1.4
Hi, J2SE 1.4 is out. It has some new keywords (e.g., assert). Is JDE going to support it soon? Regards, Daniel What do you refer by support? I have been using Jdk 1.4 and jde for months. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: J2SE 1.4
Hi, J2SE 1.4 is out. It has some new keywords (e.g., assert). Is JDE going to support it soon? Regards, Daniel What do you refer by support? I have been using Jdk 1.4 and jde for months. I think you need to recompile CompileServer.java with the new java compiler. Daniel :) I modified the CompilerServer to use reflection, so it is not tied in to any particular version of jdk. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: J2SE 1.4
Hi, J2SE 1.4 is out. It has some new keywords (e.g., assert). Is JDE going to support it soon? Regards, Daniel What do you refer by support? I have been using Jdk 1.4 and jde for months. I think you need to recompile CompileServer.java with the new java compiler. Daniel :) I modified the CompilerServer to use reflection, so it is not tied in to any particular version of jdk. Cool! Can you incorporate that into the JDEE? It has been incorporated for 2 months. The latest beta version includes the changes. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: speedbar
To accomplish what you want you can use a function like this (defun switch-to-speedbar() (interactive) (switch-to-buffer-other-frame SPEEDBAR)) and then map that to F4. (global-set-key [f4] 'switch-to-speedbar) I would *highly* recommend that you *not* do that. You will probably encounter very strange behavior and break the speedbar. huh? It only switches to the buffer containing the speedbar what is wrong with that? I have patches to my local speedbar that fix all these problems. Speedbar was just not meant to be run this way. The patches will be incorporated into the Are you saying that speedbar is meant to be access only by clicking on it? main speedbar as soon as the FSF legal stuff is done. I don't use the speedbar, so you might be right. It just strikes me that switching to the buffer could cause very strange behavior that breaks the speedbar. Javier Kevin - -- -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Can completion use members?
Hm.. Doesn't it make sense that completion could include members as well as methods? it does. I am not getting members and found no way to turn them on. Am I missing something? could you give an example of where completion does not include members? Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. (781) 263-540640 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: Problem with jde import
The quick fix, is to use the version of the code that works jde-2.2.9beta5. You can download jde-import.el version 1.11 from the repository. The next beta release will contain a better fix. It updates the code to use efc-option-dialog, a class that abstract out showing the user some options. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. 781-263-541040 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: How to use ANT in JDE
Hi I need to setup ANT as my build tool. I cannot find any documentation on how to use ANT with in JDE. Can someone point me to any documentation or some pointers regarding using ANT in JDE.=20 In the latest beta the only set up needed is to choose jde-build-function to use jde-ant-build If you have ANT already set up to work outside jde that should be enough. You will probably have to change jde-ant-invocation-method to something else beside script.(there is a bug) For earlier versions you have to add (require 'jde-ant) in your .emacs. Then you will be able to follow the steps above. Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. 781-263-541040 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: problems with running jikes
thanks for your reply, however, i thought that is is already set to all? Yes, you are right it was already set, my bad. -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. 781-263-541040 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: problems with running jikes
Okay, I figured out part of the problem. There is a bug in the way that the rt.jar file is appended to the classpath when the classpath is nil. Plus for some reason the classpath is coming nil when it should not. To work around it, set jde-global-classpath to something other than nil. Hope this helps, Javier -- Javier S. Lopez [EMAIL PROTECTED]Forum Systems, Inc. 781-263-541040 Williams St., Suite G20, http://www.forumsys.com Wellesley, MA 02481
Re: autocomplete not working
On Monday 20 August 2001 12:04 pm, Aaron Phillips wrote: Hello, I'm new to jde and xemacs for that matter. I am using linux xemacs with jde. When I try to autocomplete in a java file (C-c C-v C-.) I get the a statusbar message Args out of range: , 0. Any ideas on what could be the cause? What version of the jde are you using? Javier
Re: autocomplete not working
I am using 2.2.7beta3 I remember comming accross this bug before. I think is fixed, either in 2.2.7.1 or in the latest beta 2.2.8beta6 Javier
Re: Wrong type of file error on XEmacs (with solution)
, | (if jde-xemacsp | (set-buffer (cadr (buffer-list))) | (set-buffer (car (buffer-list ` if I change the 'cadr' in the xemacs case to 'car' it works without the error. It seems, that the special case if not needed, or do I overlook something? The above code solved the problems for some XEmacs users. Apparently XEmacs does not seem to be consistent on this. I don't know if this is related to different XEmacs versions or some other customization. Javier