Custom library doesn't load dependencies

Hi, I’m making a custom library using the FastLED library as a dependency but even when I specifiy it in the library.json dependencies it won’t load.

Here’s my library.json : FastLEDitor/library.json at main · FastLEDitor/FastLEDitor · GitHub

Here’s the error I get when compiling:

Library Manager: Installing fastled/FastLED @ >=3.3.0
Library Manager: Installing bblanchon/ArduinoJson @ >=6.18.0
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (6.9.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Warning: Ignored `fastled/FastLED` dependency for `FastLEDitor` library
Warning: Ignored `bblanchon/ArduinoJson` dependency for `FastLEDitor` library

Here’s the code I’m using:

I have scoured the forum but I have not found a solution. Obviously I don’t want the people using my library to have to setup lib_deps in the platformio.ini.

The version fields are wrong.
Replace >= with ^

See dependencies — PlatformIO latest documentation

Thank you for your answer but unfortunately changing the >= with ^ still gives me the same error.

I also tried earlier with no version specified but it didn’t work either.

The dependencies are not correct. You have to split name and owner like so:

    "dependencies": [
        {
            "name": "FastLED",
            "owner": "fastled",
            "version": "^3.3.0"
        },
        {
            "name": "ArduinoJson",
            "owner": "bblanchon",
            "version": "^6.18.0"
        }
    ]

It worked thank you!

Extra tip: For developing a library locally you can use symlink. See Platformio ignores dependencies of local library - #2 by sivar2311

Thanks for the extra tips ill try that out