diff --git a/HISTORY.rst b/HISTORY.rst index bcb6d008..52b2e407 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -11,14 +11,15 @@ PlatformIO Core 5 5.2.3 (2021-??-??) ~~~~~~~~~~~~~~~~~~ -- Improved PlatformIO directory interpolation (``${platformio.***_dir}``) in `"platformio.ini" `__ configuration file (`issue #3934 `_) -- Fixed an issue when the "$PROJECT_DIR" gets the full path to "platformio.ini", not the directory name (`issue #4086 `_) +- Improved directory interpolation (``${platformio.***_dir}``) in `"platformio.ini" `__ configuration file (`issue #3934 `_) +- Disabled resolving of SCons variables (e.g., ``${SOURCE.get_abspath()}``) when preprocessing `Interpolation of Values `__ (`issue #3933 `_) +- Fixed an issue when the "$PROJECT_DIR" variable was not properly replaced in the ``debug_server`` option (`issue #4086 `_) 5.2.2 (2021-10-20) ~~~~~~~~~~~~~~~~~~ -- Override debugging firmware loading mode using ``--load-mode`` option for `pio debug `__ command +- Override debugging firmware loading mode using ``--load-mode`` option for `pio debug `__ command - Added support for CLion IDE 2021.3 (`pull #4085 `_) - Removed debugging "legacy Click" message from CLI (`issue #4083 `_) - Fixed a "TypeError: sequence item 1: expected str instance, list found" issue when extending configuration option in `"platformio.ini" `__ with the multi-line default value (`issue #4082 `_) @@ -32,7 +33,7 @@ PlatformIO Core 5 - Handle the "test" folder as a part of CLion project (`issue #4005 `_) - Improved handling of a library root based on "Conan" or "CMake" build systems (`issue #3887 `_) - Fixed a "KeyError: Invalid board option 'build.cpu'" when using a precompiled library with a board that does not have a CPU field in the manifest (`issue #4056 `_) -- Fixed a "FileExist" error when the `platformio ci `__ command is used in pair with the ``--keep-build-dir`` option (`issue #4011 `_) +- Fixed a "FileExist" error when the `platformio ci `__ command is used in pair with the ``--keep-build-dir`` option (`issue #4011 `_) - Fixed an issue with draft values of C++ language standards that broke static analysis via Cppcheck (`issue #3944 `_) 5.2.0 (2021-09-13) diff --git a/platformio/project/config.py b/platformio/project/config.py index 30c8a9ae..124667e0 100644 --- a/platformio/project/config.py +++ b/platformio/project/config.py @@ -48,7 +48,7 @@ MISSING = object() class ProjectConfigBase(object): INLINE_COMMENT_RE = re.compile(r"\s+;.*$") - VARTPL_RE = re.compile(r"\$\{([^\.\}]+)\.([^\}]+)\}") + VARTPL_RE = re.compile(r"\$\{([^\.\}\()]+)\.([^\}]+)\}") expand_interpolations = True warnings = []