Can't build new projects on VSCode
Posted: Sun Jun 27, 2021 7:06 am
Hi, I just installed ESP-IDF on VSCode, and when I tried running an example project, it built just fine and I was able to confirm my configuration was working. However, when I tried to build a new project using a template (as in: ESP-IDF: New Project from the Commands bar), I get the following error:
[Codebox]
CMake Error at /home/joshua/esp/esp-idf/tools/cmake/component.cmake:224 (message):
CMake Error at
/home/joshua/Projects/vscode_workspace/test/components/esp-idf/CMakeLists.txt:2
(project):
project command is not scriptable
Call Stack (most recent call first):
/home/joshua/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:97 (include)
/home/joshua/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:115 (__component_get_requirements)
Call Stack (most recent call first):
/home/joshua/esp/esp-idf/tools/cmake/build.cmake:414 (__component_get_requirements)
/home/joshua/esp/esp-idf/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
The terminal process "bash '-c', 'cmake -G Ninja ..'" terminated with exit code: 1.
[/Codebox]
I'm pretty new to this and can't figure out why this is happening and would like to fix it. How would I fix this? Thank you!
[Codebox]
CMake Error at /home/joshua/esp/esp-idf/tools/cmake/component.cmake:224 (message):
CMake Error at
/home/joshua/Projects/vscode_workspace/test/components/esp-idf/CMakeLists.txt:2
(project):
project command is not scriptable
Call Stack (most recent call first):
/home/joshua/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:97 (include)
/home/joshua/esp/esp-idf/tools/cmake/scripts/component_get_requirements.cmake:115 (__component_get_requirements)
Call Stack (most recent call first):
/home/joshua/esp/esp-idf/tools/cmake/build.cmake:414 (__component_get_requirements)
/home/joshua/esp/esp-idf/tools/cmake/project.cmake:396 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
The terminal process "bash '-c', 'cmake -G Ninja ..'" terminated with exit code: 1.
[/Codebox]
I'm pretty new to this and can't figure out why this is happening and would like to fix it. How would I fix this? Thank you!