I loaded a sketch and was surprised at getting a message about a missing library.
"DFRobotDFPlayerMini.h: No such file or directory"
Yet this library (one I've been using for two years) was in my \libaries folder. I noted 106 entries in that folder.
On then looking in Manage Libraries I encountered various puzzles which I'll describe later, but can I first just check that there is no recently emerged wide issue inolved.
I am not personally aware of any such sudden problems with libraries nor have I seen any reports of such problems from others
What have you changed recently ?
New library versions ?
New board definitions ?
New IDE version ? - unlikely if you are using IDE 1.x
Please describe the "various puzzles"
Did you inadvertently change your Sketchbook location in the preferences?
Thanks both. Just about to turn in for an early night, now using iPad. Will get back on the case tomorrow. But briefly:
Only a minority of the entries in my \libraries folder were listed by Sketch > Include library.
Manage Libraries was a mess. For instance, filtering by Installed reported many that were not and failed to show many that were. And I don’t recall that, previously, after using that Installed filter, every entry still offered an Install button. It was also much slower to respond.
It did occur to me that the global Microsoft IT issue today might have obscurely affected the IDE, but clearly not.
Another possibilty I’ve not yet tested was PC overheationg.
For five years playing around arduino I not even installed one library with library manager.
I consider more simple and convenient just download the library from github and copy it to my libraries folder manually.
You have been lucky. The library manager will catch errors in a library that a manual install will not. Yes, they are rare but I have seen it twice now in only a few years. There is NO downside to using the correct procedure though.
Whats kind of errors?
At 82 my memory isn't so good but one of them was a naming error. I think the files had the word library in them, and sorry but I don't remember the others.
TBH, I do not know what would happen if they were manually installed.
I have spent literally hundreds of hours debugging noobs errors due to messing with the libraries directly so I do have strong reasons for following the rules. Yes, I know your way was the only way before the arrival of the Library Manager. As a respected member of the community I hope you will at least not teach new people the manual way, and ideally teach them to use the library manager (and the import zip file).
BTW, now that I have your attention, is it possible to use a local git repo somehow? I am not trained in git and barely know my way around but was curious. I do have a local repo where I mirror the important to me library members in the hope I will get notified of changes.
Local git is useless to that.
To receive notifications, just subscribe in the library GitHub page.
I have done that in the past and am still getting some as I don't know how to turn them off. My git desktop tells me when the CODE changes, I don't care about the noise re issues. It's not a big deal one way or the other, I retired from professional programming in 2004, all I am doing now is learning new stuff as a hobby to keep my mind busy at 82.
Any library that was installed as a ZIP and is not in the official library list will not show in library manager. Maybe that is what is happening.
Thanks. No change this morning:
And that 31 of 106 is worded badly. In fact perhaps only a dozen of the 31 are actually in \libraries. Baffling. Looks like I have a lot of work ahead...
EDIT Sat 20 Jul 2024 11:10
Checking Preferences first would have saved some stress! Somehow it has changed to the default
C:\Users\terry\Documents\Arduino
from
C:\Users\terry\Dropbox\Electronics\Arduino\SKETCHES
At first sight, library now seems restored to normality.
You were spot on. Took me too long to check. No idea how it got changed.