Initially I followed the instructions in this YouTube tutorial, where i was instructed to:
Install ESP-IDF
Install VS Code
create a workspace with the following code:
"terminal.integrated.shell.windows": "cmd.exe", "terminal.integrated.shellArgs.windows": [ "/k", "C:/Coding/ESP32/esp-idf/export.bat" ],
where I was warned with a deprecated message and got the:
Error: The following tools are not installed in your environment. git,
I know git is installed, and also when I actually run esp-idf 5.0, I do not get this message. So I falsely assumed that it was because of the deprecation even though the message also informed me that it should currently still work. Nevertheless I changed it anyway, always good to stay ahead of problems.
After a Google search I found The new way to configure default shell and argument commands in VSCode?, which seems informative, and followed these answers. Nevertheless the error message remained. After another related search I found Git not installed in VSCode on MAC. Although this is on a Windows machine, the solution to reinstall git seemed plausible so that is what I did, made sure the link to git-bash.exe was correct.
But this I get this same message. During this process I have tried multiple versions of the code which most I got working except for the git not installed error.
Then I found
The terminal shell path "..\..\..\vsCode\git\bin\bash.exe" does not exist in VS Code Windows which appeared promising once again. Nevertheless the answers really confused me. Adding setting.json, which I found to be empty, and the difference in answers from Christina and the double slash issue really got me wondering.
Currently I am using the following code:
{
"folders": [
{
"path": "."
}
],
"settings": {
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [
"/k",
"C:/Espressif/frameworks/esp-idf-v5.0/export.bat"
],
"icon": "terminal-cmd"
},
"Git Bash": {
"path": [
"C:/Program Files/Git/git-bash.exe"
],
"source": "Git Bash"
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt",
}
}
and I have run out of options.
Does anyone have a clue why VS Code keeps seeing git not installed, while when I run the esp-idf smc it has no issue at all?