Latest IDF extension for VSCode has broken my compiler

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Latest IDF extension for VSCode has broken my compiler

Postby orbitcoms » Wed Apr 28, 2021 5:48 am

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

gatturam
Posts: 2
Joined: Thu Jan 30, 2020 10:47 am

Re: Latest IDF extension for VSCode has broken my compiler

Postby gatturam » Wed Apr 28, 2021 7:39 am

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

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

Re: Latest IDF extension for VSCode has broken my compiler

Postby ESP_bignacio » 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.

zsp_32
Posts: 2
Joined: Wed Apr 28, 2021 10:38 am

Re: Latest IDF extension for VSCode has broken my compiler

Postby zsp_32 » Wed Apr 28, 2021 10:40 am

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.

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Latest IDF extension for VSCode has broken my compiler

Postby orbitcoms » 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)

eggnogg
Posts: 4
Joined: Sun Jan 17, 2021 5:27 pm

Re: Latest IDF extension for VSCode has broken my compiler

Postby eggnogg » Wed Apr 28, 2021 2:34 pm

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

zsp_32
Posts: 2
Joined: Wed Apr 28, 2021 10:38 am

Re: Latest IDF extension for VSCode has broken my compiler

Postby zsp_32 » Wed Apr 28, 2021 10:00 pm

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)

Zingemneire
Posts: 68
Joined: Tue Apr 17, 2018 7:35 am

Re: Latest IDF extension for VSCode has broken my compiler

Postby Zingemneire » Thu Apr 29, 2021 8:42 am

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.

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Latest IDF extension for VSCode has broken my compiler

Postby orbitcoms » Wed May 05, 2021 7:08 am

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?

stdenits
Posts: 24
Joined: Sun May 17, 2020 3:18 pm

Re: Latest IDF extension for VSCode has broken my compiler

Postby stdenits » Fri May 07, 2021 6:06 am

@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...
Last edited by stdenits on Fri May 07, 2021 10:24 am, edited 1 time in total.

Who is online

Users browsing this forum: atx823, Bing [Bot], brushlow18 and 262 guests