arduino / arduino-cli

Arduino command line tool

Home Page:https://arduino.github.io/arduino-cli/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

platform.txt: debug.toolchain.path does not expand custom properties

fpistm opened this issue · comments

Describe the problem

To ease platform.txt update when toolchain version is updated I've created some properties:

toolchain_dir={runtime.tools.xpack-arm-none-eabi-gcc-13.2.1-1.1.path}

So only this line have to be updated to point on the right version.
In the debugger section of the platform.txt if I set:
debug.toolchain.path={toolchain_dir.path}/bin
And try to debug I got this:
image

If I set it like this, it works:
debug.toolchain.path={runtime.tools.xpack-arm-none-eabi-gcc-13.2.1-1.1.path}/bin

To reproduce

Define a custom property and use it to define the debug.toolchain.path

Expected behavior

property expanded.

Arduino IDE version

2.3.2

Operating system

Linux

Operating system version

Ubuntu 22.04

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Sorry found my mistake, I've added a ".path" to my custom property.
Correct syntax:

-  debug.toolchain.path={toolchain_dir.path}/bin
+  debug.toolchain.path={toolchain_dir}/bin