You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using:
PlatformIO 6.1.16
VSCode: 1.96.4
PlatformIO IDE extension: 3.3.4
Our project makes use of submodules, including our own specific libraries into a project. A submodule has its own dependencies, listed in the library.json file.
Of course the dependencies listed in the submodule have their own dependencies.
Example:
ProjectX
/lib/Sense_Modbus (submodule)
miq19/eModbus
AsyncTcp restricted to platforms: ["espressif32"]
Ethernet restricted to platform: ["espressif32"]
ESPAsyncTCP restricted to platforms: ["espressif8266"]
When compiling and downloading dependencies using espressif32 platform, all three dependencies of eModbus are installed in .pio/libdeps and this will cause compile errors in the ESPAsyncTCP library.
When I open the Sense_Modbus library as a standalone project and build it using espressif32, the ESPAsyncTCP dependency is NOT downloaded.
There are no references to any source files from the ESPAsyncTCP library in the code, so it looks like the dependency finder does not use the platform setting when adding dependencies of dependencies of submodules to the list.
Tried to add library_compat_mode = strict or lib_compat to the library.json of Sense-Modbus but that does not change the outcome
This issue is created on advise from @maxgerhardt after posting on the forum at https://community.platformio.org/t/platform-restrictions-on-dependencies-of-submodule-in-project-not-honored/45493
Using:
PlatformIO 6.1.16
VSCode: 1.96.4
PlatformIO IDE extension: 3.3.4
Our project makes use of submodules, including our own specific libraries into a project. A submodule has its own dependencies, listed in the library.json file.
Of course the dependencies listed in the submodule have their own dependencies.
Example:
When compiling and downloading dependencies using espressif32 platform, all three dependencies of eModbus are installed in .pio/libdeps and this will cause compile errors in the ESPAsyncTCP library.
When I open the Sense_Modbus library as a standalone project and build it using espressif32, the ESPAsyncTCP dependency is NOT downloaded.
There are no references to any source files from the ESPAsyncTCP library in the code, so it looks like the dependency finder does not use the platform setting when adding dependencies of dependencies of submodules to the list.
Tried to add
library_compat_mode = strict
orlib_compat
to the library.json of Sense-Modbus but that does not change the outcomelibrary.json of Sense_Modbus (relevant part)
library.json of eModbus (relevant portion)
The text was updated successfully, but these errors were encountered: