From ee2e4896d291c3cada1780c2946d9c4d1c2a5ca3 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 5 Feb 2020 18:15:44 +0200 Subject: [PATCH] Fixed an issue when Project Inspector crashes when flash use > 100% // Resolve #3368 --- HISTORY.rst | 1 + platformio/builder/main.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 14a32bfc..e785be58 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -33,6 +33,7 @@ PlatformIO Core 4.0 * Fixed an issue with LDF when header files not found if "libdeps_dir" is within a subdirectory of "lib_extra_dirs" (`issue #3311 `_) * Fixed an issue "Import of non-existent variable 'projenv''" when development platform does not call "env.BuildProgram()" (`issue #3315 `_) * Fixed an issue when invalid CLI command does not return non-zero exit code +* Fixed an issue when Project Inspector crashes when flash use > 100% (`issue #3368 `_) 4.1.0 (2019-11-07) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/builder/main.py b/platformio/builder/main.py index a49017a0..b1623622 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -161,7 +161,9 @@ for item in env.GetExtraScripts("post"): ############################################################################## # Checking program size -if env.get("SIZETOOL") and "nobuild" not in COMMAND_LINE_TARGETS: +if env.get("SIZETOOL") and not ( + set(["nobuild", "sizedata"]) & set(COMMAND_LINE_TARGETS) +): env.Depends(["upload", "program"], "checkprogsize") # Replace platform's "size" target with our _new_targets = [t for t in DEFAULT_TARGETS if str(t) != "size"]