diff --git a/HISTORY.rst b/HISTORY.rst index b924871845..a681588c3d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -21,6 +21,7 @@ PlatformIO Core 4.0 * Fixed an issue with "start-group/end-group" linker flags on Native development platform (`issue #3282 `_) * Fixed default PIO Unified Debugger configuration for `J-Link probe `__ * 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 `_) 4.1.0 (2019-11-07) ~~~~~~~~~~~~~~~~~~ diff --git a/docs b/docs index b4e4f10e4d..f53767e918 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit b4e4f10e4d40783c6e2d15e3e33b984d619c26f9 +Subproject commit f53767e91846040f4373ef7ca743d5edd34ff0ac diff --git a/platformio/builder/main.py b/platformio/builder/main.py index 8f7586e41a..a49017a03c 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -188,7 +188,10 @@ env.Exit(0) if "idedata" in COMMAND_LINE_TARGETS: - Import("projenv") + try: + Import("projenv") + except: # pylint: disable=bare-except + projenv = env click.echo( "\n%s\n" % dump_json_to_unicode(