diff --git a/platformio/app.py b/platformio/app.py index 537ec2a3..44962a23 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -160,6 +160,7 @@ class ContentCache(object): os.makedirs(self.cache_dir) self._lockfile = LockFile(self.cache_dir) if self._lockfile.is_locked() and \ + isfile(self._lockfile.lock_file) and \ (time() - getmtime(self._lockfile.lock_file)) > 10: self._lockfile.break_lock() diff --git a/platformio/ide/projectgenerator.py b/platformio/ide/projectgenerator.py index 7a7ce7fb..e1d5b12a 100644 --- a/platformio/ide/projectgenerator.py +++ b/platformio/ide/projectgenerator.py @@ -59,7 +59,12 @@ class ProjectGenerator(object): @util.memoized def get_project_build_data(self): - data = {"defines": [], "includes": [], "cxx_path": None} + data = { + "defines": [], + "includes": [], + "cxx_path": None, + "prog_path": None + } envdata = self.get_project_env() if not envdata: return data