Jump to content
Navid Madani

MMX 15.1.8 build 2580: Possible Source Indexer Bug?

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×