Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory (Read 120 times)
turbok
Newbies
*
Offline



Posts: 3
ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Nov 1st, 2020 at 1:44pm
 
I am getting an error related to FS.h when I try to compile sketches using ESPAsyncWebServer on ESP32 in VisualMicro.

For example, attempting to compile the simple_server.ino example provided with ESPAsyncWebServer gives the following message:

ESPAsyncWebServer.h: 27:16: fatal error: FS.h: No such file or directory

The same sketch compiles with no problems for me in the Arduino IDE.
I have the same issue with other sketches and examples using that library.

Verbose output from VisualMicro attached.

Thanks in advance for any suggestions on what to try.
Back to top
 
 
IP Logged
 
turbok
Newbies
*
Offline



Posts: 3
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #1 - Nov 1st, 2020 at 4:48pm
 
And now with the attachments...
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #2 - Nov 1st, 2020 at 10:35pm
 
Hi

Thanks for the info.

I see you have switched off Deep Search for Libraries. When you switch off Deep Search for Libraries it is then your responsbility to ensure that any libraries you need are #included in the .Ino code otherwise they are unknown.

It looks like the library you are using needs the FS library so either switch deep search back on or add #include <FS.h> into the project_name.ino

Does this help?

Back to top
 

Tim Leek
home
WWW  
IP Logged
 
turbok
Newbies
*
Offline



Posts: 3
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #3 - Nov 2nd, 2020 at 8:05pm
 
Great - yes thank you very much. Adding #include <FS.h> resolved it.

I had tried adding: #include "FS.h"

But had forgotten the difference between <> and "" in #include statements
https://www.arduino.cc/reference/en/language/structure/further-syntax/include/

Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print