At 02:14 PM 7/18/00 +0100, Nic Ferrier wrote:
>>I have recently noticed that when one sets an option 
>>in jde-run it's almost impossible to get rid of it.
>

It's possible you have a corrupted prj.el file, especially if it was
created with an older version of the JDE. (Newer versions fix the problem,
I think). The corruption is this: the prj.el file has two or more instances
of the (jde-set-variables ...) form that sets the variables to save values,
e.g.,

(jde-set-variables
...
)

(jde-set-variables
...
)

What happens is that when you save variables in the project file, the save
command replaces only the first instance of the form, the one with the new
values. Then, when the prj.el file is reloaded, all the forms get executed
and the last one (with the old settings) wins.

The solution is to delete all but the first (jde-set-variables ...) form in
the prj.el file. This problem should not occur with prj.el files created in
JDE 2.1.9.

- Paul

>More on this.
>
>I have to kill emacs to get the options to recompute. 
>
>Is anybody else having this problem? (see below)
>
>
>The problem seems to me to be on line 610 in jde-run.el.
>
>In the fn jde-run-internal  the (let*) which assigns the list
>prog-args seems to be using lazily evaluation or something because it
>doesn't re-evaluate the option variables after they have been set.
>
>
>Most peculiar.
>
>
>
>How to identify if you have the problem:
>eg: 
>1. set the minimum heap size (jde-run-options-heap-size) to 16Mb. 
>2. now run your app. 
>3. now change the min heap size back to 1Mb
>4. write the project file
>5. unload the java file you're working on
>6. load another java file from the same project
>7. type:
>     C-h v   jde-run-options-heap-size
>    Emacs will tell you that it is ((1 . "megabytes") (16 .
>"megabytes"))
>8. run your app and check the invocation line
>
>
>Does the invocation line include:
>  -xMs 16m
>
>If so you have this problem.
>
>
>Nic
>
>

Reply via email to