Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Compilation error when including ESPAsyncWebServer #1444

@notsolowki

Description

@notsolowki

after updating to esp32 board 3.0.7, and using the latest async library i cannot compile successfully anymore it throws a bunch of errors. im using latest arduino ide. code was compiling until updating libraries and baords.

/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:180:22: error: 'File' in namespace 'fs' does not name a type
  180 |     using File = fs::File;
      |                      ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:181:20: error: 'FS' in namespace 'fs' does not name a type
  181 |     using FS = fs::FS;
      |                    ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:252:5: error: 'File' does not name a type
  252 |     File _tempFile;
      |     ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:317:15: error: 'FS' has not been declared
  317 |     void send(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |               ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:323:15: error: 'FS' has not been declared
  323 |     void send(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
      |               ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:325:15: error: 'File' has not been declared
  325 |     void send(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |               ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:331:15: error: 'File' has not been declared
  331 |     void send(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
      |               ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:366:43: error: 'FS' has not been declared
  366 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                                           ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:43: error: 'FS' has not been declared
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                                           ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:369:43: error: 'File' has not been declared
  369 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                                           ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:43: error: 'File' has not been declared
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                                           ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'void AsyncWebServerRequest::send(int&, const String&, const char*, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:318:14: error: request for member 'exists' in 'fs', which is of non-class type 'int'
  318 |       if (fs.exists(path) || (!download && fs.exists(path + asyncsrv::T__gz))) {
      |              ^~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:318:47: error: request for member 'exists' in 'fs', which is of non-class type 'int'
  318 |       if (fs.exists(path) || (!download && fs.exists(path + asyncsrv::T__gz))) {
      |                                               ^~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:319:27: error: call of overloaded 'beginResponse(int&, const String&, const char*&, bool&, AwsTemplateProcessor&)' is ambiguous
  319 |         send(beginResponse(fs, path, contentType, download, callback));
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:366:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  366 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:369:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const char*, bool, AwsTemplateProcessor)'
  369 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const String&, bool, AwsTemplateProcessor)'
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'void AsyncWebServerRequest::send(int&, const String&, const String&, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:323:140: error: call of overloaded 'send(int&, const String&, const char*, bool&, AwsTemplateProcessor&)' is ambiguous
  323 |     void send(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
      |                                                                                                                                        ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:317:10: note: candidate: 'void AsyncWebServerRequest::send(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  317 |     void send(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:323:10: note: candidate: 'void AsyncWebServerRequest::send(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  323 |     void send(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:325:10: note: candidate: 'void AsyncWebServerRequest::send(int, const String&, const char*, bool, AwsTemplateProcessor)'
  325 |     void send(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:331:10: note: candidate: 'void AsyncWebServerRequest::send(int, const String&, const String&, bool, AwsTemplateProcessor)'
  331 |     void send(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'void AsyncWebServerRequest::send(int, const String&, const char*, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:327:27: error: call of overloaded 'beginResponse(int&, const String&, const char*&, bool&, AwsTemplateProcessor&)' is ambiguous
  327 |         send(beginResponse(content, path, contentType, download, callback));
      |              ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:366:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  366 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:369:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const char*, bool, AwsTemplateProcessor)'
  369 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const String&, bool, AwsTemplateProcessor)'
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'void AsyncWebServerRequest::send(int, const String&, const String&, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:331:146: error: call of overloaded 'send(int&, const String&, const char*, bool&, AwsTemplateProcessor&)' is ambiguous
  331 |     void send(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
      |                                                                                                                                              ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:317:10: note: candidate: 'void AsyncWebServerRequest::send(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  317 |     void send(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:323:10: note: candidate: 'void AsyncWebServerRequest::send(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  323 |     void send(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(fs, path, contentType.c_str(), download, callback); }
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:325:10: note: candidate: 'void AsyncWebServerRequest::send(int, const String&, const char*, bool, AwsTemplateProcessor)'
  325 |     void send(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr) {
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:331:10: note: candidate: 'void AsyncWebServerRequest::send(int, const String&, const String&, bool, AwsTemplateProcessor)'
  331 |     void send(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) { send(content, path, contentType.c_str(), download, callback); }
      |          ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const String&, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:198: error: call of overloaded 'beginResponse(int&, const String&, const char*, bool&, AwsTemplateProcessor&)' is ambiguous
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                                                                                                                                                                                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:366:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  366 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:369:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const char*, bool, AwsTemplateProcessor)'
  369 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const String&, bool, AwsTemplateProcessor)'
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: In member function 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const String&, bool, AwsTemplateProcessor)':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:204: error: call of overloaded 'beginResponse(int&, const String&, const char*, bool&, AwsTemplateProcessor&)' is ambiguous
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                                                                                                                                                                                               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:366:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const char*, bool, AwsTemplateProcessor)'
  366 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:367:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int&, const String&, const String&, bool, AwsTemplateProcessor)'
  367 |     AsyncWebServerResponse* beginResponse(FS& fs, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(fs, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:369:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const char*, bool, AwsTemplateProcessor)'
  369 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:370:29: note: candidate: 'AsyncWebServerResponse* AsyncWebServerRequest::beginResponse(int, const String&, const String&, bool, AwsTemplateProcessor)'
  370 |     AsyncWebServerResponse* beginResponse(File content, const String& path, const String& contentType = emptyString, bool download = false, AwsTemplateProcessor callback = nullptr) { return beginResponse(content, path, contentType.c_str(), download, callback); }
      |                             ^~~~~~~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h: At global scope:
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:884:57: error: 'fs::FS' has not been declared
  884 |     AsyncStaticWebHandler& serveStatic(const char* uri, fs::FS& fs, const char* path, const char* cache_control = NULL);
      |                                                         ^~
In file included from /Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:924:
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebHandlerImpl.h:33:22: error: 'File' in namespace 'fs' does not name a type
   33 |     using File = fs::File;
      |                      ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebHandlerImpl.h:34:20: error: 'FS' in namespace 'fs' does not name a type
   34 |     using FS = fs::FS;
      |                    ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebHandlerImpl.h:42:5: error: 'FS' does not name a type; did you mean 'Fs'?
   42 |     FS _fs;
      |     ^~
      |     Fs
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebHandlerImpl.h:53:44: error: 'FS' has not been declared
   53 |     AsyncStaticWebHandler(const char* uri, FS& fs, const char* path, const char* cache_control);
      |                                            ^~
In file included from /Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/ESPAsyncWebServer.h:925:
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:77:22: error: 'File' in namespace 'fs' does not name a type
   77 |     using File = fs::File;
      |                      ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:78:20: error: 'FS' in namespace 'fs' does not name a type
   78 |     using FS = fs::FS;
      |                    ^~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:81:5: error: 'File' does not name a type
   81 |     File _content;
      |     ^~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:86:25: error: expected ')' before '&' token
   86 |     AsyncFileResponse(FS& fs, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                      ~  ^
      |                         )
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:87:25: error: expected ')' before '&' token
   87 |     AsyncFileResponse(FS& fs, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callback = nullptr) : AsyncFileResponse(fs, path, contentType.c_str(), download, callback) {}
      |                      ~  ^
      |                         )
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:88:27: error: expected ')' before 'content'
   88 |     AsyncFileResponse(File content, const String& path, const char* contentType = asyncsrv::empty, bool download = false, AwsTemplateProcessor callback = nullptr);
      |                      ~    ^~~~~~~~
      |                           )
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:89:27: error: expected ')' before 'content'
   89 |     AsyncFileResponse(File content, const String& path, const String& contentType, bool download = false, AwsTemplateProcessor callack = nullptr) : AsyncFileResponse(content, path, contentType.c_str(), download, callack) {}
      |                      ~    ^~~~~~~~
      |                           )
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h: In destructor 'virtual AsyncFileResponse::~AsyncFileResponse()':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:90:28: error: '_content' was not declared in this scope
   90 |     ~AsyncFileResponse() { _content.close(); }
      |                            ^~~~~~~~
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h: In member function 'virtual bool AsyncFileResponse::_sourceValid() const':
/Users/dontmatter/Documents/Arduino/libraries/ESP_Async_WebServer/src/WebResponseImpl.h:91:58: error: '_content' was not declared in this scope
   91 |     bool _sourceValid() const override final { return !!(_content); }
      |                                                          ^~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions