On 04/19/2012 08:12 AM, Andrzej Pronobis wrote:
> I'm using CEDET 1.1 and have the following problem. Whenever I re-open
> some c++ source files, one of the includes in a different directory
> listed in the EDE project is marked as Unknown by semantic. However,
> running C-u M-x bovinate solves the problem and the include is found.
> If I close the file and immediately re-open it, the same problem
> Any hints?
I remembered seeing this, and found a similar case. It appears that
when the tag is decorated, EDE has initialized the buffer yet. This is
because in find-file-hooks, EDE puts its turn on hook last, so it is
just an ordering issue. Since the decoration mode depends on EDE's
configuration for include paths, it shows up unknown.
I don't remember why EDE put's itself last, but when I look at the other
stuff in the hook, I'm guessing it wants vc and other tools to have done
their thing already.
That means, this only shows up in a file you visited once before, and
has valid tags saved in a database.
I don't have a clear idea how to fix this without breaking other
features. I'll have to think on it.