We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What kind of issue is this?
Operating system: Mac OS 11.7.1
PlatformIO Version (platformio --version): 6.1.5
platformio --version
Documentations says:
If multiple items specified in the extends field then only values from the latter one will be used in the final configuration.
But in reality if multiple sections contain same options, then the value will be taken from the first one, not the last.
Basically, just copy the example from the documentation:
[base] platform = teensy framework = arduino board = teensy31 [lib_deps1] lib_deps = monstrenyatko/ArduinoMqtt @ ^1.5.1 bblanchon/ArduinoJson @ ^6.18.3 knolleary/PubSubClient @ ^2.8 [lib_deps2] lib_deps = sstaub/Ticker @ ^4.3.0 thijse/ArduinoLog @ ^1.1.1 adafruit/RTClib @ ^1.14.0 [env:final] extends = base, lib_deps1, lib_deps2 ; The values from `lib_deps2` will override the values from lib_deps1, so ; the final `lib_deps` option will be equivalent to the following: ; lib_deps = ; sstaub/Ticker @ ^4.3.0 ; thijse/ArduinoLog @ ^1.1.1 ; adafruit/RTClib @ ^1.14.0
and run pio project config:
pio project config
> pio project config Computed project configuration for .../test-extends base ---- platform = teensy framework = arduino board = teensy31 lib_deps1 --------- lib_deps = monstrenyatko/ArduinoMqtt @ ^1.5.1 bblanchon/ArduinoJson @ ^6.18.3 knolleary/PubSubClient @ ^2.8 lib_deps2 --------- lib_deps = sstaub/Ticker @ ^4.3.0 thijse/ArduinoLog @ ^1.1.1 adafruit/RTClib @ ^1.14.0 env:final --------- extends = base lib_deps1 lib_deps2 platform = teensy framework = arduino board = teensy31 lib_deps = monstrenyatko/ArduinoMqtt @ ^1.5.1 bblanchon/ArduinoJson @ ^6.18.3 knolleary/PubSubClient @ ^2.8
You can see, that lib_deps option value is taken from lib_deps1 section which comes first in the extends list.
Options from latter sections overwrite options from previous sections as it is stated in the documentation.
The text was updated successfully, but these errors were encountered:
It was also mentioned before here: #3952.
Sorry, something went wrong.
fb5e994
Thanks for the report. Please re-test with pio upgrade --dev.
pio upgrade --dev
Thanks for fixing it! I tried and it works now. 💙💛
i can confirm that issue #4448 is fixed on my windows machine with current --dev version, too.
No branches or pull requests
What kind of issue is this?
If you’ve found a bug, please provide an information below.
Configuration
Operating system: Mac OS 11.7.1
PlatformIO Version (
platformio --version
): 6.1.5Description of problem
Documentations says:
But in reality if multiple sections contain same options, then the value will be taken from the first one, not the last.
Steps to Reproduce
Basically, just copy the example from the documentation:
and run
pio project config
:Actual Results
You can see, that lib_deps option value is taken from lib_deps1 section which comes first in the extends list.
Expected Results
Options from latter sections overwrite options from previous sections as it is stated in the documentation.
The text was updated successfully, but these errors were encountered: