PlatformIO Community

PIO fails to include dependency in CI

PIO seems to fail to find the dependency source inside the CI.
While it lists it in the dependency graph & downloads it, it then somehow fails to import it.
However, it works on my machine.

Output of the CI pipeline:

> pio run
********************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
********************************************************************************
Processing heltec_wifi_lora_32 (platform: espressif32; board: heltec_wifi_lora_32; framework: arduino)
--------------------------------------------------------------------------------
Platform Manager: Installing espressif32
Unpacking...
Platform Manager: espressif32 @ 3.2.1 has been installed!
The platform 'espressif32' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing platformio/toolchain-xtensa32 @ ~2.50200.0
Unpacking...
Tool Manager: toolchain-xtensa32 @ 2.50200.97 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.10006.0
Unpacking...
Tool Manager: framework-arduinoespressif32 @ 3.10006.210326 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.30000.0
Unpacking...
Tool Manager: tool-esptoolpy @ 1.30000.201119 has been installed!
Tool Manager: Installing platformio/tool-scons @ ~4.40100.2
Unpacking...
Tool Manager: tool-scons @ 4.40100.2 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/heltec_wifi_lora_32.html
PLATFORM: Espressif 32 (3.2.1) > Heltec WiFi LoRa 32
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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.10006.210326 (1.0.6) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep+, Compatibility ~ soft
Library Manager: Installing sandeepmistry/LoRa @ ^0.8.0
Unpacking...
Library Manager: LoRa @ 0.8.0 has been installed!
Library Manager: Installing nanopb/Nanopb @ ^0.4.5
Downloading...
Unpacking...
Library Manager: Nanopb @ 0.4.5 has been installed!
Library Manager: Installing olikraus/U8g2 @ ^2.28.8
Unpacking...
Library Manager: U8g2 @ 2.28.8 has been installed!
Library Manager: Installing git+https://github.com/cyberman54/libpax
git version 2.20.1
Cloning into '...'...
Library Manager: libpax @ 0.1.3+sha.43d327a has been installed!
Found 33 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <private-library> 0.0.1
|   |-- <U8g2> 2.28.8
|   |   |-- <SPI> 1.0
|   |   |-- <Wire> 1.0.1
|   |-- <LoRa> 0.8.0
|   |   |-- <SPI> 1.0
|   |-- <Nanopb> 0.4.5
|-- <LoRa> 0.8.0
|   |-- <SPI> 1.0
|-- <Nanopb> 0.4.5
|-- <U8g2> 2.28.8
|   |-- <SPI> 1.0
|   |-- <Wire> 1.0.1
|-- <libpax> 0.1.3+sha.43d327a
|-- <SPI> 1.0
|-- <Wire> 1.0.1
Building in release mode
Compiling .pio/build/heltec_wifi_lora_32/src/antenna.cpp.o
In file included from src/antenna.cpp:1:0:
include/antenna.h:4:18: fatal error: Lora.h: No such file or directory
**************************************************************
* Looking for Lora.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:Lora.h"
* Web  > https://platformio.org/lib/search?query=header:Lora.h
*
**************************************************************
compilation terminated.
========================= [FAILED] Took 23.25 seconds =========================

Lora.h or LoRa.h?

Keep in mind you need to respect the upper/lowercase of filenames on Linux systems, unlike Windows where you can disrespect them.

Thanks for the tip, the file name Lora.h is actually correct.

Are you sure?