PaPaNi 23 Posted December 9, 2022 Hey, Community! Given: - Delphi 2007 - One Unit, where should be showed one warning, because one variable is deprecated - Project options -> Compiler messages: Show warnings and show hints is ON - All warnings in the list except platform symbol, platform unit, unsafe type, unsafe code and unsafe typecast is ON Problem: 1. I do Build and get no warnings. DCU file date/time is changed. Then I do Compile - no warnings again. 2. I change this unit (one space symbol is added). I do Build again - no warnings. Date/time of DCU file is changed. 3. I change this unit again and now Compile (without Build). This changes the DCU file date/time again, but in this case I see one warning! I figured, that Build does exactly the same as Compile, but with all units regardless of whether they have changed. I.e. I expect to see the same warning after Build too. Im wrong/its a bug/its a future/one option must be changed? I want to see this warning after Build too. Any ideas are welcom! Thanks! Share this post Link to post
Stano 143 Posted December 9, 2022 Sometimes this scenario happens to me: Compile - error Build - no error Compile - no error It will probably be similar in your case. Share this post Link to post
programmerdelphi2k 237 Posted December 9, 2022 try "delete" the xxxx.DPROJ file, then, your IDE will create a new file for you! --- note: if you use any config specific, of course, it will be delete too! but you can re-do it! Share this post Link to post
Pat Foley 51 Posted December 9, 2022 1 hour ago, PaPaNi said: 2. I change this unit (one space symbol is added). white space is ignored. Change a line of code and see what happens or add a method or Property to get a full rebuild. Besides allowing the IDE to compile only the changed code only the warnings in the unit recompiled will be lit. It would nice though if the mapfile viewer would get the measles for warnings like VS. Share this post Link to post