Navid Madani 1 Posted December 16, 2023 When the project file has conditional compiler directives, the source indexer omits files that should be included. For example, in the uses section of the .dpr file quoted below: {$IFDEF MSWindows} uWinSpawn in '..\Units\Win\uWinSpawn.pas', uReadPipeThread in '..\Units\Win\uReadPipeThread.pas', {$ENDIF } {$IFDEF MACOS} uMacOSSpawn in '..\Units\macOS\uMacOSSpawn.pas' {$ENDIF } uProcessSpawn in '..\Units\uProcessSpawn.pas'; When MSWindows is defined and not MACOS, in my case, ..\Units\uMacOSSpawn.pas is indexed, but not ..\Units\uProcessSpawn.pas. Thanks to Uwe for his outstanding work maintaining and updating MMX Tools. Navid Share this post Link to post
Navid Madani 1 Posted December 16, 2023 I'll take that back: not a bug - each time I add a unit to the project, the IDE messes up the conditional defines, sometimes inserting two uses clauses into the DPR. While editing, I also erroneously deleted the comma after the unit in the excluded MACOS clause. Restoring the missing comma allowed MMX to index everything. Share this post Link to post
timfrost 79 Posted December 16, 2023 It's an IDE feature. Add or delete a file to the project, and conditions and includes in the units list in the DPR are changed in various ways. I opened a quality ticket a couple of years ago and was told it was by design, because 'Delphi manages the DPR file' and can override manual settings. Share this post Link to post