Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tobozo opened this issue Nov 9, 2021 · 7 comments
Closed
Assignees
Milestone

Comments

@tobozo
Copy link
Contributor

tobozo commented Nov 9, 2021

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

@me-no-dev me-no-dev self-assigned this Nov 9, 2021
@Tomat7
Copy link

Tomat7 commented Dec 23, 2021

The same issue on 2.0.2 :-(

@VojtechBartoska VojtechBartoska added this to the 2.0.3 milestone Dec 23, 2021
@VojtechBartoska
Copy link
Contributor

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

@tobozo
Copy link
Contributor Author

tobozo commented Dec 24, 2021

@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
Copy link
Member

@tobozo are those versions used somewhere?

@tobozo
Copy link
Contributor Author

tobozo commented Dec 25, 2021

@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
Copy link

drws commented Feb 23, 2022

@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!

@VojtechBartoska
Copy link
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 Roadmap Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

5 participants