#78 Invalid argument error when expanding Java to show methods.

closed-wont-fix
David Ponce
semantic (53)
5
2007-03-08
2005-10-24
David Johnson
No

I recently downloaded cedet-1.0pre3 in order to support
JDE. In the default state, the speedbar works just fine,
but if JDE is enabled, I can no longer expand Java source
files in the speedbar to display the method names.

When I click the (+) symbol, I get a short message in
the main window status line, something like:
wrong type argument, arrayp nil

I experimented by removing JDE again, and instead just
set the variable semantic-load-turn-useful-things-on. The
problem re-appeared. So I removed the variable setting,
and verified that the problem is gone. Invoking the
interactive function
semantic-load-enable-minimum-features
brings back the fault.

This is not a problem in cedet-1.0beta3b. I haven't
investigated which of the intermediate versions
introduced the problem.

My Emacs version is a little old,

(emacs-version)
"GNU Emacs 21.3.1 (i386-msvc-nt5.1.2600)
of 2003-03-28 on buffy"

As you can see, I'm running on Windoze NT.
I removed the original speedbar.el and speedbar.elc
from the default lisp folder to make sure that the CEDET
versions are loaded.

Discussion

  • David Johnson
    David Johnson
    2005-10-24

    Logged In: YES
    user_id=1367097

    Update: this seems to be specific to the content of the Java
    files
    I'm trying to parse. Our corporate standard requires us to
    begin
    every file with a copyright notice that is not a JavaDoc
    comment.
    It seems that if any of the files in a given directory
    begins with this
    comment, it is impossible to expand the method list for all
    files.

    I'll attach a trivial Java file that demonstrates the
    problem. I guess
    that cedet-1.0beta3 didn't have the same behaviour because
    it tries
    less hard to interpret all the bits of the Java source.

     
  • David Johnson
    David Johnson
    2005-10-24

    Java code that exhibits the problem.

     
    Attachments
  • Eric M. Ludlam
    Eric M. Ludlam
    2006-05-26

    • labels: 105755 --> semantic
    • assigned_to: nobody --> ponced
     
  • Eric M. Ludlam
    Eric M. Ludlam
    2007-02-08

    Logged In: YES
    user_id=88537
    Originator: NO

    I replicated this problem on Emacs 21.2.1 on Linux.

    This policy file causes font lock to throw an error, which prevents one of the semantic hooks to run, so semantic doesn't fully install in that file. Replicate with:

    M-x font-lock-fontify-buffer RET

    Not sure quite why that is.

     
  • Eric M. Ludlam
    Eric M. Ludlam
    2007-03-08

    Logged In: YES
    user_id=88537
    Originator: NO

    I'm marking this 'wont fix' because there isn't anything semantic can actually do to fix font lock.
    JDE might be able to fix it somehow.

     
  • Eric M. Ludlam
    Eric M. Ludlam
    2007-03-08

    • status: open --> closed-wont-fix