# HG changeset patch # User Edouard Tisserant # Date 1635838566 -3600 # Node ID 794e39598e46ada566055c53355ea18312452ab1 # Parent e655ec8162e1381132a9ff8eafbace9971dc8e92 Follow-up on 83ed4ea362db 'IDE: prevent invoking matiec when IEC code did not change since last build' : build unconditionally after clean diff -r e655ec8162e1 -r 794e39598e46 ProjectController.py --- a/ProjectController.py Fri Oct 29 18:07:28 2021 +0200 +++ b/ProjectController.py Tue Nov 02 08:36:06 2021 +0100 @@ -797,7 +797,12 @@ IECCodeContent += open(self._getIECgeneratedcodepath(), "r").read() - with open(self._getIECcodepath(), "w") as plc_file: + IECcodepath = self._getIECcodepath() + + if not os.path.exists(IECcodepath): + self.LastBuiltIECcodeDigest = None + + with open(IECcodepath, "w") as plc_file: plc_file.write(IECCodeContent) hasher = hashlib.md5()