Page 1 of 1

Can't build new projects on VSCode

Posted: Sun Jun 27, 2021 7:06 am
by jo5hua
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!

Re: Can't build new projects on VSCode

Posted: Tue Jul 13, 2021 1:56 pm
by ESP_bignacio
Can you offer more information about your setup ?

Here is how:
https://github.com/espressif/vscode-esp ... leshooting

I can't reproduce this locally.