Skip to content

Commit

Permalink
Fixed an issue "Import of non-existent variable 'projenv''" // Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets authored and hmaarrfk committed Dec 29, 2019
1 parent dd5f89b commit ab4d198
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Expand Up @@ -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)
~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion docs
5 changes: 4 additions & 1 deletion platformio/builder/main.py
Expand Up @@ -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(
Expand Down

0 comments on commit ab4d198

Please sign in to comment.