Thanks for the help so far. I modified my .emacs file to put the jde
before semantic and speedbar, and took out the expand-file-name function
call. Obviously to no avail.
Here's the rundown on a check of M-x locate library calls:
semantic: /usr/share/emacs/site-lisp/semantic-1.2.1/semantic.elc
speedbar: /usr/share/emacs/site-lisp/speedbar-0.12/speedbar.elc
jde: /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde.el
One extra data point: if I comment out (require 'jde) then xemacs starts
without error, however, I can't use jde...
Has anyone else gotten semantic-1.2.1, speedbar-0.12, and jde-2.2.0 to
play nice on linux?
I also tried byte compiling the jde/lisp directory. It spots nil
variable problem a few times. Here's the output:
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/beanshell.el at
Fri Aug 4 10:25:54 2000
** reference to free variable jde-run-java-vm-w
** reference to free variable jde-run-java-vm
** reference to free variable jde-classpath-separator
** reference to free variable jde-global-classpath
** assignment to free variable comint-prompt-regexp
While compiling toplevel forms:
** assignment to free variable bsh-tq-reply
While compiling bsh-eval-filter:
** reference to free variable bsh-tq-reply
** assignment to free variable bsh-tq-reply
While compiling bsh-eval:
** assignment to free variable bsh-tq-reply
** reference to free variable bsh-tq-reply
While compiling the end of the data:
** The following functions are not known to be defined:
comint-check-proc, jde-find-jde-data-directory,
jde-convert-cygwin-path, jde-run-build-classpath-arg, comint-mode,
save-w32-show-window, comint-exec
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/eieio-comp.el
at Fri Aug 4 10:25:54 2000
While compiling byte-compile-file-form-defmethod:
** reference to free variable filename
While compiling eieio-byte-compile-princ-code:
** byte-code-function-p is an obsolete function; use
compiled-function-p
instead.
While compiling eieio-prin1:
** byte-code-function-p is an obsolete function; use
compiled-function-p
instead.
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/eieio-custom.el
at Fri Aug 4 10:25:54 2000
While compiling eieio-default-superclass::eieio-customize-object:
** variable b bound but not referenced
While compiling the end of the data:
** The following functions are not known to be defined:
overlay-lists, eieio-done-customizing
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/eieio-opt.el at
Fri Aug 4 10:25:55 2000
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/eieio.el at Fri
Aug 4 10:25:55 2000
While compiling defmethod-engine:
** byte-code-function-p is an obsolete function; use
compiled-function-p
instead.
While compiling eieio-rebuild-generic-doc-string:
** byte-code-function-p is an obsolete function; use
compiled-function-p
instead.
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-bug.el at
Fri Aug 4 10:25:56 2000
While compiling toplevel forms:
!! Symbol's value as variable is void ((semantic))
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-compile.el
at Fri Aug 4 10:25:56 2000
While compiling jde-build-path-arg:
** reference to free variable jde-classpath-separator
While compiling jde-get-compile-options:
** reference to free variable jde-quote-classpath
** reference to free variable jde-global-classpath
While compiling jde-compile:
** reference to free variable jde-read-compile-args
** reference to free variable jde-interactive-compile-args
** assignment to free variable jde-interactive-compile-args
** reference to free variable jde-xemacsp
** reference to free variable last-nonmenu-event
** assignment to free variable last-nonmenu-event
** reference to free variable compilation-ask-about-save
While compiling the end of the data:
** The following functions are not known to be defined:
jde-convert-cygwin-path, jde-build-compile-vm-args,
jde-make-compile-command, compile-internal
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-complete.el
at Fri Aug 4 10:25:56 2000
While compiling jde-complete-declared-type-of:
** variable orgpt bound but not referenced
While compiling jde-complete-java-variable-at-point:
** variable start bound but not referenced
** variable varname bound but not referenced
While compiling jde-complete-popup-emacs-completion-menu:
** reference to free variable jde-xemacsp
** variable pos bound but not referenced
While compiling jde-complete-split-by-dots:
** assignment to free variable first
** assignment to free variable second
** reference to free variable first
** reference to free variable second
While compiling jde-complete-find-completion-for-pair:
** assignment to free variable split
** reference to free variable split
While compiling jde-complete-at-point-menu:
** reference to free variable jde-xemacsp
** variable fulllist bound but not referenced
** variable classinfo bound but not referenced
** variable vtype bound but not referenced
While compiling the end of the data:
** The following functions are not known to be defined:
bsh-eval-r, bsh-eval, jde-parse-get-class-at-point,
jde-parse-get-super-class-at-point, jde-parse-declared-type-of
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-db.el at
Fri Aug 4 10:25:56 2000
While compiling toplevel forms:
!! Symbol's value as variable is void ((semantic))
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-dbo.el at
Fri Aug 4 10:25:56 2000
While compiling jde-dbo-init-debug-session:
** reference to free variable jde-dbs-the-debugger
While compiling jde-dbo-vm-start-event:
** reference to free variable process-status
** reference to free variable jde-dbs-the-process-morgue
** reference to free variable jde-dbs-the-process-registry
While compiling jde-dbo-update-locals-buf:
** reference to free variable jde-xemacsp
** reference to free variable thread-id
While compiling jde-dbo-breakpoint-hit-event:
** reference to free variable jde-bug-raise-frame-p
While compiling jde-dbo-step-event:
** reference to free variable process-id
While compiling jde-dbo-exception-event:
** variable exception-object bound but not referenced
** variable thread-id bound but not referenced
** variable state bound but not referenced
** variable reason bound but not referenced
** variable state-info bound but not referenced
While compiling jde-dbo-vm-disconnected-event:
** reference to free variable jde-dbs-the-process-registry
While compiling jde-dbo-vm-death-event:
** reference to free variable jde-dbs-the-process-registry
While compiling jde-dbo-watchpoint-hit-event:
** variable expression-true bound but not referenced
** variable thread-match bound but not referenced
** variable obj-match bound but not referenced
** variable field-value-type bound but not referenced
** variable obj-gc-flag bound but not referenced
While compiling the end of the data:
** The following functions are not known to be defined:
jde-dbo-thread, jde-db-search-src-dirs,
jde-parse-get-package-from-name, jde-bug-install-jdebug-menu,
jde-dbs-get-process, jde-dbs-proc-get-bpspec,
jde-dbs-proc-display-debug-message, jde-dbs-display-debug-message,
jde-dbs-get-target-process, jde-dbs-proc-state-info-set,
jde-dbs-proc-set-contains-p, jde-dbs-proc-move-to-registry,
jde-dbs-get-locals, jde-dbs-cmd-exec, overlay-lists,
jde-dbs-get-this, jde-dbs-java-null-p, jde-dbs-java-udci-p,
jde-dbs-get-string, jde-dbs-java-array-p,
jde-dbs-java-primitive-p, jde-dbs-get-thread,
jde-dbs-proc-set-state, jde-dbs-proc-move-to-morgue,
jde-dbo-method, jde-dbo-to-string
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-dbs.el at
Fri Aug 4 10:25:56 2000
While compiling
jde-dbs-proc-registry::jde-dbs-proc-registry-set-target-proc:
** reference to free variable process-id
** reference to free variable jde-dbs-the-process-registry
While compiling jde-dbs-debugger::jde-dbs-debugger-start:
** reference to free variable jde-run-working-directory
** reference to free variable jde-bug-vm-includes-jpda-p
** reference to free variable jde-bug-debug
** reference to free variable jde-classpath-separator
** reference to free variable jde-bug-jdk-directory
** reference to free variable jde-bug-jpda-directory
** assignment to free variable jde-dbs-debugger-output
** reference to free variable jde-bug-debugger-command-timeout
** variable win32-p bound but not referenced
While compiling jde-dbs-debugger-running-p:
** reference to free variable jde-dbs-the-debugger
While compiling jde-dbs-cmd::initialize-instance:
** reference to free variable jde-dbs-cmd-counter
** assignment to free variable jde-dbs-cmd-counter
While compiling jde-dbs-extract-exception:
** variable start bound but not referenced
While compiling jde-dbs-extract-lisp-form:
** variable command-end bound but not referenced
While compiling jde-dbs-command-reply-listener:
** reference to free variable jde-bug-debugger-command-timeout
While compiling jde-dbs-do-command:
** assignment to free variable jde-dbs-pending-events
** reference to free variable jde-dbs-cmd-counter
** assignment to free variable jde-dbs-cmd-counter
** reference to free variable jde-bug-debugger-command-timeout
While compiling jde-dbs-listen-for-debugger-socket:
** reference to free variable jde-dbs-app-buffer-filter
While compiling jde-dbs-cmd::jde-dbs-cmd-exec:
** assignment to free variable jde-dbs-pending-events
While compiling jde-dbs-choose-vm:
** reference to free variable jde-run-java-vm
** reference to free variable jde-run-java-vm-w
While compiling jde-dbs-launch-process::initialize-instance:
** reference to free variable jde-db-option-application-args
While compiling jde-dbs-launch-process::jde-dbs-cmd-success-action:
** reference to free variable result
** reference to free variable main-class
** reference to free variable process
** reference to free variable jde-bug-debugger-host-address
** variable cli-buffer bound but not referenced
While compiling jde-dbs-clear-breakpoint::jde-dbs-cmd-exec:
** variable bp-procid bound but not referenced
** variable proc-id bound but not referenced
While compiling jde-dbs-get-threads::jde-dbs-cmd-exec:
** reference to free variable jde-xemacsp
While compiling jde-dbs-get-object-monitors::jde-dbs-cmd-exec:
** variable obj-gc bound but not referenced
While compiling the end of the data:
** The following functions are not known to be defined:
jde-dbs-proc-set-get-proc, jde-dbs-proc-set-contains-p,
jde-dbs-proc-registry, jde-dbs-proc-morgue,
jde-dbs-proc-state-info, jde-dbs-proc-set-remove,
jde-dbs-proc-set-add, jde-bug-breakpoint-p,
jde-dbs-proc-runnable-p, jde-dbs-proc-display-debug-message,
jde-dbs-java-obj-to-string, jde-dbs-java-variable-to-string,
jde-find-jde-data-directory, jde-convert-cygwin-path,
jde-run-make-arg-string, jde-run-mode, save-w32-show-window,
jde-dbs-debugger-register-process-filter, jde-dbs-debugger,
jde-dbs-debugger-display-message, jde-dbs-cmd-make-command-line,
jde-dbs-cmd-success-action, jde-dbs-cmd-failure-action,
jde-dbs-cmd-display-response, jde-dbs-cmd-execute-pending-events,
jde-run-get-main-class, jde-db-get-vm-args,
jde-db-get-vm-args-from-user, jde-db-get-app-args-from-user,
jde-dbs-proc-bpspec, jde-dbs-proc-get-bpspec, jde-dbs-java-null,
jde-dbs-java-primitive, jde-dbs-java-array, jde-dbs-java-udci,
jde-dbs-java-variable, jde-dbs-java-udci-add-field, overlay-lists
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-gen.el at
Fri Aug 4 10:25:58 2000
** The following functions are not known to be defined:
jde-gen-class, c-indent-exp, jde-gen-console, jde-gen-jfc-app
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-help.el at
Fri Aug 4 10:25:58 2000
While compiling jde-help-lookup-java1-javadoc:
** reference to free variable class
While compiling jde-help-lookup-java2-javadoc:
** reference to free variable class
While compiling jde-help-choose-document:
** assignment to free variable jde-help-selected-documentation-file
** reference to free variable jde-help-selected-documentation-file
While compiling jde-show-class-source:
** reference to free variable jde-project-context-switching-enabled-p
** assignment to free variable jde-project-context-switching-enabled-p
While compiling the end of the data:
** The following functions are not known to be defined:
jde-parse-qualified-name-at-point, jde-parse-declared-type-of,
jde-find-class-source, jde-show-class-source-chooser-dialog
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-javadoc.el
at Fri Aug 4 10:25:58 2000
While compiling toplevel forms:
!! Symbol's value as variable is void ((semantic))
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-make.el at
Fri Aug 4 10:25:58 2000
While compiling jde-make:
** reference to free variable jde-xemacsp
** reference to free variable last-nonmenu-event
** assignment to free variable last-nonmenu-event
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-parse.el at
Fri Aug 4 10:25:58 2000
While compiling toplevel forms:
!! Symbol's value as variable is void ((semantic))
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-run.el at
Fri Aug 4 10:25:58 2000
While compiling jde-run-parse-args:
** variable i bound but not referenced
While compiling jde-run-build-classpath-arg:
** reference to free variable jde-classpath-separator
While compiling jde-run-get-vm-args:
** reference to free variable jde-global-classpath
While compiling jde-run-internal:
** reference to free variable jde-xemacsp
** reference to free variable win32-start-process-show-window
** assignment to free variable win32-start-process-show-window
** reference to free variable w32-start-process-show-window
** assignment to free variable w32-start-process-show-window
While compiling jde-run-executable:
** reference to free variable jde-run-interactive-app-args
** reference to free variable jde-xemacsp
** reference to free variable win32-start-process-show-window
** assignment to free variable win32-start-process-show-window
** reference to free variable w32-start-process-show-window
** assignment to free variable w32-start-process-show-window
While compiling jde-run-applet-exec-1:
** reference to free variable system-uses-terminfo
While compiling jde-run-applet-internal:
** variable win32-p bound but not referenced
While compiling toplevel forms:
** assignment to free variable jde-run-applet-document
While compiling jde-run-applet:
** assignment to free variable jde-run-applet-document
** reference to free variable jde-run-applet-document
While compiling the end of the data:
** The following functions are not known to be defined:
jde-convert-cygwin-path, jde-db-get-package
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-stat.el at
Fri Aug 4 10:25:58 2000
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-widgets.el
at Fri Aug 4 10:25:58 2000
While compiling test-tree:
** assignment to free variable tree
While compiling the end of the data:
** The following functions are not known to be defined:
overlay-lists, jde-dbs-java-udci-p, jde-dbs-get-string,
jde-dbs-cmd-exec, jde-dbs-java-array-p, jde-dbs-java-primitive-p,
jde-dbs-java-null-p, jde-dbs-get-object, jde-dbs-get-array
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde-wiz.el at
Fri Aug 4 10:25:59 2000
While compiling jde-wiz-get-import-insertion-point:
** variable n bound but not referenced
While compiling jde-sort-imports:
** variable sort-fold-case bound but not referenced
While compiling jde-wiz-get-existing-import:
** variable imports bound but not referenced
While compiling jde-wiz-choose-imports:
** assignment to free variable jde-wiz-import-possibles
** assignment to free variable jde-wiz-selected-imports
** reference to free variable jde-wiz-selected-imports
While compiling jde-wiz-implement-interface:
** reference to free variable c-hanging-braces-alist
While compiling jde-wiz-override-method-internal:
** reference to free variable c-hanging-braces-alist
While compiling jde-wiz-override-variant-method:
** assignment to free variable jde-wiz-source-buffer
** assignment to free variable jde-wiz-method-variants
** assignment to free variable jde-wiz-selected-method
** reference to free variable jde-wiz-source-buffer
** reference to free variable jde-wiz-selected-method
** reference to free variable jde-wiz-method-variants
While compiling jde-wiz-delegate:
** reference to free variable c-hanging-braces-alist
While compiling the end of the data:
** The following functions are not known to be defined:
semantic-bovinate-toplevel, semantic-token-start,
semantic-token-end, c-indent-line, jde-parse-declared-type-of
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/jde.el at Fri
Aug 4 10:25:59 2000
While compiling toplevel forms:
!! Symbol's value as variable is void ((semantic))
Compiling file /usr/share/emacs/site-lisp/jde-2.2.0/lisp/setnu.el at Fri
Aug 4 10:25:59 2000
While compiling the end of the data:
** The following functions are not known to be defined:
overlay-put, setnu-extent-property, setnu-delete-extent,
setnu-set-extent-property, setnu-set-extent-begin-glyph,
setnu-set-extent-endpoints, setnu-extent-start-position,
setnu-extent-end-position, setnu-make-glyph, setnu-set-glyph-face,
setnu-make-extent, overlays-in, overlay-get, overlays-at,
overlay-recenter, overlay-lists, overlay-start, overlay-end,
setnu-extent-at
Jim Davidson wrote:
>
> Troy Noble <[EMAIL PROTECTED]> writes:
>
> > On Thu, Aug 03, 2000 at 11:35:28PM -0700, Aaron Brashears wrote:
> >
> > > Hi there. I know this question is covered in the FAQ, and I've tried
> > > everything I can think of to fix the problem. When I start emacs or
> > > xemacs I get the error:
> > > (1) (initialization/error) An error has occurred while loading ~/.emacs:
> > > Symbol's value as variable is void: semantic
> ............
> > > And the contents of my .emacs file:
> .......
> > > (add-to-list 'load-path
> > > (expand-file-name "/usr/share/emacs/site-lisp/semantic-1.2.1"))
> > > (add-to-list 'load-path
> > > (expand-file-name "/usr/share/emacs/site-lisp/speedbar-0.12"))
> > > (add-to-list 'load-path
> > > (expand-file-name "/usr/share/emacs/site-lisp/jde-2.2.0/lisp"))
> > > (require 'jde)
> >
> > The quick fix should be to put the newest semantic, speedbar, and
> > jde EARLIER in your load-path than the stuff that's already there.
> > This is not hard, just slightly different from how you've got it
> > now. From my .emacs:
> >
> > ;; Modify lisp load path, put jde-required stuff first!
> > (setq load-path
> > (nconc
> > '("/usr/share/emacs/site-lisp/jde-latest/lisp"
> > "/usr/share/emacs/site-lisp/semantic-latest"
> > "/usr/share/emacs/site-lisp/speedbar-latest")
> > load-path))
>
> Um... His code already does that.
>
> add-to-list (which is a cleaner function than nconc) puts its argument
> at the front of the list; that's the desired behavior.
>
> To the original poster: Is semantic really installed in the directory
> /usr/share/emacs/site-lisp/semantic-1.2.1 ?
>
> Could you try
> M-x locate-library
> semantic
>
> and see what that returns.
>
> Also, the calls to expand-file-name appear to be redundant, since your
> filenames are already fully expanded. They shouldn't hurt, but they don't
> help either.
>
> --
> Jim Davidson
> jdavidson @ acm.org