Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Interaction with UI    [ Add a report in this area ]  
Report #:  77477   Status: Open
When building a project inside the IDE the compile progress dialog displays the wrong number of lines
Project:  Delphi Build #:  14.0.3513.24210
Version:    14.0 Submitted By:   Pierre le Riche
Report Type:  Minor failure / Design problem Date Reported:  9/8/2009 1:08:07 AM
Severity:    Serious / Highly visible problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   272806
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
This is a regression from Delphi 2009:

If you build an application inside the IDE the compile progress dialog displays an incorrect number of lines compiled.

This can easily be verified by comparing the number of lines reported by the IDE to the number of lines reported by the command line compiler. I have an application that is a total of 1315680 lines, yet when I compile it in the Delphi 2010 IDE it reports 1738732 lines. Under Delphi 2009 the command line compiler and IDE both correctly report the number of lines as 1315680.

See steps for an example.
Steps to Reproduce:
1) File -> New -> VCL Forms Application - Delphi
2) Save the new project somewhere
3) Project -> Build

Note that the progress dialog displays a total of 39 lines

4) Go to the "Output" message pane and copy the compiler command line to the clipboard
5) Open up a command prompt
6) Paste the command line inside the command prompt
7) Execute the command (you may have to add quotes around the path to DCC32)

Note that the command line compiler reports a total of 42 lines.

Compare this to the Delphi 2009 output where both the IDE and command line compiler report the same number of lines (43).


Additional test case + steps by USc:
- save the attached three files
- start Delphi
- open LineNumberTest.dpr
- build LineNumberTest.dpr (SHIFT+F9)

expected: "Total lines" count is 24
actual: "Total lines" count is 13

- dcc32 -B LineNumberTest.dpr
- see line number count is 24
Workarounds
None
Attachment
JEDDBFC.zip
Comments

None

Server Response from: ETNACODE01