Skip to content
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

Library not importable to arduino IDE via "Add .ZIP Library..." #12

Open
destroy-data opened this issue Jul 18, 2023 · 1 comment
Open

Comments

@destroy-data
Copy link

destroy-data commented Jul 18, 2023

Hi, during attempt to import this library using TinyRF-v1.7.zip I got following error:
image
Arduino library specification mandates that there should be root folder in zip file. The only change necessary to seamlessly import this library is to put all files in release zip to root folder with library name. I tested it in Arduino IDE 2.1.1, CLI version 0.32.3, but the same should be the case at least from version 1.8.10 when library specification rev.2.2 was introduced.
Source: https://arduino.github.io/arduino-cli/0.33/library-specification/#15-library-format-rev-22

I don't know if it's possible to add root folder to release without modifying repo in the same way (quick reasearch doesn't indicate that). If not then removal of installation method via arduino's ' "Add .ZIP Library..." from "How to install the library" section should be good enough.
EDIT: "Source code (zip)" and "Source code (tar.gz)" releases have mentioned root directory but "TinyRF-v1.7.zip" and "TinyRF_85-v1.7.zip" don't. Source code releases on the other hand have unnecessary, from Arduino's point of view, VS code files but they don't seem to do any harm.

@pouriap
Copy link
Owner

pouriap commented Jul 19, 2023

Thanks for bringing this into my attention. I will address the issue soon.

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