-
-
Notifications
You must be signed in to change notification settings - Fork 392
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
Detect libraries in Sketch Folder #2763
Comments
Additionally, this feature can also be added in
|
Hi @fedy0.
Even though the example in the specification shows the common use case of bundling a library's files with a sketch, the files in the #include "src/SomeLib/src/SomeLib.h"
I see we have another request for this feature at #1255.
I see we have another request for this feature at #2133 It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the previous feature requests. |
Hi The relative path doesn't work that's why I opened this request. Nevertheless, thank you for your prompt response. |
It works just fine for me, and for the many other users who use this feature. So I suspect user error. If you post over on Arduino forum I'm certain we will be able to help you get it working: |
Describe the request
The sketch folder structure described in the arduino-cli documentation does not work (i.e. the libraries added in the sketch folder can not be found by both the arduino-cli and the arduino-builder
![Image](https://private-user-images.githubusercontent.com/26013847/389099551-9bf9ded0-fe5c-48cc-b5e0-47232fade20e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMTc1ODIsIm5iZiI6MTczOTAxNzI4MiwicGF0aCI6Ii8yNjAxMzg0Ny8zODkwOTk1NTEtOWJmOWRlZDAtZmU1Yy00OGNjLWI1ZTAtNDcyMzJmYWRlMjBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDEyMjEyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE2MDBjOWZkZmVmZDhkNDIyM2NjN2JhYzBlMTQ5MDQ4ZjdhZjkyNWEwYzU4MTFkMDRkODkxNDA5OTIzM2IyMjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.J5kPfybyKyNvNwS_XzWYfZQsPfTH4vA2lkrAQ3d80Qc)
Describe the current behavior
It returns the error below when one tries to compile a sketch with a library whose location is within the sketch folder itself
> fatal error: SomeLib.h: No such file or directory
Arduino CLI version
1.1.1
Operating system
Linux
Operating system version
24.04
Additional context
If the build procedure can be made in such a way that the build process (both the cli & builder) checks the sketch folder for libraries first before the
Arduino/libraries
and/home/<user>/.arduino15/packages/<platform>/hardware/<core>/<version>/libraries
locations that would be great and in adherence to the sketch folder structure specificationIssue checklist
The text was updated successfully, but these errors were encountered: