I have a project where the rough structure (for parts relevant to this topic) looks like this:
TClasses.pas includes ../common/TObjects.inc which in turn includes ../common/classes/TActor.inc
The problem is that changes to TObjects.inc are recompiled, but changes to TActor.inc are not. (I test this by making a change that definitely won't compile, e.g. property -> froperty, and it still compiles when using Shift-F9)
Also I have an issue where inactive code in IFDEFs is not rendered in the usual fainter font colour in TActor.inc. Again, this works fine in TObjects.inc.
I tried recreating the project (.lpi) file, and that fixed the second issue (highlighting), but not the first.
I also tried to reproduce this issue using a new project but everything worked as expected.
Changes to the include paths in project settings didn't make any difference, neither did adding or removing the files in project inspector.
What's going on here? How do I debug this?
Thanks,
ahydra