Re: [cedet-semantic] symbol parsing problem [fixed]
Brought to you by:
zappo
From: John Y. <jy...@ne...> - 2010-06-12 15:07:45
|
CEDET understands to reparse when source dependencies change. Should it not also validate its database(s) against the changes in search path and predefined symbols? /john ________________________________________ From: Eric M. Ludlam [er...@si...] Sent: Friday, June 11, 2010 9:06 PM To: Bogdan Graur Cc: ced...@li... Subject: Re: [cedet-semantic] symbol parsing problem [fixed] On 06/11/2010 06:24 PM, Bogdan Graur wrote: > Thank you Eric for your help! > > adding the marked line in the project definition (in ~/.emacs file) did > the trick: > > (setq test-project > (ede-cpp-root-project "test" > :file "/projects/test/test.cpp" > :include-path '("/") > * :spp-table '( ("PROTO" . "1") ) > * )) > > I am sure I have tried this before posting here but it only worked after > deleting the ~/.semanticdb directory. I'm glad you found the solution. > Maybe it was created before adding the :spp-table customization and no > longer took into consideration my modified project? Yes, to minimize time spent parsing files, CEDET will keep pre-parsed file data around. A side effect is that when you change parsing data (like the preprocessor table) you need to manually flush your cache. > Having a global ".semanticdb" directory (shared probably for multiple > projects) can cause any problems like the one I described earlier? It is more about the aggressive data caching that causes the issue. I don't think it matters where the data is stored. > Is it possible to have separate ".semanticdb" directories for each > project defined? > Can one project share many ".semanticdb" dirs? If you set semanticdb-default-save-directory to nil, it will save cache files next to the files that it is caching instead of in .semanticdb. > Where can I find more documentation about how this "database" can be > configured? There isn't much you can do as far as configuring where the databases are stored other than the above, nor even what they do unless you opt to start coding up new ones, in which case there isn't much doc for that either, just examples. The file backed semantic databases are just one variant of a tag database. There are also databases backed up by GNU Global cache files, EBrowse cache files, CScope cache files (Not finished yet) or even one that is custom to the Emacs environment. Creating new specialized databases is a good way to improve performance. Eric ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ cedet-semantic mailing list ced...@li... https://lists.sourceforge.net/lists/listinfo/cedet-semantic |