PIO intents to install an installed library on `pio run`

Hello there,

I’ve an old issue which is not so critical but sometimes it’s annoying especially if I’d work offline.

That it tries to install an already installed library with its specied version.

I’ve this test platformio.ini:

[common]
framework = arduino
lib_deps = 
	https://github.com/HamzaHajeir/H4#4.0.9
	https://github.com/HamzaHajeir/H4Tools#0.0.15
	https://github.com/HamzaHajeir/H4AsyncTCP#0.0.25
	https://github.com/HamzaHajeir/H4AsyncMQTT#1.0.0-rc12
	https://github.com/HamzaHajeir/ArmadilloHTTP#0.1.9
	https://github.com/HamzaHajeir/H4AsyncWebServer#0.0.11
	https://github.com/HamzaHajeir/h4plugins#3.5.5

[esp32]
platform = espressif32
lib_deps = 
	${common.lib_deps}
	AsyncUDP
	LittleFS
lib_ldf_mode = chain

build_flags = 
	-DCORE_DEBUG_LEVEL=0
	-DEMBEDDED_PLATFORM

[env:esp32s3-devkitc]
extends = common, esp32
board = esp32-s3-devkitc-1
build_flags = ${esp32.build_flags}
	-DBOARD_HAS_PSRAM

board_build.flash_mode = qio
board_build.arduino.memory_type = qio_qspi

Where I specify all needed libraries in a project.

When I run: pio run, I get this line for seconds (freezing if I’m offline):

Library Manager: Installing H4AsyncWebServer @ >=0.0.11

And to make it closer, this is also mentioned in a library.properties file of another library that depends on it (Hense which might be a starting point). But strangely the issue only applies on this exact one.

More log of pio run:

Library Manager: Installing H4AsyncWebServer @ >=0.0.11
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (2024.9.10) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
DEBUG: Current (esp-builtin) On-board (esp-builtin) 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.0.5+sha.c3f26f0
  • tool-esptoolpy @ 4.7.6
  • tool-mklittlefs @ 3.2.0
  • tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
  • tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
  • toolchain-riscv32-esp @ 12.2.0+20230208
  • toolchain-xtensa-esp32s3 @ 12.2.0+20230208
    LDF: Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Library Manager: Installing AsyncUDP
    Warning! Could not find the package with ‘AsyncUDP’ requirements for your system ‘windows_amd64’
    Found 32 compatible libraries
    Scanning dependencies…
    Dependency Graph
    |-- H4 @ 4.0.9+sha.6f2f510
    |-- H4Tools @ 0.0.15+sha.3c683d0
    |-- H4AsyncTCP @ 0.0.25+sha.231be9d
    |-- H4AsyncMQTT @ 1.0.0-rc12+sha.9d2b784
    |-- ArmadilloHTTP @ 0.1.9+sha.ac5bf86
    |-- H4AsyncWebServer @ 0.0.10+sha.8a78cbd
    |-- H4Plugins @ 3.5.5+sha.a01c966
    |-- LittleFS @ 3.0.5
    Building in release mode
    ……

Your repository tag 0.0.11 doesn’t match the version number in library.properties:

Consider also providing a library.json - See Creating Library — PlatformIO latest documentation

Remove AsyncUDP and LittleFS from your lib_deps!
These are built-in libraries.
Removing should also make this disappear:

Thanks for the answer and notes. Per LittleFS and AsyncUDP I remember I needed to add them backthen. I’ll try removing both while fixing the H4AsyncWebServer one.

UPDATE:
Your answer did solve the issue, given that I’ve already fixed the versioning, but didn’t reflect it to the environment.

Per library.json, I’ll consider doing that ofcourse.