[Bug Report]: new version 1.1.0 of the extension fails to use existing ESP-IDF and ESP-IDF Tools (VSC-689)
See original GitHub issueDescribe the bug Bugs, bugs, bugs 😦 The new version 1.1.0 of the extension makes a total mess when trying to use existing ESP-IDF and ESP-IDF Tools and every attempt to Configure ESP-IDF extension finishes with “Invalid ESP-IDF” I’ve made and a completely new clean installation of ESP-IDF and ESP-IDF Tools, tried with Eclipse and everything works fine, but as soon as try to use the same installation with VSC and become a total mess 😦
To Reproduce
-
Uninstall/delete all existing ESP-IDF and ESP-IDF Tools.
-
Download 2.8 Offline Installer from here: https://dl.espressif.com/dl/esp-idf-tools-setup-offline-2.8.exe
-
Run Installer, Run just installed Eclipse, compile ‘blink’ example, run Help>Product Information - check if everything is Ok.
-
Restart Windows
-
Run VSC:
-
Try to Config ESP-IDF extension (doesn’t give me option to use ‘Existing’ - only Express and Advanced) Bug1: Although selected Advanced>Existing ESP-IDF, it starts downloading git and python idf-git-2.30.1-win64.zip idf-python-3.8.7-embed-win64.zip to D:\ESP2_8.espressif\dist
but same versions git and python was already in D:\ESP2_8.espressif\
Downloading D:\ESP2_8.espressif\dist\idf-git-2.30.1-win64.zip… idf-git-2.30.1-win64.zip has (27218) KB idf-git-2.30.1-win64.zip progress: 0.06% (15.64 / 27217.34) KB … idf-git-2.30.1-win64.zip progress: 100.00% (27217.34 / 27217.34) KB Using existing D:\ESP2_8.espressif\tools\idf-git idf-python-3.8.7-embed-win64.zip has (19616) KB idf-python-3.8.7-embed-win64.zip progress: 0.08% (15.64 / 19615.46) KB … idf-python-3.8.7-embed-win64.zip progress: 100.00% (19615.46 / 19615.46) KB Extracted D:\ESP2_8.espressif\tools\idf-python … Invalid ESP-IDF
Bug2: At the end finish with Invalid ESP-IDF (see pic. 2 and 1)
Bug3: New Downloaded idf-git-2.30.1-win64.zip was not extracted at all Bug4: idf.gitPath that was set from the Config does not exist:
config idf extension makes VS_WSP1.vscode\settings.json: { “idf.gitPath”: “D:\ESP2_8\.espressif\tools\idf-git\cmd\git.exe” } but the actual git path is D:\ESP2_8.espressif\tools\idf-git\2.30.1\cmd\git.exe (see pic. 2 and 3)
Bug5: Downloaded idf-python-3.8.7-embed-win64.zip duplicated already existing same files that were already there in D:\ESP2_8.espressif\tools\idf-python\3.8.7.… but the Config extension put them one step up in D:\ESP2_8.espressif\tools\idf-python.… (see pic.3)
Expected behavior Run without problems ESP-IDF: Configure ESP-IDF extension with existing ESP-IDF; Do not download/duplicate git,python etc. already existing modules; do not make mess with already existing files; make [wspase].vscode\settings.json with correct paths and all required vars: idf.espIdfPathWin, idf.pythonBinPathWin, idf.customExtraPaths, idf.customExtraVars ,idf.gitPath
Screenshots
Environment (please complete the following information):
- OS Name & Version: OS win32 x64 10.0.19041
- VSCode Version:1.57.0
- ESP-IDF Version: 4.2 (from v2.8 offline installer)
- Python Version: 3.8.7 (from v2.8 offline installer + duplicate downloaded from ESP-IDF extension)
Logs
Extension Configuration settings
Preferences: Open Settings (JSON)
:
{
}
{CURRENT_PROJECT}/.vscode/settings.json
:
{
“idf.gitPath”: “D:\ESP2_8\.espressif\tools\idf-git\cmd\git.exe”
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top GitHub Comments
I didn’t notice exact same message (unless is from the esp_idf_vsc_ext.log which I didn’t explore in details), but my situation might be a little different than yours, because I already had ESP-IDF and tools installed and tested with Eclipse (incl. Python) and the VSC Extension actually installed a duplicate of the already existing Python, but shifted one step up on the directory tree (see pic.3 and Bug5 in my first post here), so I either way had at least one Python with correct path available and maybe that is why I didn’t see same message. But if this is the only problem you have, you can always move the installed Python from your first try in the correct path (see my pic3 above) then run again the extension Config and probably you will get rid of at least this obstacle 😦
@brianignacio5 This one works (at least with USE EXISTING SETUP and tested only up to build stage so far) . Not tested Advanced setup yet. There are some errors in the .log, but on the VSC screens everything looks Ok.
Didn’t flash anything yet.
After .vsix (from 28-6-21) installed and Configure Extension: esp_idf_vsc_ext11.log Doctor11.txt
After ESP-IDF:Create project from etension template ->TEMPLATE-APP esp_idf_vsc_ext12.log Doctor12.txt
After build: esp_idf_vsc_ext13.log Doctor13.txt
Thanks