parsing of large files by wisent

"Suraj Acharya" <[email protected]> Thu, 14 Dec 2006 13:05:34 -0800
Newsgroups gmane.emacs.jdee,gmane.emacs.cedet
Message-ID <[email protected]>
Hi,

I've editing a java source file with a fairly large method earlier today and
noticed that parsing of the file was silently failing. Well, there was a
line like this in the messages buffer:

wisent-parse-stream: #<buffer TTY.java> - Args out of range: [... large
array with 500 elements...], 500

but I didn't notice it show up in the minibuffer, probably because it was
very long.

I managed to figure out that I needed to increase
wisent-parse-max-stack-size, the default value of which is 500, by turning
on debug-on-error and looking at the source for wisent-parse but the initial
error message was not very useful.

David, would it make possible to catch the args-out-of-range exception in
wisent-parse-stream and have the error message say something useful about
modifying wisent-parse-max-stack-size instead ?

Suraj