wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

Dependencies in the file "library.properties" might not be solved correctly.

Open Koepel opened this issue 1 year ago • 4 comments

This problem was mentioned in the Discord channel. It will probably be solved in the library soon, but there might be a underlying problem with the dependencies. Library: https://github.com/forntoh/LcdMenu

The LcdMenu has depends=LiquidCrystal_I2C,LiquidCrystal in the file "library.properties". There is also a include in the library file "LcdMenu.h":

#ifndef USE_STANDARD_LCD
#include <LiquidCrystal_I2C.h>
#else
#include <LiquidCrystal.h>
#endif

It compiles in the Arduino IDE 1.8.19 in linux, but it does not compile in Wokwi. Wokwi says: "Build failed!", "Error installing LcdMenu: No valid dependencies solution found: dependency 'LiquidCrystal_I2C' is not available".

It is a known Issue: https://github.com/forntoh/LcdMenu/issues/168

Test project: https://wokwi.com/projects/404566441698707457

The problem with this specific library might be solved soon. The maker of the library has already a pull request to separate the Menu from the LCD display library.

Koepel avatar Jul 27 '24 12:07 Koepel

Hi Koepel

Did you get a feedback regarding this ? I have the same problem on Wokwi. I am blocked now with this. Thank you

RoneFRANCE avatar Sep 17 '24 12:09 RoneFRANCE

The LcdMenu has been improved, and the issue has been solved for others: https://github.com/forntoh/LcdMenu/issues/168 The problem still exists in Wokwi.

Perhaps Wokwi makes a difference between "LiquidCrystal_I2C" and "LiquidCrystal I2C" (underscore versus space).

A paying Wokwi user can upload a zip file with a library. That should bypass the dependencies in the "library.properties" file.

Koepel avatar Sep 17 '24 13:09 Koepel

If this is the case regarding "underscore versus space", it would then be to request a library name change here : https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c and dowload again the library on wokwi Do you know how to do that ? Thank you

RoneFRANCE avatar Sep 17 '24 13:09 RoneFRANCE

I get the same dependencies problem with the Library Manager of Arduino IDE 2 with version 4.1.0 of the LcdMenu library. It turns out that I did not read solution for the (closed) Issue. When the library is manually installed via a zip file, then it works. When the Library Manager is used, then there is a dependency problem for everyone.

Since the Wokwi Library Manager uses the same list as the Arduino IDE Library Manager, it behaves the same. Manually uploading a library in Wokwi (for paid users) is the solution, or else every source file from the library can be uploaded into the project (for non-paying Wokwi users).

Koepel avatar Sep 17 '24 16:09 Koepel