Incompatible architecture warning uses incorrect library name #1731
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Using Arduino IDE 1.9.0 Beta build 58 and Arduino IDE 1.8.6 Hourly Build 2018-05-15 10:41
The console displays the following warning:
and
and
But the
name
value defined in library.properties for this library isRobot Motor
. The "Robot_Motor" in the warning is the library folder name.I realize the difference between the two is not very dramatic in this demonstration. I chose this library because Robot Motor library is bundled with the Arduino IDE so it provides a minimal demonstration of the issue. The issue is more noticeable with other libraries where the folder name differs more significantly from the
name
value.The Arduino IDE uses the
name
value whenever referring to a library (including the invalid category warning shown in the console) so this causes an inconsistent user experience.Two of these messages are already using information from library.properties so I can't imagine it would be too difficult to use the
name
value as well (falling back on the folder name when a library.properties file is absent).The text was updated successfully, but these errors were encountered: