*SOLVED* Suddenly stopphed uploading to UNO

Hello,

Weird one here. My Uno was working. Switched over to a Nano on a different sketch to test some code out.
Switched back to Uno and now I have an error. Checked that I have the board selected and com port. No idea. Switch back to Nano and this works! I am at a loss.

This is the error popping up for the Uno

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
In file included from C:\Users\MAGUIRES\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.cpp:22:0:

C:\Users\MAGUIRES\Documents\Arduino\libraries\DHT_sensor_library\DHT_U.h:25:29: fatal error: Adafruit_Sensor.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Just noticed, when I go back on the Nano the port says COM4 but the Uno says COM3.

Could this be the problem?

No, the com ports should be different. Thats normal.

That error indicates that the Adafruit_Sensor library is not installed or not installed correctly. I cannot come up with any expanation for how it could have preciously worked unless you also messed with installed libraries.

DrAzzy:
No, the com ports should be different. Thats normal.

That error indicates that the Adafruit_Sensor library is not installed or not installed correctly. I cannot come up with any expanation for how it could have preciously worked unless you also messed with installed libraries.

It’s done this before, then started working.

I have not done anything to the libraries, as I’ve not touched the program for a couple of weeks. Will try and uninstall and reinstall.

Just thinking, I may have installed the IDE or the associated libries to Onedrive. Could this be the problem?

If so, uninstall and save to hard drive?

Is it okay to save project sketches to Onedrive, for access from various computers.

SOLVED

Nonidea what happened as I never changed anything. But I uninstalled the libries and reinstalled the zip files. Then it worked.

exiledyorkie:
Just thinking, I may have installed the IDE or the associated libries to Onedrive. Could this be the problem?

If so, uninstall and save to hard drive?

Is it okay to save project sketches to Onedrive, for access from various computers.

There was a problem with earlier versions of the Arduino IDE and OneDrive, but that has been solved for the last couple of IDE versions. Other than that, I haven't seen any issues reported with using OneDrive. When getting odd behavior of the Arduino IDE, it would be one of the things I would be suspicious of, but that may be partly because I've never used OneDrive.

exiledyorkie:
SOLVED

Nonidea what happened as I never changed anything. But I uninstalled the libries and reinstalled the zip files. Then it worked.

I'm glad to see that you managed to get it working. Thanks for taking the time to post an update. Enjoy!
Per

pert:
There was a problem with earlier versions of the Arduino IDE and OneDrive, but that has been solved for the last couple of IDE versions. Other than that, I haven't seen any issues reported with using OneDrive. When getting odd behavior of the Arduino IDE, it would be one of the things I would be suspicious of, but that may be partly because I've never used OneDrive.
I'm glad to see that you managed to get it working. Thanks for taking the time to post an update. Enjoy!
Per

I was not aware of the IDE and Onedrive having problems in the past. I did instantly regret setting it up there as I suspected I may get error but its been fine so far, till this at least.
An update did pop up for the lcddisplay, so whether that clashed, I am not sure.

Thought i do an update as I’ve read so many threads not which have helped me out in one way or another, and it’s always handy when they post a solution to their own problem. So just following suite.

Thank you