The type of files i am referring to are included files, and these don't have their own parser. These files are read as source into the main file so they don't have their own parser. Errors and other information can only be retrieved from the parsing of this mainfile. Therefore this parse info is cached, so errors can be displayed for each file, include type or main.
At the moment, in the "parse" of a include file a request is send to the main file to reparse itself. At this moment the parse data of the main file is not cached yet, only the previous version.
As you can see (if i was clear enough;)) my solution would be that a parse of a main file signals its include files that the mainfile, and each include file, has new parsedata.
For displaying errors this already works, since each include file finds its errors in the cache.
In short, whats happens now is:
include file is edited -> include "parser" sends reparse request to main (cant make squiggles for include yet, need main file) -> main file is parsed, errors are cached, error refresh request is send -> error box gets aerror from cache from current file
And change it to:
include file is edited -> include "parser" sends reparse request to main (cant make squiggles for include yet, need main file) -> main file is parsed, errors are cached, error refresh request is send, to each include file too -> error box gets aerror from cache from current file + each include redisplayes squiggles
It seems tagging is always triggered in the Parse phase.
In your opinion, what is the best solution for this problem?
Cheers,
Martin
[Modified at 02/03/2011 04:03 AM]
[Modified at 02/03/2011 04:34 AM]