Find all compilation errors in a Delphi project

Posted by awmross on Stack Overflow See other posts from Stack Overflow or by awmross
Published on 2010-05-24T02:34:29Z Indexed on 2010/05/24 2:41 UTC
Read the original article Hit count: 314

Filed under:

I am doing some refactoring of my Delphi project. I want to be able to make a change, then see all the places in the project that break due to that change. Similar to how Eclipse lists all the compile errors for a project (in Java).

In Delphi, I can make a change, then recompile my project, but the compiler stops when it finds the first Unit that does not compile. I have to fix that Unit, compile again, which will then show me the next error, etc etc.

I want to be able to see all the compile errors in the project at once. Then I can decide if the change is worth doing or not. For example, if the change will require hand fixing of 50 separate source files, it's not worth doing. But if it only breaks 2 files then that's an easy change to make.

Is there any way to do this in Delphi? Can I tell the compiler to keep going even after finding a Unit that does not compile?

I am using Delphi 2010

© Stack Overflow or respective owner

Related posts about delphi