Skip to content

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

Closed
@per1234

Description

@per1234

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions