John Kouraklis 94 Posted August 23, 2019 All of the sudden, the IDE adds 3 or 4 lines of {$R} between the units in the main dpr file. I then delete them and compile the project correctly. The next time I recompile, the {$R} reappear. The {$R} is like this, without any file names or anything else. Anyone has seen this before? Thanks Share this post Link to post
David Heffernan 2345 Posted August 23, 2019 Can you show a minimal dpr file and tell us which version of Delphi you use. Share this post Link to post
uligerhardt 18 Posted August 23, 2019 I'd check the *.dproj for spurious entries. Share this post Link to post
Tommi Prami 130 Posted August 23, 2019 In .dpr? Yes it does and that has been going on at least few versions now Share this post Link to post
Dave Nottage 557 Posted August 23, 2019 6 hours ago, John Kouraklis said: All of the sudden When you say this, do you mean for a particular project, or for any? The IDE is known to "mess up" the .dpr if you modify certain parts of it. Examples of what can happen: https://stackoverflow.com/questions/758047/how-do-you-deal-with-ifdefs-in-dpr-uses-section https://stackoverflow.com/questions/6762194/how-to-prevent-delphi-modifying-its-dpr-project-source-unexpectedly https://stackoverflow.com/questions/317997/delphi-adding-r-res-in-the-dpr-file https://wiert.me/2018/12/20/do-not-put-ifdef-with-relative-paths-in-your-dpr-as-the-delphi-ide-cannot-match-them-in-the-dproj/ 1 1 Share this post Link to post
John Kouraklis 94 Posted August 23, 2019 The version is 10.3.2 and it looks like the dproj had a few entries like this: <Form>$R *.res</Form> as described in a link Dave shared. There were, also, some {$R *.res} at the end of the lines with the units. I hadn't seen them because the file names and the paths are very long going outside the window. Hope now all is good. Thanks 2 Share this post Link to post
Attila Kovacs 629 Posted August 23, 2019 It happens to me every time I add a new unit to the project, mainly because I have other compiler directives in the .dpr. I think it works as designed... Share this post Link to post