John Russell writes:
> I am getting some very strange behavior when trying to open jsp files
> using jde and the new cedet-1.0betac package. I emailed the cedet list
> and they suggested that someone on this list might know what's going on
> here.
> Note: This only happens for jsp's which worked well with jde-2.3.3,
> semantic-1.4 and eiei0-0.17. This problem started when I replaced those
> with the new cedet package which bundles semantic eieio and some other
> things together. This problem also does not appear with regular java
> files. Thanks for any help you may be able to provide.
>
Hi John,
I've never used JSP and so don't know much about it. However, I downloaded a sample
JSP page from the JDEE website and loaded it into JDEE 2.3.3 with cedet
without any problems.
Perhaps there is something particular about your pages that is giving the new Java
parser or lexer in cedet problems. If you can send me a sample of a page that
reproduces the problem, I'll investigate further.
Just out of curiousity, why do you want to edit jsp pages in jde-mode?
Paul
> Sincerely,
> John
>
> First some info:
> platform: Gentoo Linux on a Thinkpad A31p
>
> JDEE version: jde-2.3.3
>
> emacs version: FSF emacs-cvs ( I think cedet requires a function only
> in cvs, custom-autoload)
>
> .emacs file: For simplicity, I reproduced the problem with only the
> following in my .emacs file:
> ;; beginning of .emacs file
>
> (add-to-list 'load-path "~/.emacs.d/packages/cedet-1.0beta1c/common")
> (add-to-list 'load-path "~/.emacs.d/packages/jde-2.3.3/lisp")
> (add-to-list 'load-path "~/.emacs.d/packages/elib-1.0")
>
> (load-library "cedet")
> (setq auto-mode-alist
> (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))
> (setq auto-mode-alist (cons '("\\.jsp" . jde-mode) auto-mode-alist))
>
> (require 'jde)
>
> ;; end of .emacs file
>
>
> If I open emacs and find-file a jsp, the file does not open at all and
> the message buffer contains this message:
>
> Note: file is write protected
> Loading wisent-java-tags...done
> Setting JDE variables to startup values...
> Loading jit-lock...done [2 times]
> wisent-java-tags-lexer: Unmatched Text during Lexical Analysis
>
> If I then immediately find-file the same file again, it opens with no
> complaints of any kind.
>
> If I then close it and open it _again_ The file opens with the following
> error:
>
> Note: file is write protected
> Setting JDE variables to startup values... [2 times]
> Wrong type argument: syntax-table-p, nil
>
> subsequent find-file of the file all return the syntax-table-p error.
>
>
> Thanks a lot for the help.
> --
> If you're not part of the solution, you're part of the precipitate.
>