I setup all as instructed, VisualGDB installed by it’s own the latest Esp32 IDF, python 3, and I already checked all paths both for VisualGDB ( under VS 2022 ) and for Windows itself to be correct…
The system appears to find all, but when trying to create a new project for the ESP32-C6, I got this error :
C++
1
2
3
4
5
6
<em>Run"C:\Users\Alex\AppData\Local\VisualGDB\Python3\python.exe E:\Esp32\esp-idf/v5.1\tools\idf_tools.py install-python-env"indirectory""on local computer</em>
<em>--------------------------</em>
<em>WARNING:Isit notpossible todetermine the IDF version:[Errno2]No such file ordirectory:'E:\\esp32\\esp-idf\\components\\esp_common\\include\\esp_idf_version.h'</em>
<em>ERROR:IDF version cannot be determined</em>
<em>--------------------------</em>
<em>Command exited with code1</em>
What is wrong…? it appears the command is not going through the ‘/v5.1’ folder in the IDF toolchain when passing an argument to python…
Thnaks for any support…
Regards
Alex
This topic was modified 2 weeks, 4 days ago by support. Reason: formatting
I found the problem… The installation of VisualGDB did not updated an already existing ‘IDF_PATH’ environment variable to properly point to the V5.1 sub folder…
VisualGDB does not update the system-level variables in order to avoid interfering with other tools. Instead, it sets them for just the process it’s launching to configure and build the project.
You can actually dump the configuration and build command lines to batch files, that show all the environment set by VisualGDB, and can be executed manually in order to simplify troubleshooting things. See this page for details.
If changing the variable globally fixed the project, it could have been hardcoded somewhere else (e.g. by editing the Python scripts) and the value set by VisualGDB was conflicting with it. If in doubt, we always suggest doing a clean toolchain installation, using a clean Python environment and a clean ESP-IDF checkouts. We test them before releasing our toolchains, so they should work just fine out-of-the-box.