Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Compiling After Updating to Espressif 4.1.0 #19

Closed
Alaa-Aim opened this issue Apr 22, 2022 · 1 comment
Closed

Error Compiling After Updating to Espressif 4.1.0 #19

Alaa-Aim opened this issue Apr 22, 2022 · 1 comment

Comments

@Alaa-Aim
Copy link

Alaa-Aim commented Apr 22, 2022

@vortigont , I updated the Espressif 3.5.2 to 4.1.0 , after updating I get this error in compiling as shown below :

.pio/libdeps/espem/LITTLEFS/src/LittleFS.cpp: In member function 'virtual bool LITTLEFSImpl::exists(const char*)':
.pio/libdeps/espem/LITTLEFS/src/LittleFS.cpp:44:28: error: no matching function for call to 'LITTLEFSImpl::open(const char*&, const char [2])'
File f = open(path, "r");
^
In file included from .pio/libdeps/espem/LITTLEFS/src/LittleFS.cpp:17:
C:/Users/ALAA/.platformio/packages/framework-arduinoespressif32/libraries/FS/src/vfs_api.h:38:17: note: candidate: 'virtual fs::FileImplPtr VFSImpl::open(const char*, const char*, bool)'
FileImplPtr open(const char* path, const char* mode, const bool create) override;
^~~~
C:/Users/ALAA/.platformio/packages/framework-arduinoespressif32/libraries/FS/src/vfs_api.h:38:17: note: candidate expects 3 arguments, 2 provided
*** [.pio\build\espem\lib2f9\LITTLEFS\LITTLEFS.cpp.o] Error 1
.pio/libdeps/espem/EmbUI/EmbUI/EmbUI.cpp: In member function 'void EmbUI::begin()':
.pio/libdeps/espem/EmbUI/EmbUI/EmbUI.cpp:130:12: error: 'LittleFS' was not declared in this scope
while(!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)){
^~~~~~~~
.pio/libdeps/espem/EmbUI/EmbUI/EmbUI.cpp:130:12: note: suggested alternative: 'bitClear'
while(!LittleFS.begin(FORMAT_LITTLEFS_IF_FAILED)){
^~~~~~~~
bitClear
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp: In member function 'void EmbUI::save(const char*, bool)':
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:19:9: error: 'LittleFS' was not declared in this scope
LittleFS.rename(FPSTR(P_cfgfile),FPSTR(P_cfgfile_bkp));
^~~~~~~~
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:19:9: note: suggested alternative: 'bitClear'
LittleFS.rename(FPSTR(P_cfgfile),FPSTR(P_cfgfile_bkp));
^~~~~~~~
bitClear
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:23:22: error: 'LittleFS' was not declared in this scope
configFile = LittleFS.open(_cfg, "w"); // PSTR("w") использовать нельзя, будет исключение!
^~~~~~~~
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:23:22: note: suggested alternative: 'bitClear'
configFile = LittleFS.open(_cfg, "w"); // PSTR("w") использовать нельзя, будет исключение!
^~~~~~~~
bitClear
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp: In member function 'bool EmbUI::loadjson(const char*, ArduinoJson6194_F1::DynamicJsonDocument&)':
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:64:21: error: 'LittleFS' was not declared in this scope
File jsonFile = LittleFS.open(filepath, "r");
^~~~~~~~
.pio/libdeps/espem/EmbUI/EmbUI/config.cpp:64:21: note: suggested alternative: 'bitClear'
File jsonFile = LittleFS.open(filepath, "r");
^~~~~~~~
bitClear
*** [.pio\build\espem\libf25\EmbUI\config.cpp.o] Error 1
*** [.pio\build\espem\libf25\EmbUI\EmbUI.cpp.o] Error 1
=========================================================== [FAILED] Took 23.02 seconds ===========================================================

Environment Status Duration


espem FAILED 00:00:23.020
====================================================== 1 failed, 0 succeeded in 00:00:23.020 ======================================================

the main error are in LITTELFS library as shown in screen shoot
image

@vortigont
Copy link
Owner

vortigont commented Apr 22, 2022

every update brings some mess. Fixed in upstream vortigont/EmbUI@4520447
Make sure to clean your .pio dir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants