iarsystems / iar-vsc-build

Visual Studio Code extension for developing and building IAR projects
https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-build
Mozilla Public License 2.0
38 stars 5 forks source link

Failed to Batch Build when using $WS_DIR$ in custom arguments file #71

Closed Ayumiiw closed 4 days ago

Ayumiiw commented 9 months ago

Describe the bug: When using "$WS_DIR$" in custom arguments file, it failed to expand the argument variable when doing batch-build, while it succeeded to build the project when not using batch build.

To Reproduce: In custom argument, set the following variable. name: "$PATH$" value: "$WS_DIR$\inc"

Use "$PATH$" as include path in Project>Option>C/C++Compiler>Preprocessor.

Execute batch-build.

Expected behavior: It works when batch-build also.

Actual behavior: The following error occur when doing batch-build.

Failed to expand argument variable Invalid text: "$PATH$\"

Environment:

Additional context: I found similar bug report in #52, but it seems that the problem is not resolved yet.

HampusAdolfsson commented 9 months ago

Thanks for reporting this. A fix will be included in the next release.