Attila Kovacs 629 Posted January 15 (edited) I no longer receive warnings about unknown custom attributes in Delphi 12. Could there be a compiler directive that went global, perhaps? Moved from 10.2. Edited January 15 by Attila Kovacs Share this post Link to post
Lars Fosdal 1792 Posted January 16 So, if you intentionally refer to a non-existing custom attribute - you get no warning? This compiler warning setting exists in my D12 project - and it appears to be True by default. 1 Share this post Link to post
Attila Kovacs 629 Posted January 16 2 hours ago, Lars Fosdal said: This compiler warning setting exists in my D12 project - and it appears to be True by default. Same here, restarted the IDE, now I'm having the warnings. I'll keep an eye on that, I'm not dumb, there were no warnings. Share this post Link to post
Der schöne Günther 316 Posted January 16 (edited) I am sure I remember something like this, back in Delphi 10.0 or even XE7. The compiler will only check the attributes if the source code file (the binary .dcu it ends up in) gets rebuilt. So if you just change something about the attributes but nothing else, it will not trigger a warning. If you do a full rebuild, it will always trigger the correct warning. I think I never bothered to file a bug report. Edited January 16 by Der schöne Günther 1 Share this post Link to post
Uwe Raabe 2057 Posted January 16 1 hour ago, Der schöne Günther said: The compiler will only check the attributes if the source code file (the binary .dcu it ends up in) gets rebuilt. That is the same with all warnings and hints. If you want to avoid the complete build you can use a Syntax Check. Share this post Link to post
Der schöne Günther 316 Posted January 16 I have been doing Delphi for more than ten years now, and I didn't even know this existed. Looks like a full compilation, but without the linking. "Syntax Check" for my current project took about 30 seconds, which is less than half of what a full build takes. Thank you! Share this post Link to post