Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Other Compiler    [ Add a report in this area ]  
Report #:  104886   Status: Open
[Regression in XE2] RC files are not compiled
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Alan Marryat
Report Type:  Basic functionality failure Date Reported:  4/13/2012 8:38:15 AM
Severity:    Serious / Highly visible problem Last Updated: 5/18/2012 5:40:19 AM
Platform:    All versions Internal Tracking #:   28311
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: 5
Description
Resource files are not compiled when building a project.  However the same code in XE does rebuild the RES file.

[ChangeLog.rc]
---------------
ChangeLog RCDATA "ChangeLog.txt"
---------------

[MyProgram.dpr]
---------------
program MyProgram;

{$R 'ChangeLog.res' 'ChangeLog.rc'}  
......
---------------

and upon rebuild, the ChangeLog.res file remains unchanged and the timestamp is the same.
Steps to Reproduce:
To see what happens, build the project, and press the button.  The text from the RES is displayed.

Edit the ChangeLog.txt file and add some more text.

Rebuild the project and press the button again.  The original text still appears and the RES file has not been updated.

No error messages appear either.

It appears that once the RES file exists, Delphi XE2 will not replace it on a build.
Workarounds
None
Attachment
Project1.zip
Comments

Tomohiro Takahashi at 4/13/2012 11:32:13 AM -
Could you please attach sample project to reproduce your issue?

Alan Marryat at 4/16/2012 1:17:52 PM -
Sure, but I can't figure out how without creating a new bug report.

Alan Marryat at 4/16/2012 1:34:46 PM -
OK I got the Windows client and uploaded source to reproduce.

To see what happens, build the project, and press the button.  The text from the RES is displayed.

Edit the changelog.txt file and add some more text.

Rebuild the project and press the button again.  The original text still appears and the RES file has not been updated.

No error messages appear either.

It appears that once the RES file exists, Delphi XE2 will not replace it on a build.

Tomohiro Takahashi at 4/17/2012 7:28:02 AM -
> Rebuild the project and press the button again.
As a possible workaround, please try to [Clean Up] the project via [Project Manager] and then build it?
1. select project in [Project Manager]
2. show popup menu for the project
3. select [Clean Up]
4. select [Build]

Alan Marryat at 4/17/2012 1:32:30 PM -
Thanks, your workaround does the trick.

Can we expect an update to address this?

Tomohiro Takahashi at 5/18/2012 9:33:24 PM -
This report was opened with valid Internal Tracking Number.
Thanks.

Server Response from: ETNACODE01