Latest IDF extension for VSCode has broken my compiler
Latest IDF extension for VSCode has broken my compiler
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
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
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
In VS
View: Extensions command (Ctrl+Shift+X).
Espressif Idf > choose 1.0.2
-
- Posts: 229
- Joined: Wed May 02, 2018 12:12 pm
Re: Latest IDF extension for VSCode has broken my compiler
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.
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
I had the same issue and using the ESP-IDF: Configure ESP-IDF extension command in VScode solved the issue.ESP_bignacio wrote: ↑Wed Apr 28, 2021 8:16 amThe 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
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)
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
Press F1, Select or type "ESP-IDF: Configure ESP-IDF extension" then press "use existing setup"orbitcoms wrote: ↑Wed Apr 28, 2021 10:57 amI 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)
That's what fixed it for me, I have IDF version 4.2 installed
Re: Latest IDF extension for VSCode has broken my compiler
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
This works in 1.0.2 but not in 1.0.3
Code: Select all
spiffs_create_partition_image(storage ../spiffs FLASH_IN_PROJECT)
-
- Posts: 68
- Joined: Tue Apr 17, 2018 7:35 am
Re: Latest IDF extension for VSCode has broken my compiler
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
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?
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
@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...
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: No registered users and 377 guests