Skip to content

Give the runtime.ide.version property a more meaningful value #725

@per1234

Description

@per1234

Feature Request

Current behavior

The ARDUINO macro is defined with the value of the runtime.ide.version property. When using the Arduino IDE, this value matches the current IDE version. When using other Arduino development software, it has a meaningless value (currently 10607):

buildProperties.Set("runtime.ide.version", "10607")

This causes problems for code that uses the value of the ARDUINO macro to determine compatibility with version-specific behavior of the Arduino development software (e.g., function prototype generation).

Expected behavior

My suggestion is to set the runtime.ide.version property to the version of the Arduino IDE the Arduino CLI release will be used with. I think that, given the historical meaning of this property's value, this will provide the closest match to the behavior the user expects.

Arduino CLI version

Original report

0.10.0-rc1 Commit: 8220b32

Last verified with

625aaac

Operating system

  • Windows
  • Linux

Operating system version

  • Ubuntu 22.04
  • Windows 11

Additional context

If the policy for setting the value of the runtime.ide.version property is changed, the relevant section of the Arduino Platform Specification should be updated accordingly:
https://arduino.github.io/arduino-cli/dev/platform-specification/#global-predefined-properties

Additional requests

Related

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: enhancementProposed improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions