PlatformIO Community

Could Not Import Project Error while Importing Example Project

Hi,
I am trying to import the espidf-arduino-wifiscan example using PlatformIO on VSCode but I get this error:

Moderator edit: Re-formatted output

PIO Core Call Error: "The current working directory /home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan will be used for the project.

The next files/directories have been created in /home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File


Error: Processing esp32dev (platform: espressif32; framework: arduino, espidf; board: esp32dev)
--------------------------------------------------------------------------------
PackageManager: Installing toolchain-xtensa32 @ ~2.80200.0
toolchain-xtensa32 @ 2.80200.200226 has been successfully installed!
PackageManager: Installing framework-arduinoespressif32
framework-arduinoespressif32 @ c2da050 has been successfully installed!
Verbose mode can be enabled via-v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.12.0 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (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-arduinoespressif32 c2da050 
 - framework-espidf 3.40000.200303 (4.0.0) 
 - tool-cmake 3.16.4 
 - tool-esptoolpy 1.20600.0 (2.6.0) 
 - tool-ninja 1.7.1 
 - toolchain-esp32ulp 1.22851.190618 (2.28.51) 
 - toolchain-xtensa32 2.80200.200226 (8.2.0)
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version \"2.17.1\") 
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Project version: 1
-- Building ESP-IDF components for target esp32
-- Checking Python dependencies...
Python requirements from /home/maxwell/.platformio/packages/framework-espidf/requirements.txt are satisfied.
-- Configuring incomplete, errors occurred!
See also \"/home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log\".

fatal: not a git repository (or any of the parent directories): .git
CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:171 (add_library):
 The target name
 \"___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723\"
 is reserved or not valid for certain CMake features, such as generator
 expressions, and may result in undefined behavior.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:19 (set_property):
 set_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:185 (__component_set_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:23 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:185 (__component_set_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:189 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:130 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):
 get_property could not find TARGET
 ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.
 Perhaps it has not yet been created.
Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)


CMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:222 (message):
 CMake Error at
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake:87
 (list):

 list sub-command REMOVE_ITEM requires two or more arguments.

 

 

Call Stack (most recent call first):
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)
 /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)
 CMakeLists.txt:3 (project)



========================= [FAILED] Took 86.30 seconds =========================

Environment Status Duration
-------------- -------- ------------
esp32dev FAILED 00:01:26.300
esp-wrover-kit IGNORED
==================== 1 failed, 0 succeeded in 00:01:26.300 ===================="
Original

PIO Core Call Error: "The current working directory /home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan will be used for the project.\n\nThe next files/directories have been created in /home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan\ninclude - Put project header files here\nlib - Put here project specific (private) libraries\nsrc - Put project source files here\nplatformio.ini - Project Configuration File\n\n\nError: Processing esp32dev (platform: espressif32; framework: arduino, espidf; board: esp32dev)\n--------------------------------------------------------------------------------\nPackageManager: Installing toolchain-xtensa32 @ ~2.80200.0\ntoolchain-xtensa32 @ 2.80200.200226 has been successfully installed!\nPackageManager: Installing framework-arduinoespressif32\nframework-arduinoespressif32 @ c2da050 has been successfully installed!\nVerbose mode can be enabled via-v, --verbose option\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html\nPLATFORM: Espressif 32 1.12.0 > Espressif ESP32 Dev Module\nHARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash\nDEBUG: Current (esp-prog) External (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)\nPACKAGES: \n - framework-arduinoespressif32 c2da050 \n - framework-espidf 3.40000.200303 (4.0.0) \n - tool-cmake 3.16.4 \n - tool-esptoolpy 1.20600.0 (2.6.0) \n - tool-ninja 1.7.1 \n - toolchain-esp32ulp 1.22851.190618 (2.28.51) \n - toolchain-xtensa32 2.80200.200226 (8.2.0)\nReading CMake configuration...\n-- Found Git: /usr/bin/git (found version \"2.17.1\") \n-- IDF_TARGET not set, using default target: esp32\n-- The C compiler identification is GNU 8.2.0\n-- The CXX compiler identification is GNU 8.2.0\n-- The ASM compiler identification is GNU\n-- Found assembler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc\n-- Check for working C compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc -- works\n-- Detecting C compiler ABI info\n-- Detecting C compiler ABI info - done\n-- Detecting C compile features\n-- Detecting C compile features - done\n-- Check for working CXX compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++\n-- Check for working CXX compiler: /home/maxwell/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++ -- works\n-- Detecting CXX compiler ABI info\n-- Detecting CXX compiler ABI info - done\n-- Detecting CXX compile features\n-- Detecting CXX compile features - done\n-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.\n-- Project version: 1\n-- Building ESP-IDF components for target esp32\n-- Checking Python dependencies...\nPython requirements from /home/maxwell/.platformio/packages/framework-espidf/requirements.txt are satisfied.\n-- Configuring incomplete, errors occurred!\nSee also \"/home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log\".\n\nfatal: not a git repository (or any of the parent directories): .git\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:171 (add_library):\n The target name\n \"___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723\"\n is reserved or not valid for certain CMake features, such as generator\n expressions, and may result in undefined behavior.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:19 (set_property):\n set_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:185 (__component_set_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:23 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:185 (__component_set_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:175 (__component_add)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:146 (idf_build_component)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:181 (__project_component_dir)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:189 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:243 (__project_init)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:130 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:5 (get_property):\n get_property could not find TARGET\n ___idf_framework-arduinoespressif32@src-c69fc9322995db5694e2741d307d9723.\n Perhaps it has not yet been created.\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:132 (__component_get_property)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:209 (__component_write_properties)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\nCMake Error at /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/component.cmake:222 (message):\n CMake Error at\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/scripts/component_get_requirements.cmake:87\n (list):\n\n list sub-command REMOVE_ITEM requires two or more arguments.\n\n \n\n \n\nCall Stack (most recent call first):\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/build.cmake:404 (__component_get_requirements)\n /home/maxwell/.platformio/packages/framework-espidf/tools/cmake/project.cmake:337 (idf_build_process)\n CMakeLists.txt:3 (project)\n\n\n\n========================= [FAILED] Took 86.30 seconds =========================\n\nEnvironment Status Duration\n-------------- -------- ------------\nesp32dev FAILED 00:01:26.300\nesp-wrover-kit IGNORED\n==================== 1 failed, 0 succeeded in 00:01:26.300 ===================="

