Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Errors - Warnings    [ Add a report in this area ]  
Report #:  81934   Status: Open
Where unit do not compile give information what unit is this unit used by
Project:  Delphi Build #:  10.0.2558.35231
Version:    10.0 Submitted By:   Michal Niklas
Report Type:  Suggestion / Enhancement Request Date Reported:  2/8/2010 3:54:19 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   274981
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
If Delphi compile unit and this unit has some errors it reports something like:

[Pascal Fatal Error] unit2.pas(31): F2063 Could not compile used unit 'unit2'


There is no information which unit tried to use 'unit2'. I think there should be something like "unit stack trace", or at least info about what other unit (or main project) tried to use unit with errors. Example:

[Pascal Fatal Error] unit2.pas(31): F2063 Could not compile unit 'unit2' ' used by 'unit1'

This is what I suggested at:

http://stackoverflow.com/questions/2220288/delphi-reverse-lookup-who-includes-this-unit
Steps to Reproduce:
1. create two units: unit1 and unit2 with some code
2. add unit2 to uses clause of unit1
3. make some error in unit2

unit2 will not compile, but you will not know which unit tried to use it
Workarounds
Rename unit with error: .pas -> .pas_ and build applcation. Now compiler stops on first unit trying to use renamed unit.
In example in 'Steps' tab rename unit.pas to unit2.pas_
Attachment
None
Comments

None

Server Response from: ETNACODE01