FIXED: Builtin *.h files result in: "No such file or directory"

Suddenly developed this issue. Don't know exactly what action may have caused it, but I had installing PlatformIO (wanted to learn something new).

Here's the status:

  • Unistalled EVERYTHING

Arduino IDE (and deleted associated directories)
VSCode & PlatformIO
Cleaned all references from RegEdit

  • Reinstalled just Arduino IDE v 1.8.10

Actions:

  • Open Sketch: Examples|10.StarterKit_BasicKit|p13_TouchSensorLamp
  • Board selected: "Aruduino/Genuino Uno"
  • run: "Verify"
  • Error: "CapacitiveSensor.h: No such file or directory"

Other sketches that include "interrupt.h" or "sleep.h" also result in the same error.

I could use help in troubleshooting this.

Thanks!

Have you actually got CapacitiveSensor.h on your PC and if so, where ?

What is your Sketchbook location set to ?

UKHeliBob:
Have you actually got CapacitiveSensor.h on your PC and if so, where ?

What is your Sketchbook location set to ?

  1. Bad example darn: Thought it was included with the default installation... considering it was part of the Examples.

If I start with a blank Sketch and simply add: "#include <interrupt.h>" I get the error. Long story is that a sketch I've been working on for over a year has been compiling successfully that uses ""#include <interrupt.h>" for Board: esp32 Devkit. It suddenly stopped working and gave the 'no file...' error. Couldn't figure it out so started with a clean slate, to no avail.

  1. Sketch Location is: "D:\Steve\Documents\Arduino" (Windows default location of User files)

Does the IDE support the ESP32 boards as standard or do you need to install support for them ?

UKHeliBob:
Does the IDE support the ESP32 boards as standard or do you need to install support for them ?

Yes, I did need to install additional libraries. However, this is a fresh install that's giving me issues with Uno board selected.

FIXED:

it appears this needs to be "#include <**avr/**interrupt.h>" in order to work. Don't know why now it's needed, when I didn't have it that way for years working with this sketch.

ugh.