Skip to content

Incorrect dialog when library dependency already installed #721

Open
@per1234

Description

@per1234

Describe the problem

Arduino library authors may specify library dependencies in the depends field of the library.properties metadata file. When using Library Manager to install a library that specifies dependencies which are not already installed, the user is offered the installation of the dependencies.

🐛 This dialog is currently presented even when the dependencies are already installed.

To reproduce

  1. Use Library Manager to install the "ArduinoRS485" library.
  2. Use Library Manager to install the "ArduinoModbus" library.
    (this library specifies a dependency on the "ArduinoRS485" library)
    🐛 A dialog appears which erroneously claims:

    The library ArduinoModbus:1.0.6 needs another dependency currently not installed:

        - ArduinoRS485

    Would you like to install the missing dependency?

image

Expected behavior

Dependencies installation dialog only appears when dependencies are not already installed.

Arduino IDE version

Original report

2.0.0-rc3

Last verified with

9a6a457

Operating system

Windows

Operating system version

11

Additional context

The issue occurs even after a restart, so it is not specific to the dependency being installed in the same session as the dependent library, as was done in the demo for the sake of simplicity.

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions