-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Allow cores to bundle examples #4187
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
Comments
exactly, I think that the current check is correct (a library without source code is not a library) and the proper fix for this is to add support for examples in cores. |
The workaround is to put a dummy .h file in the library folder. See NicoHood/HoodLoader2@4d95de6 for an example. |
I have submitted a pull request to the AMEL-Tech Boards repository to add the dummy file: ameltech/sme-arduino-core#9 |
hi @per1234, I was just coming back here to write adding a dummy .hpp with same name as the library one works ok. I will merge your PR for SME right now and add the file in my own branch for Atmel AVR Xplained minis. I consider this as a temporary workaround. @cmaglie, once support for examples in cores will arrive, these dummy library folders will be turned to the proper format. Thanks. |
/cc @00alis for UX feedback |
Closing as duplicate of #3297 |
I have tested 2 different Board Manager packages containing a library with only Out-of-the-Box examples with same result:
A quick discussion with @cmaglie may lead the issue is due to lack of source code because the library contains only specific examples in .ino form. This would make sense regarding how Arduino libraries are formalized.
Is it an issue or are we trying to use an IDE mechanism not planned for that?
If latter case, would it be possible and easy to allow Board Manager Packages to embed specific examples?
I think mainly about having a formalized 'examples' folder at package root, ie same level as also optional 'libraries' folder.
Thanks,
T.
The text was updated successfully, but these errors were encountered: