Open krupis opened 3 months ago
I have already discovered that on Windows, if you want to use any of the tools you must use full python and full tool path.
No that is usually not needed. You can see if you find a workaround for one issue then another appears. This is because you your environment was not properly set up. Did you followed the setup guide at https://github.com/espressif/vscode-esp-idf-extension? Please try to clean up your system and got through it again.
I have already discovered that on Windows, if you want to use any of the tools you must use full python and full tool path.
No that is usually not needed. You can see if you find a workaround for one issue then another appears. This is because you your environment was not properly set up. Did you followed the setup guide at https://github.com/espressif/vscode-esp-idf-extension? Please try to clean up your system and got through it again.
I have made a fresh v5.2.1 esp-idf install using the the EXPRESS option and after the installation it seems that I can use idf.py build
command.
I am not sure what could have gone wrong with my previous esp-idf version installation because I believe I have also installed it using the same method, I must have messed it up somehow.
Anyways, thanks for clarifying.
I am not sure what could have gone wrong with my previous esp-idf version installation because I believe I have also installed it using the same method, I must have messed it up somehow.
In hindsight, it seems that somehow your environment variables, particular PATH, were not configured properly in the prior setup. The ESP-IDF installer for Windows will update these, but after installation, I always manually check my environment variables just to be sure! Sometimes upgrading to a newer ESP-IDF I have to fix something in the environment variables.
Answers checklist.
IDF version.
5.0.3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
CMD
What is the expected behavior?
Being able to build the project using the
idf.py build
via the cmd or powershellWhat is the actual behavior?
I have already discovered that on Windows, if you want to use any of the tools you must use full python and full tool path. For example, simply using
idf.py build
will not work. So I would need to use the following command instead:However, when trying to execute this command, I get the following error:
So I went ahead and installed cmake and added it to my PATH. Then I tried to build the project via cmd again and getting the following error:
Could someone clarify to me what could be this issue and why it happens? Why is it so complicated to build the esp-idf projects on Windows via the cmd?
Any help is appreciated
Steps to reproduce.
Build or installation Logs.
No response
More Information.
No response