Skip to content
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

LDF that picks wrong library version. #4860

Closed
gabryelreyes opened this issue Feb 12, 2024 · 2 comments
Closed

LDF that picks wrong library version. #4860

gabryelreyes opened this issue Feb 12, 2024 · 2 comments
Assignees
Labels
bug ldf Library Dependency Finder package management
Milestone

Comments

@gabryelreyes
Copy link

Configuration

Operating system:
Windows 11

PlatformIO Version (platformio --version):
PlatformIO Core, version 6.1.13

Description of problem

LDF that picks wrong library version when requirements are declared and multiple versions of the same library are installed.

Steps to Reproduce

Using ArduinoJson as an example dependency. This issue is not specific to ArduinoJson.

  1. Library A depends on ArduinoJson @ ~6.16.1, defined in its library.json file.
  2. Library B depends on ArduinoJson @ ~7.0.3, defined in its library.json file.
  3. Let LDF install the dependencies.

Actual Results

Library "A" depends on ArduinoJson @ ~6.16.1 but instead it gets compiled with ArduinoJson @ ~7.0.3, which is a dependency of "B".

Scanning dependencies...
Dependency Graph
|-- A
|-- ArduinoJson @ 7.0.3

Expected Results

Scanning dependencies...
Dependency Graph
|-- A
|-- ArduinoJson @ 6.16.1

Additional info

Issue first mentioned in #4823

Example project found here #4823 (comment)

@ivankravets ivankravets added bug ldf Library Dependency Finder package management labels Feb 12, 2024
@ivankravets ivankravets added this to the 6.1.14 milestone Feb 12, 2024
@ivankravets ivankravets self-assigned this Feb 12, 2024
@ivankravets
Copy link
Member

Please re-test with pio upgrade --dev.

@gabryelreyes
Copy link
Author

Works as intended, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ldf Library Dependency Finder package management
Projects
None yet
Development

No branches or pull requests

2 participants