Skip to content

Library dependencies are installed but not available during build (PlatformIO) #5375

@DereIBims

Description

@DereIBims

Hi,

I’m not sure whether this is an issue with my library or with the PlatformIO core, but something seems off with dependency handling.

In my platformio.ini I added:

lib_deps = dereibims/HomeAssistantManager@^1.0.2

PlatformIO reports that the library’s dependencies (ArduinoJson, PubSubClient, and ArduinoLog) are being installed.
During the build, it again shows messages about installing these dependencies and then continues compiling.

Image

However, the build fails because none of those dependencies can be found by the compiler (missing includes / headers not found).

Image

From my understanding, dependencies declared in the library should be available automatically without having to add them manually to lib_deps in the project.

Is this expected behavior, or is there something wrong with how PlatformIO resolves library dependencies here?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions