Thread: Re: [cedet-semantic] Help on parse the #include files.
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2008-03-27 02:33:41
|
>>> "Song, Edmund" <edm...@in...> seems to think that: >Eric, > >When I used the cedet-semantic, I found whenever I run auto-completion >firstly after I startup emacs, it will parse the same #include files >again but do not take into account if these #include files have been >parsed and cached into semantic-db or not. And as a result, whenever I >use auto-completion firstly, I have to wait for a long time to wait the >parsing. > >Is this one issue from design or just caused by my inappropriate >configuration?=20 [ ... ] Hi, Semantic ought to always load files from disk instead of re-parsing everything each time. If it is not loading old files, it could be because there is a bug in the writer or loader. Look in the *Messages* buffer to see if it says: "Cache Error: ... Restart" If so, then there is some problem saving the caches. Bugs like that pop up once in a while where overlays are not converted into something you can save to a text file, though I have no reproducible cases for that right now. A good way to check is to open one of the semantic.cache files and search for the character "#", and see if it says "#<overlay ..." somewhere. If so, this is the problem, and if you can figure out which file has the issue, we can start debugging it. There might also be some problem on Windows with save/load I am unaware of since I don't use that platform. If you familiar with Emacs Lisp, and EDEBUG, you can use them to debug `semanticdb-load-database' and then see what it does when it attempts to load a file. Eric -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |