-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP-IDF v5 and VisualGDB - No module named idf_component_manager #142
Comments
idf build for target esp32c3 and sdkconfig is saved for this target esp32-c3 CMake Error in VisualGDB can you check? edit add: CMake Error in VisualGDB
from where is the used sdkconfig file ? |
hi @ESP32DE ! Thanks for your help. The sdkconfig is in the project directory, in my case I did notice the I'm able to get a modified |
@kumekay Any idea why idf.py is failing on
I've also noticed that VisualGDB uses a different deployment strategy than idf-installer: CMake is located in AppData. Idea: It might be beneficial for VisualGDB to consider integration with idf-installer, which contains several checks for the Windows environment, which is very tricky. The tool has support for many CLI parameters https://github.com/espressif/idf-installer#command-line-parameters |
@georgik It's hard to guess, as you know python search paths can be tricky on Windows @gojimmypi Do you remember how the python you are using was installed? Was it installer from https://www.python.org/ or something else? |
I recall that VisualGDB manages creation of IDF virtual environment on its own. You should be able to find the Python environment path by checking Tools->Options->VisualGDB->General->Python Directory (mentioned in the "resetting python environment" section of https://visualgdb.com/documentation/espidf/#idf). Most likely you need to run |
thanks everyone for taking a look at this.
@georgik that would be really cool if possible, but I don't think so, and least not in the way I think you are asking. VisualGDB keeps track of its own environments installed in And so ya: in VisualGDB I can select between In all fairness from the Troubleshooting section: But in general, I do not think it is possible to switch to the default ESP-IDF directory created by the Espressif ESP-IDF install process from within Visual Studio. I think it would be cool if possible, but they likely install their own so as to keep better control of it. (i.e. easier to support) Although... in my particular case, I am able to do that, but only as I specified Regarding my python:
In this particular case, I remember very well - as I had Python 3.10 dot something installed when I first started with this issue, but I had encountered some path issue that was apparently hardcoded for Python 3.8. Fortunately I had a @kumekay It is a really good question though, as I recall some time ago having all sorts of problems with the Visual Studio version of Python installed from the Regarding the suggestion from @igrr , a value of
was in my settings: I cleared that value as described in the espidf python section, deleted my and then "Get Python 3" from a fresh New Project Wizard (note that I explicitly selected the esp-idf 5 that I installed): the installer is really cool. No magic commands, just a button push and tada: Unfortunately, I see pretty much the same error at new project wizard time:
Note that I specifically installed from the ESP-IDF 5.0 sysprogs prompt
Here's the full log, in case there's anything of interest:
I was previously also able to get a simulated VisualGDB environment working from command-line. The sysprogs VisualGDB support recently updated my ticket there (really kind, btw, considering this is way out of normal support). I still need to revisit manually setting the environment from within Visual Studio. I'm completely confident the sysprogs folks will have a robust install once there's an official release. They've done a really amazing job of not only installing but also a feature: "oh, I see there's a problem, would you like to fix it?" that seems to work quite well. Perhaps I just need to be patient and wait for the official release. ;) But... patience is not one of my top skills and I'd really like to try out the new ESP-IDF in part to address the wolfSSL install noted in espressif/esp-idf#9288 thanks again for taking a look, cheers :) |
I've fetched the latest V5 code: I've re-reset the python environment for VisualGDB. I've confirmed the The The first time looked somewhat promising, as indeed many dependencies were updated:
but the
I tried first with
also tried the
|
Heads up VisualGDB will soon be supporting ESP-IDF v5! Awaiting the tools to be removed from RC status. See https://sysprogs.com/w/forums/topic/esp-idf-v5/#post-33496 |
Please use the latest idf-installer to deploy 5.0 environment and test the deployment. @gojimmypi We can include the deployment of VisualGDB directly by online installer. We just need a command line to deploy it and URL where to download a version of the tool. |
I was hoping to use ESP-IDF version 5.x in VisualGDB, mainly for the robust JTAG single step & breakpoint capabilities in Visual Studio. This error is occurring:
Background
I do see although there's a release/v5.0 branch it is not listed in the release list nor even shown in the release support schedule, but v5 is listed in ESP-IDF Release and SoC Compatibility chart.
I did reach out on the VisualGDB forum, but of course they are not yet supporting a version that is not yet officially released.
This single line of text from ESP-IDF and Toolchains has me remaining hopeful this is possible:
Install
Still, I am optimistic, as I have it really close to working. I'm doing this on Windows 10:
Build with
idf.py
successI have a project created with the VisualGDB Wizard that successfully builds and flashes for the ESP32-C3 V2 using the
idf.py build
:with this output:
and indeed
idf.py build
is successful:CMake
Error in VisualGDBHowever, when I open the VisualGDB solution file,
cmake
fails with this error:I tried turning off the
idf_component_manager
with the environment variable setting, but I only saw othercmake
errors.VisualGDB setup
Here are my settings in VisualGDB. I manually selected the
release/5.0
directory and browsed toC:\Users\gojimmypi\source\repos\EmbeddedProject10
to find thesdkconfig
file that was created byidf.py
.Environment Versions
See also
The text was updated successfully, but these errors were encountered: