Urgent!! new version 1.3 DOES NOT WORK AT ALL !!!! after autoupdate
Posted: Thu Jan 06, 2022 4:29 am
I was cleaning up a project I was working on the past days when a message popped in saying that ESP_IDF extension has been updated to version 1.3. OK surprise...
So far all worked fine since days. The project task was at its end.
But then the problems started. I added a new source file to the CMakeLists.txt in the source folder and saving it, a message popped up "Unable to determine what CMake generator to use....."
I was surprised, tried immediately to compile and it compiled everything fine.
However, after a full clean the project linking failed with a missing reference to a function in the new source file.
It came out that this new file did not get included in the compile task. Because of this cmake generator missing.
Compiling worked still fine just the new source file was not included in the build. It looks to me that cmake can not invoke either Ninja or Python script to generate the CMakeLists file in the build directory.
Of course I tried with a restart of VScode but then the IDF did not come back to live AT ALL. The toolbar was completely undefined. Not even comport selection full clean, nothing was there.
This is a terrible situation for our project with a tied deadline this week !!!
Hence I uninstalled VScode and cleaned out all extension. Reinstalled the ESP-IDF extension in VScode But now when I run the ESP-IDF: Setup -> Use existing installed IDF the process hangs with this message:
HELP PLEASE !
this is the output from the Doctor command and it looks like I need a complete new install of the IDF. I had all path variables defined before and it worked fine UNTIL THE UPDATE TO 1.3.0. Unfortunate I did not go back to the former version at that point
I will try now with a fresh IDF install. Hopefully somebody can reach out with an idea what went wrong with the update.
Right now I get bunch of error e.g. when I try to select the com port I get "Something went wrong to get the serial port list"
This is terrible, we need a solution NOW
Thanks
Ralph
So far all worked fine since days. The project task was at its end.
But then the problems started. I added a new source file to the CMakeLists.txt in the source folder and saving it, a message popped up "Unable to determine what CMake generator to use....."
I was surprised, tried immediately to compile and it compiled everything fine.
However, after a full clean the project linking failed with a missing reference to a function in the new source file.
It came out that this new file did not get included in the compile task. Because of this cmake generator missing.
Compiling worked still fine just the new source file was not included in the build. It looks to me that cmake can not invoke either Ninja or Python script to generate the CMakeLists file in the build directory.
Of course I tried with a restart of VScode but then the IDF did not come back to live AT ALL. The toolbar was completely undefined. Not even comport selection full clean, nothing was there.
This is a terrible situation for our project with a tied deadline this week !!!
Hence I uninstalled VScode and cleaned out all extension. Reinstalled the ESP-IDF extension in VScode But now when I run the ESP-IDF: Setup -> Use existing installed IDF the process hangs with this message:
Code: Select all
C:\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe: Error while finding module specification for 'pip' (AttributeError: module '__main__' has no attribute '__file__')
Command failed: "C:/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe" -m pip install --upgrade --no-warn-script-location -r "c:\Users\ralph\.vscode\extensions\espressif.esp-idf-extension-1.3.0\requirements.txt"
C:\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe: Error while finding module specification for 'pip' (AttributeError: module '__main__' has no attribute '__file__')
HELP PLEASE !
this is the output from the Doctor command and it looks like I need a complete new install of the IDF. I had all path variables defined before and it worked fine UNTIL THE UPDATE TO 1.3.0. Unfortunate I did not go back to the former version at that point
Code: Select all
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19042
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Program Files\Firefox Developer Edition;C:\Windows\system32;C:\Windows\system32;C:\Windows\system32;C:\Windows\System32;C:\Users\ralph\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\ralph\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\ralph\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\ralph\AppData\Roaming\npm;C:\Users\ralph\AppData\Local\Microsoft\WindowsApps;C:\Users\ralph\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\JetBrains\PhpStorm 2020.2.3\bin;;C:\Users\ralph\.dotnet\tools;C:\wamp64\bin\php\php7.4.9;C:\Users\ralph\AppData\Roaming\Composer\vendor\bin;
System environment variable PYTHON
undefined
Visual Studio Code version 1.63.2
Visual Studio Code language en
Visual Studio Code shell C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.3.0
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
ESP-IDF Path (idf.espIdfPath) ${env:IDF_PATH}
ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
Custom extra paths (idf.customExtraPaths)
Custom extra vars (idf.customExtraVars)
Virtual env Python Path (idf.pythonBinPath) python
Serial port (idf.port) COM18
OpenOCD Configs (idf.openOcdConfigs) interface/ftdi/esp32_devkitj_v1.cfg,board/esp32-wrover.cfg
ESP-IDF Tools Path (idf.toolsPath) ${env:IDF_TOOLS_PATH}
Git Path (idf.gitPath) /usr/bin/git
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espAdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) false
Access to ESP-MDF Path (idf.espMdfPath) false
Access to ESP-IDF Custom extra paths
Access to Virtual env Python Path (idf.pythonBinPath) false
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path (idf.toolsPath) false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version undefined
ESP-IDF version undefined
Python version undefined
Python's pip version undefined
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages undefined
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension Python packages undefined
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages undefined
----------------------------------------------------------- Latest error -----------------------------------------------------------------
Latest error at Command failed: "/usr/bin/git" --version
The system cannot find the path specified.
--------------------------------------------------------------------------------------------------------------------------------------------
Right now I get bunch of error e.g. when I try to select the com port I get "Something went wrong to get the serial port list"
This is terrible, we need a solution NOW
Thanks
Ralph