platformio / platformio-home

PlatformIO Home
https://docs.platformio.org/page/home/index.html
Apache License 2.0
93 stars 62 forks source link

Could not initialize project #6139

Open frankjian99 opened 1 year ago

frankjian99 commented 1 year ago

PIO Core Call Error: "Resolving esp32-c3-devkitm-1 dependencies...\r\nAlready up-to-date.\r\nUpdating metadata for the vscode IDE...\r\n\n\nUserSideException: Processing esp32-c3-devkitm-1 (platform: espressif32; board: esp32-c3-devkitm-1; framework: espidf)\r\n--------------------------------------------------------------------------------\r\nVerbose mode can be enabled via -v, --verbose option\r\nCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-c3-devkitm-1.html\r\nPLATFORM: Espressif 32 (6.3.2) > Espressif ESP32-C3-DevKitM-1\r\nHARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash\r\nDEBUG: 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)\r\nPACKAGES: \r\n - framework-espidf @ 3.50002.230601 (5.0.2) \r\n - tool-cmake @ 3.16.4 \r\n - tool-esptoolpy @ 1.40501.0 (4.5.1) \r\n - tool-idf @ 1.0.1 \r\n - tool-mconf @ 1.4060000.20190628 (406.0.0) \r\n - tool-ninja @ 1.9.0 \r\n - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) \r\n - toolchain-riscv32-esp @ 11.2.0+2022r1\r\nReading CMake configuration...\r\n-- Could NOT find Git (missing: GIT_EXECUTABLE) \r\n-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.\r\n-- Building ESP-IDF components for target esp32c3\r\n-- Project sdkconfig file C:/Users/frank/OneDrive/\xe6\x96\x87\xe4\xbb\xb6/PlatformIO/Projects/test/sdkconfig.esp32-c3-devkitm-1\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"C:/Users/frank/OneDrive/\xe6\x96\x87\xe4\xbb\xb6/PlatformIO/Projects/test/.pio/build/esp32-c3-devkitm-1/CMakeFiles/CMakeOutput.log\".\r\n\r\nCMake Warning at C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/git_submodules.cmake:4 (message):\r\n Git executable was not found. Git submodule checks will not be executed.\r\n If you have any build issues at all, start by adding git executable to the\r\n PATH and rerun cmake to not see this warning again.\r\nCall Stack (most recent call first):\r\n C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/idf.cmake:41 (include)\r\n C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/project.cmake:12 (include)\r\n CMakeLists.txt:2 (include)\r\n\r\n\r\nTraceback (most recent call last):\r\n\r\n File \"C:\Users\frank\.platformio\packages\framework-espidf\tools\kconfig_new\prepare_kconfig_files.py\", line 102, in \r\n\r\n main()\r\n\r\n File \"C:\Users\frank\.platformio\packages\framework-espidf\tools\kconfig_new\prepare_kconfig_files.py\", line 94, in main\r\n\r\n env.update(json.load(args.env_file))\r\n\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n File \"C:\Users\frank\.platformio\python3\Lib\json\init.py\", line 293, in load\r\n\r\n return loads(fp.read(),\r\n\r\n ^^^^^^^^^\r\n\r\nUnicodeDecodeError: 'cp950' codec can't decode byte 0xe6 in position 7027: illegal multibyte sequence\r\n\r\nTraceback (most recent call last):\r\n\r\n File \"C:\Users\frank\.platformio\packages\framework-espidf\tools\kconfig_new\confgen.py\", line 607, in \r\n\r\n main()\r\n\r\n File \"C:\Users\frank\.platformio\packages\framework-espidf\tools\kconfig_new\confgen.py\", line 255, in main\r\n\r\n env = json.load(args.env_file)\r\n\r\n ^^^^^^^^^^^^^^^^^^^^^^^^\r\n\r\n File \"C:\Users\frank\.platformio\python3\Lib\json\init.py\", line 293, in load\r\n\r\n return loads(fp.read(),\r\n\r\n ^^^^^^^^^\r\n\r\nUnicodeDecodeError: 'cp950' codec can't decode byte 0xe6 in position 7027: illegal multibyte sequence\r\n\r\nCMake Error at C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/kconfig.cmake:176 (message):\r\n Failed to run confgen.py\r\n (C:/Users/frank/.platformio/penv/.espidf-5.0.2/Scripts/python.exe;C:/Users/frank/.platformio/packages/framework-espidf/tools/kconfig_new/confgen.py;--list-separator=semicolon;--kconfig;C:/Users/frank/.platformio/packages/framework-espidf/Kconfig;--sdkconfig-rename;C:/Users/frank/.platformio/packages/framework-espidf/sdkconfig.rename;--config;C:/Users/frank/OneDrive/\xe6\x96\x87\xe4\xbb\xb6/PlatformIO/Projects/test/sdkconfig.esp32-c3-devkitm-1;--env-file;C:/Users/frank/OneDrive/\xe6\x96\x87\xe4\xbb\xb6/PlatformIO/Projects/test/.pio/build/esp32-c3-devkitm-1/config.env).\r\n Error 1\r\nCall Stack (most recent call first):\r\n C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/build.cmake:590 (__kconfig_generate_config)\r\n C:/Users/frank/.platformio/packages/framework-espidf/tools/cmake/project.cmake:447 (idf_build_process)\r\n CMakeLists.txt:3 (project)\r\n\r\n\r\n\r\n========================== [FAILED] Took 6.22 seconds =========================="

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.