Property references not expanded in version
property of platform.txt
#1823
Labels
conclusion: resolved
Issue was resolved
criticality: medium
Of moderate impact
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
When an Arduino boards platform is installed to
<directories.user>/hardware
without a version folder, Arduino CLI uses theversion
property ofplatform.txt
to identify the platform's version.The Arduino platform properties system allows us to reference previously defined properties within a property's definitions, and have those properties be expanded by Arduino CLI while processing the platform's configuration files.
🐛 Property reference expansion does not work in the
version
property ofplatform.txt
. Arduino CLI panics while processing platforms installed to<directories.user>
which have references in theversion
property.To reproduce
🐛 What should be considered a perfectly valid platform configuration causes Arduino CLI to panic.
Expected behavior
Properties are expanded in the
version
property ofplatform.txt
just as they are in any other property.Arduino CLI version
2dd8976
Operating system
Windows, Ubuntu
Operating system version
Windows 10, Ubuntu 20.04
Additional context
This approach was supported up until Arduino IDE 1.8.14, and is in use in multiple prominent Arduino boards platforms, including:
ATTinyCore:avr
digistump:avr
DxCore:megaavr
megaTinyCore:megaavr
Originally reported at:
Issue checklist
The text was updated successfully, but these errors were encountered: