[cedet-semantic] Redundant Re-Parsings by CEDET/Semantic
Brought to you by:
zappo
From: P. N. <per...@gm...> - 2008-02-05 08:54:20
|
I am trying out CEDET/Semantic and I have found it to be absolutely world-class brilliant software. In my setup, however, Semantic(db) keeps performing reparsings of the same system header-files, for example Xlib.h, X.h, etc during the same Emacs session.... Also, the caches in my ~/semanticdb does *not* prevent semantic from reparsing all my project sources (under ~/pnw/src) and system header files (under /usr/include/) upon startup of Emacs. I get the LL/...h ###... progressbar for all C/C++ sources even when I open them the second time despite the fact that they all have entries in the files under ~/.semanticdb/. What have I missed? Here is my CEDET setup in my .emacs: (load-file "~/pnw/emacs/contrib/cedet/common/cedet.elc") (require 'bovine-grammar nil t) (when (require 'ede nil t) (global-ede-mode t)) (require 'semantic nil t) (semantic-load-enable-code-helpers) (global-semantic-idle-scheduler-mode 1) ;The idle scheduler with automatically reparse buffers in idle time. (global-semantic-idle-completions-mode 1) ;Display a tooltip with a list of possible completions near the cursor. (global-semantic-idle-summary-mode 1) ;Display a tag summary of the lexical token under the cursor. (require 'semantic-sb nil t) (require 'semanticdb nil t) (add-to-list 'semanticdb-project-roots "~/pnw/src") (global-semanticdb-minor-mode 1) (semantic-add-system-include "/usr/include/" 'c-mode) (semantic-add-system-include "/usr/include/" 'c++-mode) (semantic-add-system-include "/usr/include/c++/4.1/" 'c++-mode) (semantic-add-system-include "/usr/include/c++/4.2/" 'c++-mode) (setq-mode-local c-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (setq-mode-local c++-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (setq-mode-local java-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (when (require 'semantic-ia nil t) (global-set-key [(control return)] 'semantic-ia-complete-symbol) (global-set-key [(control shift return)] 'semantic-ia-complete- symbol-menu) ) (when (require 'eassist nil t) (define-key c-mode-base-map [(control x) (t)] 'eassist-switch-h- cpp) ;override toggle-source() ) and here is the contents of my ~/.semanticdb/ directory: -rw-r--r-- 1 per per 1169757 2008-02-01 14:42 !home!per!pnw!src!avg! semantic.cache -rw-r--r-- 1 per per 171652 2008-02-01 14:42 !home!per!pnw!src!PMDB! semantic.cache -rw-r--r-- 1 per per 876035 2008-02-01 14:42 !home!per!pnw!src! semantic.cache -rw-r--r-- 1 per per 992 2008-02-01 14:55 !home!per!pnw!src!tests! semantic.cache -rw-r--r-- 1 per per 1231 2008-02-01 14:42 !home!per!.semanticdb! semantic.cache -rw-r--r-- 1 per per 2425 2008-02-01 14:42 !usr!include!asm-generic! semantic.cache -rw-r--r-- 1 per per 7892 2008-02-01 14:42 !usr!include!asm-i386! semantic.cache -rw-r--r-- 1 per per 1922 2008-02-01 14:42 !usr!include!asm! semantic.cache -rw-r--r-- 1 per per 7896 2008-02-01 14:42 !usr!include!asm-x86_64! semantic.cache -rw-r--r-- 1 per per 169754 2008-02-01 14:55 !usr!include!bits! semantic.cache -rw-r--r-- 1 per per 1102305 2008-02-01 14:42 !usr!include!GL! semantic.cache -rw-r--r-- 1 per per 1592 2008-02-01 14:42 !usr!include!gnu! semantic.cache -rw-r--r-- 1 per per 1214 2008-02-01 14:55 !usr!include!linux! semantic.cache -rw-r--r-- 1 per per 18066 2008-02-01 14:42 !usr!include!netinet! semantic.cache -rw-r--r-- 1 per per 133496 2008-02-01 14:42 !usr!include! semantic.cache -rw-r--r-- 1 per per 31410 2008-02-01 14:42 !usr!include!sys! semantic.cache -rw-r--r-- 1 per per 660002 2008-02-01 12:55 !usr!include!X11!BROWSE -rw-r--r-- 1 per per 53 2008-02-01 12:55 !usr!include!X11!BROWSE- load.el -rw-r--r-- 1 per per 6992 2008-02-01 14:42 !usr!include!X11! extensions!semantic.cache -rw-r--r-- 1 per per 612439 2008-02-01 14:55 !usr!include!X11! semantic.cache -rw-r--r-- 1 per per 19929 2008-02-01 14:42 !usr!local!share!emacs! 23.0.50!lisp!semantic.cache Many Thanks in advance, Per Nordlöw |