Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • 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
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory (Read 6286 times)
turbok
Newbies
*
Offline


Posts: 3
Joined: Feb 9th, 2012
ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Nov 1st, 2020 at 1:44pm
Print Post  
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
Joined: Feb 9th, 2012
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #1 - Nov 1st, 2020 at 4:48pm
Print Post  
And now with the attachments...
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #2 - Nov 1st, 2020 at 10:35pm
Print Post  
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
WWW  
IP Logged
 
turbok
Newbies
*
Offline


Posts: 3
Joined: Feb 9th, 2012
Re: ESP32 ESPAsyncWebServer - fatal error: FS.h: No such file or directory
Reply #3 - Nov 2nd, 2020 at 8:05pm
Print Post  
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 TopicPrint