I had a PC happily running sketches for years and apart from Windows 10 updates, left it to it's own devices.
I needed to update a sketch that previously had been and still was working fine.
When I made one small change and tried to compile it, it failed at the first included library.
So commented that out.
Then onto the next and so on. It was coming up "file not found" or "library does not exist".
I did find them in file explorer, but now they were in the Onedrive Documents folder.
I can only think this might have happened during a trial backup to Onedrive.
Normally, I backup to a local NAS RAID setup, but mistakenly thought that having a cloud backup might be better (a previous NAS, Synology, had crashed both Seagate drives).
Now I have the task of unravelling this mess.
Fortunately, another PC does not have any of the Arduino stuff on Onedrive and running the failing sketches on that had no problems.
The libraries included with the IDE in the IDE program location were not affected.
I'm looking for a quick fix before getting rid of the Onedrive connection.
Could I change the sketchbook location from the default in Preferences to the Onedrive location, or would that be inviting more trouble?
Could I add the relocated libraries directly to the sketches as tabs? I might have done it before but can't find where.
A typical missing library is AltSoftSerial.h.
How much of the library folder would need to go into the tab or tabs and would it need structuring like a void() function?
I think that about half a dozen libraries are affected and the sketch is pretty large with quite a few tabs already and will only run on a Mega 2560.