wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
72 stars 17 forks source link

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

Open Koepel opened 2 months ago

Koepel commented 2 months ago

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 'LiquidCrystalI2C' 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.

RoneFRANCE commented 1 week ago

Hi Koepel

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

Koepel commented 1 week ago

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.

RoneFRANCE commented 1 week ago

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

Koepel commented 1 week ago

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).