Blink sketch wont verify/compile

I've been using the Arduino IDE for 2 -3 years without issue.Last used (successfully) about 3 weeks ago. Been using both ESP32 and Arduino boards without a problem. Now, today I cant get anything to verify /compile. I've uninstalled the IDE, deleted re-installed IDE v 1.18.19 from the Aruino website. No change, even the basic Blink sketch wont verify / compile.

Get message :
"
exit status 1
Error compiling for board Arduino Uno.
Could not find boards.txt in C:\Users\daveb\OneDrive\Documents\Arduino\hardware\cores\esp32. Is it pre-1.5?
WARNING: Error loading hardware folder C:\Users\daveb\OneDrive\Documents\Arduino\hardware\cores
No valid hardware definitions found in folder cores.
Could not find boards.txt in C:\Users\daveb\OneDrive\Documents\Arduino\hardware\docs\source. Is it pre-1.5?....."

and so on for for many lines.

Platform is Windows 11, antivirus was disabled during IDE download and install. Device manager has detected the board, Arduino Uno, installed on Com3.
In all other respects Windows seems to be working fine, all other apps are working as expected.

I'm at a loss to understand why a working IDE has suddenly started doing this. Any assistance/ suggestions would be welcome.

Thanks,
Dave

Hi @davebryce.

The problem that produces these warnings you shared will not directly cause a compilation error:

So I think the output you omitted might contain some valuable information.

I'm going to ask you to provide some additional information that might allow us to determine the cause of the problem.

Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Check the box next to "Show verbose output during: ☐ compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE menus.
  5. After the compilation fails you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
    This copies the full output to the clipboard.
  6. Open a forum reply here by clicking the Reply button.
  7. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  8. Press Ctrl+V.
    This will paste the compilation output into the code block.
  9. Move the cursor outside of the code tags before you add any additional text to your reply.
  10. Click the Reply button to post the output.

Update, I renamed/moved the .... /documents/Arduino folder, reinstalled IDE and all seems OK now.
Would still like to unserstand what happened though. Sorry to bother you guys.

By for now.

Dave

I think it will be difficult to identify the problem without more information. I simulated the invalid structure you had under C:\Users\daveb\OneDrive\Documents\Arduino\hardware and it did not cause compilation to fail for me (I was able to reproduce the warnings you got though), so I still believe the warnings were not directly related.

Could your OneDrive access have been slow or intermittent?

Thanks to all who responded. I'm working my way through the suspect folder to establish where the problem lies. May just be a corrupted file. If I find the answer I'll post an update. Meanwhile, thanks again.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.