Re: semantic-ia-fast-jump 'switches' from gcc headers to local headers
"Eric M. Ludlam" <[email protected]> Fri, 24 Oct 2014 17:53:44 -0400
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
On 10/24/2014 04:18 PM, Xaver Gerster wrote: >> Do you think you may need a using statement somewhere to help find your tag? > > Hi Eric, > > I think that 'using namespace std;' statements are all in proper places. > A caricature of the structure of the code would be: > > -------------------- > // file utility.h > #include <vector> > using namespace std; > > ....stuff... >[...] > I have not tried if I would get this issue also with a bare bones > project stripped down to exactly the preceding caricature. But I'll do. > >> Good Luck > Would you have an additional idea, just to jog that aspect of luck? > Noting that the using namespace was in a header was a good clue. I setup a similar simple file and got the 'correct' vector, commented out the using statement, and it still 'worked' by finding the class. When I flushed everything, then it stopped working. When I put the using statement back it correctly, it stayed not working. I'll guess you might edit something that causes the using to not be parsed, then it gets set into a cache that way and it appears magically broken for no reason even though the plain-text was long fixed. I found that: M-x semanticdb-typecache-complete-flush RET in the location you are trying to jump from would always correctly 'fix' the problem if the text in the headers was correct. there is supposed to be a system of cross-refs that auto-flush subsets of the typecache, but clearly that isn't working out. That system is a bit tricky, so for now, when things misbehave, you can just flush the cache. Eric ------------------------------------------------------------------------------