Hi. I have a project targeted to an ESP32-C3. It worked fine for several months, and then the other day I attempted to recompile it while not connected to the internet, using
pio run -e esp32c3 -t upload ....
and a lot of errors scrolled past, I’m afraid i didn’t record them because I thought this was a transient problem. I reconnected to the internet and tried again, but I had similar problems. Assuming there was something cached I did my best to uninstall PIO entirely and reinstall it, but since doing that I’m completely stuck. The following:
pio run
almost immediately returns with this:
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html
PLATFORM: Espressif 32 (6.12.0) > Espressif ESP32-C3-DevKitM-1
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-espidf @ 3.50500.0 (5.5.0)
- tool-cmake @ 3.30.2
- tool-esp-rom-elfs @ 0.0.1+20241011
- tool-esptoolpy @ 2.40900.250804 (4.9.0)
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-ninja @ 1.9.0
- tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
- tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
- toolchain-esp32ulp @ 1.23800.240113 (2.38.0)
- toolchain-riscv32-esp @ 14.2.0+20241119
Reading CMake configuration...
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Minimal build - OFF
-- Building ESP-IDF components for target esp32c3
-- Configuring incomplete, errors occurred!
fatal: not a git repository (or any of the parent directories): .git
CMake Error at C:/Users/stik/.platformio/packages/framework-espidf/tools/cmake/build.cmake:629 (message):
C:\Users\stik\.platformio\penv\.espidf-5.5.0\Scripts\python.exe: Error
while finding module specification for
'idf_component_manager.prepare_components' (ModuleNotFoundError: No module
named 'idf_component_manager')
Call Stack (most recent call first):
C:/Users/stik/.platformio/packages/framework-espidf/tools/cmake/project.cmake:740 (idf_build_process)
CMakeLists.txt:4 (project)
I’ve been poking around at this for a few hours now and I’m out of ideas. What’s causing this? Is the “not a git repository” thing causing the later error? Or are they likely different problems? My working directory (c:\stik\code\esp_project) is a git repo, I can successfully run git status on it. But i think the error message is about PIO running git commands elsewhere, perhaps?
Thanks