Fixed an issue "Import of non-existent variable 'projenv''" // Resolve #3315

This commit is contained in:
Ivan Kravets
2019-12-24 23:43:21 +02:00
parent 2f05040081
commit 20a10c7fc5
3 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,7 @@ PlatformIO Core 4.0
* Fixed an issue with "start-group/end-group" linker flags on Native development platform (`issue #3282 <https://github.com/platformio/platformio-core/issues/3282>`_)
* Fixed default PIO Unified Debugger configuration for `J-Link probe <http://docs.platformio.org/page/plus/debug-tools/jlink.html>`__
* Fixed an issue with LDF when header files not found if "libdeps_dir" is within a subdirectory of "lib_extra_dirs" (`issue #3311 <https://github.com/platformio/platformio-core/issues/3311>`_)
* Fixed an issue "Import of non-existent variable 'projenv''" when development platform does not call "env.BuildProgram()" (`issue #3315 <https://github.com/platformio/platformio-core/issues/3315>`_)
4.1.0 (2019-11-07)
~~~~~~~~~~~~~~~~~~

2
docs

Submodule docs updated: b4e4f10e4d...f53767e918

View File

@ -188,7 +188,10 @@ if "envdump" in COMMAND_LINE_TARGETS:
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(