Description
Using Arduino IDE 1.9.0 Beta Build 58 or Arduino IDE 1.8.6 Hourly 2018-05-15 10:41 w/ Windows 10 64 bit
Compile the following sketch:
#include <foobar.h>
void setup() {}
void loop() {}
Compilation fails:
C:\Users\per\AppData\Local\Temp\arduino_modified_sketch_114310\sketch_may20d.ino:1:20: fatal error: foobar.h: No such file or directory
but there is no error highlight on line 1, as would be expected with a compilation error caused by sketch code.
I'm not sure how difficult this would be to resolve, but "No such file or directory" is probably the most common error we see on the Arduino forum. The users encountering this error are usually very new to Arduino (they haven't learned they need to install libraries yet) and so any additional clues to the problem could be very helpful. Sometimes there will be a helpful comment near #include
directives in a sketch that gives some information regarding where to find the library dependency.