Re[2]: [cedet-semantic] "force full reparse" driving me batty
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2003-11-12 04:17:08
|
Hi, It appears that in semantic-util.el line 101 seems to be the problem. That function now always tries to refresh the token list. Functions like eldoc need to be able to access the token list of buffers w/out doing a reparse for speed purposes. You could probably change this line to: semantic-toplevel-bovine-cache)) to fix your problem. Really fixing this for future versions of semantic will require some thought. Eric >>> Dan Debertin <air...@no...> seems to think that: >"Eric M. Ludlam" <er...@si...> writes: > >> Are you interested in debugging it? > >I don't know this piece of code very well, but I'll do what I can. > >> M-x debug-on-entry RET semantic-edits-incremental-fail RET > >Here's a backtrace: > >* semantic-edits-incremental-fail() > (condition-case errobj (let* (... ... ... ... ... ... ... ... ... ...)= (or changes ...) (while changes ... ... ... ... ... ... ... ... ...) (se= mantic-parse-tree-set-up-to-date)) (error (message ...) (semantic-edits-i= ncremental-fail))) > (let ((changed-tokens nil)) (condition-case errobj (let* ... ... ... .= ..) (error ... ...)) changed-tokens) > semantic-parse-changes-default() > semantic-parse-changes() > semantic-bovinate-toplevel(t) > semantic-something-to-tag-table(#<buffer foo.c>) > semanticdb-find-translate-path-includes-default(nil) > semanticdb-find-translate-path-default(nil nil) > semanticdb-find-translate-path(nil nil) > semanticdb-find-tags-collector(#[(table) "=C3=82=08 \"=C2=87" [table n= ame semanticdb-deep-find-tags-by-name-method] 3] nil nil) > semanticdb-deep-find-tags-by-name("myfunc") > senator-find-current-symbol-tag("myfunc") > senator-eldoc-print-current-symbol-info-default() > senator-eldoc-print-current-symbol-info() > eldoc-print-current-symbol-info() > apply(eldoc-print-current-symbol-info nil) > byte-code("=C3=81=08=C3=82H=08=C3=83H\"=C2=87" [timer apply 5 6] 4) > timer-event-handler([t 0 0 500000 t eldoc-print-current-symbol-info ni= l t]) > >The "Force full reparse" message was also clobbering the real error >message, which is "Unhandled change group" at line 615 of >semantic-edit.el. > >So I can see the part of -incremental-parser that prints this message, >but the large stretch of code above it will take some more time to >digest. I'll keep looking at it, but let me know if the above gives >you an idea of what's going on. > >TIA, > >Dan >-- >/^Dan Debertin$/ |=20 >ai...@no... |=20 >www.nodewarrior.org |=20 > > > >------------------------------------------------------- >This SF.Net email sponsored by: ApacheCon 2003, >16-19 November in Las Vegas. Learn firsthand the latest >developments in Apache, PHP, Perl, XML, Java, MySQL, >WebDAV, and more! http://www.apachecon.com/ >_______________________________________________ >cedet-semantic mailing list >ced...@li... >https://lists.sourceforge.net/lists/listinfo/cedet-semantic > --=20 Eric Ludlam: za...@gn..., eric@siege-engine.c= om Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |