Page 1 of 2

Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 5:48 am
by orbitcoms
The latest extension for VSCODE just installed itself (Ver 1.0.3)

Now none of my projects compile and not sure how to fix it.

I get error below.

CMake Error at C:/esp/esp-idf/tools/cmake/project.cmake:205 (message):
C:\esp\tools\.espressif\python_env\idf4.2_py3.9_env\Scripts\python.exe:
Error while finding module specification for
'idf_component_manager.prepare_components' (ModuleNotFoundError: No module
named 'idf_component_manager')

Call Stack (most recent call first):
C:/esp/esp-idf/tools/cmake/project.cmake:292 (__project_init)
CMakeLists.txt:9 (project)


-- Configuring incomplete, errors occurred!
See also "D:/Firmware/Cab/CAB_ROLEC_ESP_PCB0325_G/build/CMakeFiles/CMakeOutput.log".
The terminal process "C:\WINDOWS\System32\cmd.exe /d /c cmake -G Ninja .." terminated with exit code: 1

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 7:39 am
by gatturam
I have the same error , i dont have a solution but i have reverted to previous version and compilation works now.
In VS
View: Extensions command (Ctrl+Shift+X).
Espressif Idf > choose 1.0.2

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 8:16 am
by ESP_bignacio
The IDF component manager is now used by default in the build task, this python package is added in the extension requirements.txt.

You can manually install idf-component-manager in the virtual environment or run Install ESP-IDF Python Packages command to install them or also with the ESP-IDF: Configure ESP-IDF extension command.

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 10:40 am
by zsp_32
ESP_bignacio wrote:
Wed Apr 28, 2021 8:16 am
The IDF component manager is now used by default in the build task, this python package is added in the extension requirements.txt.

You can manually install idf-component-manager in the virtual environment or run Install ESP-IDF Python Packages command to install them or also with the ESP-IDF: Configure ESP-IDF extension command.
I had the same issue and using the ESP-IDF: Configure ESP-IDF extension command in VScode solved the issue.

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 10:57 am
by orbitcoms
I am not sure how to install the packages in vscode.

If I select to configure esp-idf, it seems it wants to install all the esp-idf.

Where can I enter the command to "install esp-idf python-packages"? (I am still fairly new to vscode setup and commands).

Why does the extension not install what it needs and give option to to install missing items (like it did with pip version out of date)

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 2:34 pm
by eggnogg
orbitcoms wrote:
Wed Apr 28, 2021 10:57 am
I am not sure how to install the packages in vscode.

If I select to configure esp-idf, it seems it wants to install all the esp-idf.

Where can I enter the command to "install esp-idf python-packages"? (I am still fairly new to vscode setup and commands).

Why does the extension not install what it needs and give option to to install missing items (like it did with pip version out of date)
Press F1, Select or type "ESP-IDF: Configure ESP-IDF extension" then press "use existing setup"
That's what fixed it for me, I have IDF version 4.2 installed

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed Apr 28, 2021 10:00 pm
by zsp_32
Also it seems that the new VScode version does not upload SPIFFS partition when flashing the project:

This works in 1.0.2 but not in 1.0.3

Code: Select all

spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Thu Apr 29, 2021 8:42 am
by Zingemneire
Press F1, Select or type "ESP-IDF: Configure ESP-IDF extension" then press "use existing setup"

I can confirm that that works. Both for me and other team members who ran into the problem yesterday.

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Wed May 05, 2021 7:08 am
by orbitcoms
The problem ended up being the compile/flash and monitor button in the extension.

When I use the extension button, the spiffs image does not get copied to the chip.

If I use the command line "idf.py flash monitor", it DOES copy over the spiffs and everything works.

Before version 1.0.3 of the vscode extension, this did not appear an issue. I think there is an issue in the latest extension?

Re: Latest IDF extension for VSCode has broken my compiler

Posted: Fri May 07, 2021 6:06 am
by stdenits
@orbitcoms,
Hello.

I have the same problem with VS Code and ESP IDF extension.
I made some changes to the web page, but when I flashed it to the chip - the page does not contain any changes...