Re: [cedet-semantic] Cannot find types for `"a"'
Brought to you by:
zappo
From: Dave M. <dav...@gm...> - 2008-04-30 16:47:55
|
On 4/30/08, Eric M. Ludlam <er...@si...> wrote: > >>> "Dave Milter" <dav...@gm...> seems to think that: > >The code is: > >------------------------------------------------------------- > [ ... ] > > >int main() > >{ > > Ops ops; > > ops.copy = my_copy<Foo>; > > Foo *a, b; > > b.i = 10; > > a = static_cast<Foo *>(ops.copy(&b)); > > printf("a->i %d\n", a-> > > > > return EXIT_SUCCESS; > >} > >------------------------------------------------------------- > > > Sometimes incomplete parenthesis matching can prevent Semantic from > knowing you are inside a function, and restrict the things it can > complete on. In this case, adding a ) would help. > > Because this is the last function in the file, Semantic tries to > assume you mean this to be all one thing, and will try to provide > the function main with the unterminated code body. > > Anyway, for me completion worked, and I got an "i" as a completion > option. > > If you do: > > C-u M-x bovinate RET > > it will force a full reparse. If completion then works, then what you > have found is some sort of incremental parsing error which will be > challenging to find new repro steps for. > > > >For some reason cedet tell me that it Cannot find types for 'a'. > >CEDET Version: 1.0pre4 > > > > The command: > > M-x semantic-analyze-current-context RET > > will provide a nice output that sometimes indicates where it fell > over. > Yeah, "bovinate" or ");" at the end of line helps, but creating new file, open in new buffer, and things do not work again, so it is reprodusible, by the way I use semantic-ia-complete-symbol-menu to show possible completetions, analyze-current-context show: Context Type: #<semantic-analyze-context context> Bounds: (488 . 488) Prefix: "a" "" Prefix Classes: 'type -------- |