Visual Studio Code ESP-IDF Extension - errors when installed

-Rudy-
Posts: 31
Joined: Sun Feb 05, 2017 1:08 am

Visual Studio Code ESP-IDF Extension - errors when installed

Postby -Rudy- » Sun Jul 11, 2021 11:40 am

I tried to install the ESP-IDF extension in VS Code. It stopped on an error. It seemed to be a path problem with Git.
Right now I am stuck. I can't seem to continue the install or re-install from scratch. I need some help.

The following is what I got from running ESP-IDF Doctor.

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19041
System environment variable PATH
C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\TDM-GCC-64\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\PuTTY\;C:\Program Files\dotnet\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\LLVM\bin;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;C:\Program Files\Microchip\xc8\v2.32\bin;C:\Program Files\Git\cmd;C:\Program Files\bin;C:\Users\Rudy\.dnx\bin;C:\Python27;C:\Users\Rudy\AppData\Local\Microsoft\WindowsApps;C:\Users\Rudy\AppData\Local\atom\bin;C:\Users\Rudy\AppData\Local\Microsoft\WindowsApps;C:\Users\Rudy\Documents\stm32;C:\Users\Rudy\AppData\Local\Programs\Microsoft VS Code\bin
Visual Studio Code version 1.58.0
Visual Studio Code language en
Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.1.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) COM1
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) C:\Users\Rudy\.espressif\tools\idf-git\cmd\git.exe
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.espIdfPath) false
Access to ESP-IDF Path (idf.espIdfPath) false
Access to ESP-MDF Path (idf.espIdfPath) 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 2.30.1.windows.1
ESP-IDF version Not found
Python version 3.8.10
Python's pip version 20.1.1
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
altgraph version: 0.17
future version: 0.18.2
pefile version: 2019.4.18
pip version: 20.1.1
PyInstaller version: 3.6
pywin32-ctypes version: 0.2.0
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages Error
---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
Check Extension Python packages Error
---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
Check Debug AdapterPython packages Error
----------------------------------------------------------- Latest error -----------------------------------------------------------------
Latest error at ENOENT: no such file or directory, open 'c:\Users\Rudy\Documents\PythonProgramming\.vscode\launch.json'
--------------------------------------------------------------------------------------------------------------------------------------------

username
Posts: 477
Joined: Thu May 03, 2018 1:18 pm

Re: Visual Studio Code ESP-IDF Extension - errors when installed

Postby username » Mon Jul 12, 2021 2:11 am

I had the same issue. The work around I found is not to use Extension v1.1.0. Instead install 1.0.3.
Delete all the files 1.1.0 installed and then after you start with 1.0.3 things should go smoothly.
After its all done then you can update to v1.1.0.
Something is screwy with the install of 1.1.0. I tried 1.1.0 on 3 different computers all with the same problems.
Using 1.0.3 everything went smoothly .

-Rudy-
Posts: 31
Joined: Sun Feb 05, 2017 1:08 am

Re: Visual Studio Code ESP-IDF Extension - errors when installed

Postby -Rudy- » Tue Jul 13, 2021 5:08 am

I opened an issue on the vscode-esp-idf-extension repository. I got the following and it worked for me.

there are some bugs in the current marketplace version.
Can you try this vsix installer? https://nightly.link/espressif/vscode-e ... 375661.zip

Who is online

Users browsing this forum: No registered users and 17 guests