在Vscode安装过程中输出界面报如下错误
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking cmake version
Error: Command failed: cmake --version
'cmake' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking esp32ulp-elf version
Error: Command failed: esp32ulp-elf-as --version
'esp32ulp-elf-as' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking riscv32-esp-elf version
Error: Command failed: riscv32-esp-elf-gcc --version
'riscv32-esp-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s3-elf version
Error: Command failed: xtensa-esp32s3-elf-gcc --version
'xtensa-esp32s3-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32s2-elf version
Error: Command failed: xtensa-esp32s2-elf-gcc --version
'xtensa-esp32s2-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking xtensa-esp32-elf version
Error: Command failed: xtensa-esp32-elf-gcc --version
'xtensa-esp32-elf-gcc' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking openocd-esp32 version
Error: Command failed: openocd --version
'openocd' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ninja version
Error: Command failed: ninja --version
'ninja' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking idf-exe version
Error: Command failed: idf.py.exe -v
'idf.py.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking ccache version
Error: Command failed: ccache.exe --version
'ccache.exe' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Error checking dfu-util version
Error: Command failed: dfu-util --version
'dfu-util' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
解决办法
Windows+R输入cmd而后输入
cd C:\Users\你自己的用户名\esp\esp-idf
export.bat
正常输出应该为
乱码输出为Adding ESP-IDF tools to PATH…后有许多路径,将路径添加到环境变量中
添加环境变量
打开环境变量
在Path中添加上述的路径
重启vscode编译无问题