[cedet-semantic] Re: Re[1]: Error in semantic completion
Brought to you by:
zappo
|
From: Mike H. <mi...@th...> - 2003-10-28 20:52:59
|
On Tue, 28 Oct 2003 15:20:40 -0500, Sir Eric M. Ludlam scribed thus: > Hi, > > If the "M-x bovinate" command reports back "nil", then it failed to > identify any symbols. If you instead use "C-u M-x bovinate", it > will force a full parse. If that also reports nil, then something > else is wrong. I tried your sample with the version of semantic in > the cedet-1.0beta1.tar.gz file recently uploaded to the cedet > project area, and everything worked as expected for me. The file > may have attempted a parse while you were typing, and the poor > incremental parser in 1.4.4 failed recover properly. Thanks, I found the problem: I assumed loading semantic-ia would load everything needed. Once I started doing semantic-load first, it worked. I'm still a bit confused about some things though. > For larger projects, be sure to investigate the > `semanticdb-project-roots' variable. I think I am misunderstanding this variable. I would like to complete on the gtk headers, in /usr/include/gtk-2.0/gtk. I have added this directory to the project-roots variable, but I cannot complete on these symbols. In the TOKENS menu, gtkbutton.h does not appear when editing my main program, and conversely, main.c does not appear when editing gtkbutton.h Basically, how do I "merge" different directories into the same project? Or, better, perhaps simply remove the project distinction all together (i tend to run different emacs instances for different projects anyway). I'm assuming that'd let me complete on the gtk headers. You mentioned a shell script to visit all the files and put them in the semanticdb. Is that available anywhere? If it'll be in the next release, how soon will that be? thanks -mike |