Skip to content

ESP_ARDUINO_VERSION_PATCH not updated by build script in 2.0.1-RC1 and 2.0.1 #5864

Closed
@tobozo

Description

@tobozo
Contributor

Hello,

The new ESP_ARDUINO_VERSION macro can't be used yet to distinguish 2.0.0 from 2.0.1-RC1 and 2.0.1.

Something is probably missing in the build scripts to increment the values.

image

image

[edit]

I'm using this macro to distinguish versions:

#if defined ESP_ARDUINO_VERSION_VAL
  #if __has_include("core_version.h") // for platformio
    #include "core_version.h"
  #endif
  #if ESP_ARDUINO_VERSION_VAL(2,0,1) >= ESP_ARDUINO_VERSION || ARDUINO_ESP32_GIT_VER == 0x15bbd0a || ARDUINO_ESP32_GIT_VER == 0xd218e58f || ARDUINO_ESP32_GIT_VER == 0xcaef400f
    #pragma message "Filesystem can create subfolders on file creation"
    #define FS_CAN_CREATE_PATH
  #endif
#endif

[edit] updated snippet with 2.0.2 git version

Activity

self-assigned this
on Nov 9, 2021
Tomat7

Tomat7 commented on Dec 23, 2021

@Tomat7

The same issue on 2.0.2 :-(

added this to the 2.0.3 milestone on Dec 23, 2021
VojtechBartoska

VojtechBartoska commented on Dec 23, 2021

@VojtechBartoska
Contributor

Hi, @Tomat7 and @tobozo we will fix this in 2.0.3. Adding the milestone.

tobozo

tobozo commented on Dec 24, 2021

@tobozo
ContributorAuthor

@me-no-dev @VojtechBartoska

it's remotely related but none of the bundled libraries that were recently modified had their version number increased in their respective library.properties file either

e.g. SD.h and Wire.h are still at 2.0.0

me-no-dev

me-no-dev commented on Dec 25, 2021

@me-no-dev
Member

@tobozo are those versions used somewhere?

tobozo

tobozo commented on Dec 25, 2021

@tobozo
ContributorAuthor

@me-no-dev those version numbers are visible in the Arduino IDE compilation recap so there's at least an added value for debugging.

It's also a good signal when one of the bundled libraries has changed e.g. SimpleBLE is unchanged since arduino-esp32-2.0.0 whereas BlueToothSerial received changes for arduino-esp32-2.0.2, would it make sense to synchronize the version numbers of the modified libraries with their respective arduino-esp32-xxx version instead of using semver?

I know platformio can to pick one particular version, for example it made the difference when SD.h was bumped to 2.0.0 even though no code in the library was changed.

drws

drws commented on Feb 23, 2022

@drws

@VojtechBartoska If you're fixing this one, please also consider the related and partly overlapping #5536. It is currently tagged for 2.1.0, but it makes sense to fix these two at once. Thanks!

moved this from In Progress to In Review in Arduino ESP32 Core Project Roadmapon Mar 23, 2022
VojtechBartoska

VojtechBartoska commented on Apr 6, 2022

@VojtechBartoska
Contributor

This issue was closed by merging S3 support into master branch.

Repository owner moved this from In Review to Done in Arduino ESP32 Core Project Roadmapon Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @drws@tobozo@me-no-dev@Tomat7@VojtechBartoska

      Issue actions

        ESP_ARDUINO_VERSION_PATCH not updated by build script in 2.0.1-RC1 and 2.0.1 · Issue #5864 · espressif/arduino-esp32