Can't build new projects on VSCode

jo5hua
Posts: 2
Joined: Wed Jun 16, 2021 12:11 pm

Can't build new projects on VSCode

Postby jo5hua » 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!

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Can't build new projects on VSCode

Postby ESP_bignacio » Tue Jul 13, 2021 1:56 pm

Can you offer more information about your setup ?

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

I can't reproduce this locally.

Who is online

Users browsing this forum: No registered users and 60 guests