Cannot Configure ESP-IDF in VSCODE

Barzello
Posts: 2
Joined: Wed Sep 08, 2021 8:10 am

Cannot Configure ESP-IDF in VSCODE

Postby Barzello » Wed Sep 08, 2021 8:46 am

After installing extension "Espressif IDF" from VSCode extension marketplace trying to configure it with unsuccessful result.
Esp - IDF Doctor command send the next info:

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.19042
System environment variable PATH
E:\Dev\Python\Python39\Scripts\;E:\Dev\Python\Python39\;E:\Dev\Python39\Scripts\;E:\Dev\Python39\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;E:\Program Files\MATLAB\R2020a\bin;C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility;E:\Drivers\PuTTY\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\ZeroTier\One\;e:\Drivers\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin\;E:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;E:\Dev\CMake\bin;C:\Users\user\.cargo\bin;E:\Drivers\GNU Arm Embedded Toolchain\9 2020-q2-update\bin;C:\Users\user\AppData\Local\Microsoft\WindowsApps;E:\Program Files\Microsoft VS Code\bin;E:\Program Files\JetBrains\CLion 2020.2.4\bin;;
Visual Studio Code version 1.60.0
Visual Studio Code language en
Visual Studio Code shell C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
ESP-IDF Extension version 1.1.1
---------------------------------------------------- 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) COM13
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) E:\Dev\.espressif\tools\idf-git\2.30.1\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.9.7
Python's pip version 21.2.3
-------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
pip version: 21.2.3
setuptools version: 57.4.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 Command failed: python ${env:IDF_PATH}\tools\check_python_dependencies.py -r "c:\Users\user\.vscode\extensions\espressif.esp-idf-extension-1.1.1\esp_debug_adapter\requirements.txt"
python: can't open file 'c:\Users\user\.vscode\extensions\espressif.esp-idf-extension-1.1.1\${env:IDF_PATH}\tools\check_python_dependencies.py': [Errno 22] Invalid argument

--------------------------------------------------------------------------------------------------------------------------------------------
Attachments
2021-09-08_11-45-55.png
2021-09-08_11-45-55.png (30.63 KiB) Viewed 4208 times

Barzello
Posts: 2
Joined: Wed Sep 08, 2021 8:10 am

Re: Cannot Configure ESP-IDF in VSCODE

Postby Barzello » Thu Sep 09, 2021 11:33 am

After creating the enviroment variable with name "IDF_PATH" and value (your path to idf, my is:)"E:\Dev\esp-idf" in windows 10 and update path variable with ${env:IDF_PATH} the configuration of vscode extension completed successfully, can successfully build example project but after trying to download it to esp32 board evrything breaks, because cannot open correct com port and etc....

After installing eclipse and esp-idf eclipse plugin evrything works from box without any extra step of configuration enviroment in eclipse...
Сonclusion: very dissapointed in vscode extension

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

Re: Cannot Configure ESP-IDF in VSCODE

Postby ESP_bignacio » Fri Sep 10, 2021 6:18 am

Did you use the `Configure ESP-IDF extension` command to install ESP-IDF and tools ?

Can you provide some steps to reproduce? I'll check if something went wrong there. Thank you.

Who is online

Users browsing this forum: No registered users and 24 guests