1 Feb 2003 03:12
Bug: (void-variable jde-ant-interactive-args-history)
Elo <elo <at> drizzle.com>
2003-02-01 02:12:39 GMT
2003-02-01 02:12:39 GMT
Description:
I just began using Ant with the JDEE. I encountered the stack trace
below when I enabled the "Jde Ant Read Args" option in the customization
buffers. The argument history is not initialized for the first attempted
jde-ant-build and the stack trace is the result. I went and hacked my
prj.el file as seen below to include a setq that initializes the variable to a
list containing the null string. That fixed the problem.
I'm not ready to take the plunge and try to delve JDEE lisp code and make a
better fix with my 7 years rusty CSC301 Scheme memories,
. And the
error could be a configuration error on my part.
. And the
error could be a configuration error on my part.Hope this is the right place to put this post,
Elo
ps. I did try searching the list archive for this issue and did not
see it, which is why I went ahead with this post.
Backtrace:
Debugger entered--Lisp error: (void-variable
jde-ant-interactive-args-history)
(nth 0 jde-ant-interactive-args-history)
(read-from-minibuffer "Additional build args: " (nth 0 jde-ant-interactive-args-history) nil nil (quote (jde-ant-interactive-args-history . 1)))
(setq interactive-args (read-from-minibuffer "Additional build args: " (nth 0 jde-ant-interactive-args-history) nil nil (quote ...)))
(if jde-ant-read-args (setq interactive-args (read-from-minibuffer "Additional build args: " ... nil nil ...)))
(let (buildfile history target interactive-args) (setq buildfile (jde-ant-interactive-get-buildfile)) (setq history (jde-ant-get-from-history buildfile)) (if jde-ant-read-target (if jde-ant-complete-target ... ...)) (jde-ant-add-to-history buildfile history) (setq target (jde-ant-escape target)) (if jde-ant-read-args (setq interactive-args ...)) (setq jde-ant-interactive-buildfile buildfile) (list buildfile target interactive-args))
call-interactively(jde-ant-build)
jde-build()
* call-interactively(jde-build)
(nth 0 jde-ant-interactive-args-history)
(read-from-minibuffer "Additional build args: " (nth 0 jde-ant-interactive-args-history) nil nil (quote (jde-ant-interactive-args-history . 1)))
(setq interactive-args (read-from-minibuffer "Additional build args: " (nth 0 jde-ant-interactive-args-history) nil nil (quote ...)))
(if jde-ant-read-args (setq interactive-args (read-from-minibuffer "Additional build args: " ... nil nil ...)))
(let (buildfile history target interactive-args) (setq buildfile (jde-ant-interactive-get-buildfile)) (setq history (jde-ant-get-from-history buildfile)) (if jde-ant-read-target (if jde-ant-complete-target ... ...)) (jde-ant-add-to-history buildfile history) (setq target (jde-ant-escape target)) (if jde-ant-read-args (setq interactive-args ...)) (setq jde-ant-interactive-buildfile buildfile) (list buildfile target interactive-args))
call-interactively(jde-ant-build)
jde-build()
* call-interactively(jde-build)
prj.el contents:
;; ${CODE_SRC}, etc. are Windows environment variables set to F:\code\src,
etc.
(jde-project-file-version
"1.0")
(jde-set-variables
'(jde-javadoc-gen-destination-directory "${CODE_DOCS}")
'(jde-ant-enable-find t)
'(jde-global-classpath (quote ("${CODE_CLASSES}")))
'(jde-compile-option-directory "${CODE_CLASSES}")
'(jde-build-function (quote (jde-ant-build)))
'(jde-sourcepath (quote ("${CODE_SRC}")))
'(jde-ant-read-args t))
(jde-set-variables
'(jde-javadoc-gen-destination-directory "${CODE_DOCS}")
'(jde-ant-enable-find t)
'(jde-global-classpath (quote ("${CODE_CLASSES}")))
'(jde-compile-option-directory "${CODE_CLASSES}")
'(jde-build-function (quote (jde-ant-build)))
'(jde-sourcepath (quote ("${CODE_SRC}")))
'(jde-ant-read-args t))
;; Hack. jde-ant-build requires an initial value and it backtraces
without this.
(setq jde-ant-interactive-args-history '(""))
(setq jde-ant-interactive-args-history '(""))
Host platform: Windows XP Home Edition.
JDEE version: 2.3.2
Emacs version: 21.2.1
RSS Feed