esp_littlefs: Unable to compile on S3, as not finding littlefs submodule, as not imported using component manager.

When building a project for ESP32 S3, in Visual Studio Code Insiders on Windows 10, the component manager fetches the joltwallet__littlefs component, and adds it to the /managed_components folder. The folder structure is correct, but for /littlefs … see image below. It appears not to import the submodule, so the /littlefs folder is empty…

empty_littlefs

So the build fails as it cannot find

#include "littlefs/lfs.h"

Is there something I must add to .vscode settings.jason. I have added:

"idf.enableIdfComponentManager": true,

Build error log follows

> Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <

-- Found Git: C:/esp/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1") 
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/esp/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/esp/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/esp/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
Processing 3 dependencies:
[1/3] idf (4.4.0)
[2/3] joltwallet/littlefs (1.0.0)
[3/3] lvgl/lvgl (8.1.0)
CMake Error at C:/esp/esp-idf/tools/cmake/build.cmake:200 (message):
  Failed to resolve component 'esp_littlefs'.
Call Stack (most recent call first):
  C:/esp/esp-idf/tools/cmake/build.cmake:226 (__build_resolve_and_add_req)
  C:/esp/esp-idf/tools/cmake/build.cmake:512 (__build_expand_requirements)
  C:/esp/esp-idf/tools/cmake/project.cmake:378 (idf_build_process)
  CMakeLists.txt:6 (project)

Please, any help will be appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

alright @wreyford , I think I fixed it. I updated the CI so that it recursively checks out submodule when building the tarball for the IDF component manager. I also bumped the version so there’s now v1.0.1. I downloaded the tar from the official website and the files are there now, so hopefully this fixes your issue (lemme know!). Thanks for noticing and reporting this.