Skip to content

Conversation

@per1234
Copy link

@per1234 per1234 commented Jul 10, 2018

This change causes the example sketch to be accessible via the Arduino IDE's File > Examples > Arduino_LCD_Menu menu after the library is installed.

The Arduino IDE does recognize example sketches in the root of the library folder when their filename matches the folder name and this example filename does match the repository name. However, GitHub names the folder in the .zip file attained via Clone or Download > Download ZIP by appending the branch name to the repository name so this causes a name mismatch and the example sketch to not be recognized in its previous location.

The Arduino Library specification says that examples sketches should be stored under the examples folder so there is no guarantee that example sketches stored outside of that location will continue to be recognized

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#library-examples

This PR proposes a subset of the changes previously proposed in #2. Since that pull request has not been merged after years, it's hoped that maybe a less extensive change would be accepted.

This change causes the example sketch to be accessible via the Arduino IDE's File > Examples > Arduino_LCD_Menu menu after the library is installed.

The Arduino IDE does recognize example sketches in the root of the library folder when their filename matches the folder name and this example filename does match the repository name. However, GitHub names the folder in the .zip file attained via Clone or Download > Download ZIP by appending the branch name to the repository name so this causes a name mismatch and the example sketch to not be recognized in its previous location.

The Arduino Library specification says that examples sketches should be stored under the examples folder so there is no guarantee that example sketches stored outside of that location will continue to be recognized

Reference:
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#library-examples
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

Successfully merging this pull request may close these issues.

1 participant