I have espressif platform installed

Try moving the project folder to C: and delete the folder .pio/build.
Long path names in Windows breaks some of the Python scripts.

1 Like

Another thing to check is why this error resulted from CMake… which the log file at /home/maxwell/Documents/PlatformIO/Projects/200422-010756-espidf-arduino-wifiscan/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log may (or may not!) shed some light on.

At first I thought that perhaps this line is just a warning Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER. … but then later on there is mention of fatal: not a git repository (or any of the parent directories): .git … so maybe it really is an error.

I am on Linux Mint(It’s Debian based)

This is the output of that file:
https://paste.ofcode.org/C7Ee7Qqn5p7va4hwwxHFM2

1 Like

There some some commits which look like important bugfixes, but are not released yet. The first thing you should try is to set

platform = espressif32@https://github.com/platformio/platform-espressif32.git

in the platformio.ini to get the upstream version of the platform.

1 Like

I am using the latest version 1.12

1 Like

The “latest released” version 1.12 is still different from the bleeding-edge version in this repository. Modifying the platformio.ini with the above line give a different / no error?

So the error is occurring when I import the project via PIO Home -> Project Examples.

The import itself fails so I cannot load the .ini file. I even tried on Windows.

Then what I did is directly download the repo and opened the example folder on VS Code. Then I tried building it but I am getting this error:

CMake Error at .pio/build/esp32dev/CMakeFiles/git-data/grabRef.cmake:41 (file):
  file failed to open for reading (No such file or directory):

C:/Users/mauli/Documents/PlatformIO/Projects/200424-183745-espidf-arduino-blink/.pio/build/esp32dev/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/build.cmake:68 (git_describe)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/build.cmake:159 (__build_get_idf_git_revision)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/idf.cmake:43 (__build_init)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:2 (include)


CMake Error at .pio/build/esp32dev/CMakeFiles/git-data/grabRef.cmake:41 (file):
  file failed to open for reading (No such file or directory):

C:/Users/mauli/Documents/PlatformIO/Projects/200424-183745-espidf-arduino-blink/.pio/build/esp32dev/CMakeFiles/git-data/head-ref
Call Stack (most recent call first):
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:80 (include)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/third_party/GetGitRevisionDescription.cmake:90 (get_git_head_revision)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/project.cmake:37 (git_describe)
  C:/Users/mauli/.platformio/packages/framework-espidf/tools/cmake/project.cmake:333 (__project_get_revision)
  CMakeLists.txt:3 (project)

I even tried setting the platform variable in platform.ini as you mentioned. But I am getting the same error.

Sorry the line was wrong, it’s

platform = https://github.com/platformio/platform-espressif32.git

without this line I also get an error, but with the above line I get:

>pio run -e esp32dev
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git; framework: arduino, espidf; board: esp32dev)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PlatformManager: Installing platform-espressif32
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\.platformio\platforms\_tmp_installing-e_r0wlwx-package'...
remote: Enumerating objects: 432, done.
remote: Counting objects: 100% (432/432), done.
remote: Compressing objects: 100% (353/353), done.
remote: Total 432 (delta 162), reused 297 (delta 59), pack-reused 0
Receiving objects: 100% (432/432), 317.28 KiB | 317.00 KiB/s, done.
Resolving deltas: 100% (162/162), done.
espressif32 @ 6de6681 has been successfully installed!
Uninstalling framework-arduinoespressif32 @ c2da050:    [OK]
Uninstalling toolchain-xtensa32 @ 2.80200.200226:       [OK]
The platform 'https://github.com/platformio/platform-espressif32.git' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.
PackageManager: Installing toolchain-xtensa32 @ ~2.80200.0
[...]
esptool.py v2.6
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  11.6% (used 37900 bytes from 327680 bytes)
Flash: [======    ]  59.7% (used 626316 bytes from 1048576 bytes)
============================ [SUCCESS] Took 492.78 seconds ============================

Environment     Status    Duration
--------------  --------  ------------
esp32dev        SUCCESS   00:08:12.783

@valeros can you reproduce the error when compiling https://github.com/platformio/platform-espressif32/tree/master/examples/espidf-arduino-wifiscan on the released version, but no error on the bleeding edge version? Maybe the current dev branch should be released

2 Likes

I am not sure if there was an update. I opened and tried importing again and it worked. It even built the project successfully without any errors. (I didn’t need to change the default platform variable).

image

Not sure what happened. Thanks anyway @maxgerhardt

1 Like

Had exactly the same problem when building a Test-Project in RUST:

The Problem seems to happen if you do have a Project with a .git-directory (git init was called) but you did not make any commits, so the head-ref is not pointing anywhere.

doing a simple git commit or deleting the .git directory solved the problem for me.