Skip to content

Misleading error message when library folder name is >63 characters #7613

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

Closed
per1234 opened this issue May 20, 2018 · 0 comments
Closed

Misleading error message when library folder name is >63 characters #7613

per1234 opened this issue May 20, 2018 · 0 comments
Milestone

Comments

@per1234
Copy link
Collaborator

per1234 commented May 20, 2018

Using Arduino IDE 1.9.0 Beta Build 58 or Arduino IDE 1.8.6 Hourly 2018-05-15 10:41

  1. Download https://github.com/arduino-libraries/UnoWiFi-Developer-Edition-Lib/archive/d52adb2b411d4c54631b7a4745da780df685bef8.zip
  2. Sketch > Include Library > Add .ZIP Library > select the downloaded file > Open

The following error message is displayed in the console:

The library "UnoWiFi-Developer-Edition-Lib-d52adb2b411d4c54631b7a4745da780df685bef8" cannot be used.
Library names must contain only basic letters and numbers.
(ASCII only and no spaces, and it cannot start with a number)

The same error is also shown on IDE startup and when opening/closing Library Manager and Boards Manager if the library is manually installed.

In fact there are no invalid characters in the folder name. The problem is that the folder name is longer than 63 characters.

There seems to be no problem compiling the library so maybe there is no need for the IDE to impose this restriction? If it is necessary then I suggest the error message be updated.

Also, the term "Library names" in that error may be a bit misleading since Arduino users would more likely think of the "fancy name" defined by the library.properties name field as the library name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants