This library has been troubling me. If manually extracted, the unzip stops at the 173rd file. I have also used the Arduino IDE 'add zip' approach and it just never comes back. But, somehow, anyway, the library installed - it shows up in the contributed list under 'include library'.
I tried a couple of the example programs (copy/paste from the github page) and after fussing about getting rid of the line numbers and an extra curly brace the programs will compile. A few seconds later the error message "Invalid library found in C:\Users\Owner\Documents\Arduino\libraries\arduino_plclib-master: C:\Users\Owner\Documents\Arduino\libraries\arduino_plclib-master" appears. Twice. The code works, that is it appears to behave as the docs say it should.
My question: If the library is invalid, how does the program compile successfully?
I guess it could be used like this but I don't like messages like the one above, even if they are printed in white.
Am I doing something wrong or is the issue elsewhere? Thoughts?
I just discovered that if just compiling, ctrl+r, no message is given. It's when uploading that the message appears.
The arduino_plclib-master.zip download only contains 154 files. If the 18 folders were added that comes to 172. I just did both a manual extraction and a Sketch > Include library > Add .ZIP Library... installation with no problems and no invalid library warnings. I recommend you to:
dougp:
I tried a couple of the example programs (copy/paste from the github page) and after fussing about getting rid of the line numbers
There's no need for any of that. The examples are included with the library. You will find them at File > Examples > arduino_plclib-master. If you do ever need to get a file from GitHub then you should always click the "Raw" button, then you would not need to mess with line numbers. I actually don't know how you managed to copy those even from the non-raw version of that page.
Your advice worked. Thank you. I think some of the problem arises from the fact that anything to do with opening the IDE and its features takes sooo lonnnng on this machine.
I'm not kidding, I timed it and it takes a little over four minutes for the IDE to do whatever it does to wake up. The Arduino splash comes up right away but then the waiting starts. I believe this is what happened with the library add - I tried to use it or do something before it was ready and, boom!
I deleted as per suggestion then started over and did other things for awhile. I can't really say how long it took because it was the next day 'til I checked it. In any event, it's working now.
Your advice worked. Thank you. I think some of the problem arises from the fact that anything to do with opening the IDE and its features takes sooo lonnnng on this machine.
I'm not kidding, I timed it and it takes a little over four minutes for the IDE to do whatever it does to wake up. The Arduino splash comes up right away but then the waiting starts. I believe this is what happened with the library add - I tried to use it or do something before it was ready and, boom!
I deleted as per suggestion then started over and did other things for awhile. I can't really say how long it took because it was the next day 'til I checked it. In any event, it's working now.