-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct dependency name in metadata #2
Conversation
The depends field of the library.properties metadata file specifies the dependencies that should be installed along with this library via Library Manager. This requires the use of the library name that is locked in when a library is submitted to Library Manager. The "LiquidCrystal I2C" was named that way when it was added to Library Manager. Since then, the library maintainer changed the name in the metadata, but this does not affect the name in Library Manager (all the releases made under the new name are rejected by the indexer).
But isnt that an issue with the library manager? Did you report that issue? It should either ignore the error or output a warning message. |
There is an error in Arduino IDE (I tested with 1.8.15), but it is unfortunately quite cryptic:
Arduino CLI used to have a problem with incorrect library names in the
The current development strategy is that non-GUI specific fixes and enhancements are made in Arduino CLI from whence they propagate to all the other tooling based on Arduino CLI, which includes both the classic Arduino IDE and Arduino IDE 2.x. But that process is very slow with the classic Arduino IDE because there is still quite a bit of non-GUI Java code that hasn't been replaced by switching to using the equivalent functionality of Arduino CLI. So it's not only a matter of updating the Arduino CLI version to the one with the fix. That is not a problem with Arduino IDE 2.x because it was built around Arduino CLI from the very start. In general, Arduino CLI now provides a helpful error when the library dependency is incorrect:
It turns out that there is a very corner case bug in Arduino CLI (and thus in Arduino IDE 2.x) that causes it to hang when attempting to install the specific combination of dependencies specified by That Arduino CLI bug only occurs with the previous incorrectly spelled "LiquidCrystal_I2C" dependency. It will no longer occur when installing the releases of NanoProtoShield with the fix. Arduino Lint's rule |
You're welcome. I'm glad to hear Library Manager is now able to provide a complete installation. |
The
depends
field of the library.properties metadata file specifies the dependencies that should be installed along with this library via Library Manager. This requires the use of the library name that is locked in when a library is submitted to Library Manager.The "LiquidCrystal I2C" was named that way when it was added to Library Manager. Since then, the library maintainer changed the name in that library's metadata, but this does not affect the name in Library Manager (all the releases made under the new name are rejected by the indexer).