-
Notifications
You must be signed in to change notification settings - Fork 131
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Private libraries should ignore files starrting with a . when deciding wether a folder is a library or not #895
Comments
Can you throw away the arduinoPlugin directory and restart? This allows Sloeber to freshly fetch the arduinoPlugin code. |
My update was done "clean":
I think that should refresh everything Sloeber related - ? |
Assuming that this means: In windows->preferences->arduino there is a reference to a folder that contains a subfolder local that contains a file named local.h (mind the casing) I see the following problem: First thing to do is trying to add the library via Arduino->"add a library to the selected project".
If you can't find the local library there is something wrong in your (understanding of) the private libraries. As an independent open source project we value your submission, but we ask for support, either by helping us out coding (yeah, we do understand it does require time) or a Patreon contribution (starting from as low as 1$ a month): this allows us to support people who support us back! |
Jantje, You and I have corresponded about the library structure for Sloeber in the past. My library structure has been working with prior revs of Sloeber. The workspace has a 'libraries' folder in it; which has a 'local' folder in it; which has 'local.h' in that: The entire project (minus the I will try your suggestion to "add a library to the selected project", and thank you. But if that is a requirement, it is a new one. Until now (4.2), I had only to [ off topic: ]
I was a Patreon-patron of yours until they f'd up the payment structure and I left them. At that time, you and I arranged that I could support you independently, which I did on Dec 28; that PP transaction code ends with "162X". Recognizing patrons when we file issue reports has come up in the past. In the first posting to this issue, I stated in my sig that I am a supporter. Is there another way you'd prefer patrons to identify ourselves as such? jrobert-gh, on github, |
@jrobert-gh Sloeber 4.2 works with the folder structure as you provided. The only thing that changed in this area is in pre 4.2 you had to point to the parent of the library folder (in your case "ArduinoWksp/libraries") from 4.2 you can also point to libraries directly (like "ArduinoWksp/libraries/local"). But I think we are misunderstanding each other. What I'm proposing is steps to find the root cause. Not a solution. PS I have been in this situation quite a few times. In most cases the problem was user error like:
|
This is how I have referred Sloeber to my libraries, and still do. It has been working properly. Spelling & casing are all still correct. I tried the various options you suggested:
BTW: "Automatically import libraries based on includes" was/is already checked. That is the behavior I want and used to have. |
It is not clear to me what you mean with this. |
I see the problem :-) |
Thank you, but I'm afraid that didn't fix it here.
I removed everything from ArduinoWkspc/libraries that isn't a library-
folder. There are now only folders in 'libraries'. Each contains at
least a same-named .h file.
Then I deleted my Blink sample-project (files deleted too), built a
complete new one, and compiled it. It compiled OK.Then I added the line "#include <local.h>".
The compile then failed with:
"../sloeber.ino.cpp:8:19: fatal error: local.h: No such file or
directory".
'libraries/local' contains:
local.h
localWiFi.h
localutils.cpp
localutils.h
On Mon, Jan 8, 2018, at 2:18 PM, jantje wrote:
I see the problem :-)
The Add library to project does not find the local library.
As stated In 4.2 you can add the library itself to the private paths.> Where before V4.2 Libraries were assumed to be the chlidren of the
parent this logic could no longer be used in V4.2.> When I implemented is a "does the folder contain code"? logic.
Basically is there a *.c *.h ¨.cpp file in the folder.
In the new image you see there is a mcu_types.h in the libraries
folder which makes V4.2 think your pre V4.2 private hardware
(children folders are libraries) is a V4.2 type private hardware
library.> Solution remove all source code from the libraries folder.
— You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub[1], or mute the thread[2].>
|
Sloeber does caching on these libraries (for performance reasons) so you also need to restart sloeber after the file removal. |
No, even after a restart, "add library to project" shows the same "Import Arduino Libraries" dialog as in my screenshot about 3 posts back. |
Can I get a copy of that libraries folder for testing? |
Sure - It's on its way....
On Tue, Jan 9, 2018, at 4:41 PM, jantje wrote:
Can I get a copy of that libraries folder for testing?
— You are receiving this because you were mentioned. Reply to this
email directly, view it on GitHub[1], or mute the thread[2].>
|
With this update, '#include <local.h>' draws a "Unresolved inclusion: <local.h>" in the edit window and "fatal error: local.h: no such file or directory." in the CDT Build Console. The path to my libraries folder is correct; the libraries folder contains a 'local' folder which contains the 'local.h' file.
This was working with Sloeber 4.0. After upgrading to 4.0 -> 4.2, I created and built the Blink example from within Sloeber; it compiled correctly. Then I added "#include <local.h>" and got those error messages. In the sketch, I changed "#include <local.h>" to "#include <SimpleTimer.h>" (and confirmed that my library contained SimpleTimer.h, also
properly structured) and it got the same two errors.
Sloeber 4.2
MacOS 10.13.2
Arduino IDE app 1.6.12
jrobert-gh
(patron)
The text was updated successfully, but these errors were encountered: