You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>voidsetup() {}
voidloop() {}
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.
The text was updated successfully, but these errors were encountered:
About the helper, it would need a few refactoring on that part (since now we only match exact errors).
I'm not sure what you meant by that. If you're referring to what I said:
Sometimes there will be a helpful comment near #include directives in a sketch that gives some information regarding where to find the library dependency.
by that I only meant that sometimes the author of a sketch will leave a comment in the code about the library dependency. If that line was highlighted after the "No such file or directory" error it would draw the user's attention to any comment the sketch author might have left near that line. For example:
// Available from: http://github.com/per1234/foobar
#include<foobar.h>
If you're talking about some magical check of the Library Manager index for a library that matches the missing filename (without the extension), or even just a link to open a Library Manager search for it, that could be nice. Adding the library.properties include property to the Library Manager index and search scope (#7604) would help this since that would make it more likely that the library would be found with a search for the filename.
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:
Compilation fails:
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.The text was updated successfully, but these errors were encountered: