espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.89k stars 7.32k forks source link

The vscode IDF plugin cannot use the MSYS2 default terminal by clicking the monitor button(IDFGH-13393) #14301

Open JDingOneSelf opened 3 months ago

JDingOneSelf commented 3 months ago

Answers checklist.

General issue report

xxxx@LAPTOP-8EUDJHTE /d/xxxxx/01Work/01Demo/01ESP32S3_Demo/blink $ & set IDF_PATH='d:\Program\Espressif\IDF\v4.4.5\esp-idf' bash: syntax error near unexpected token `&'

xxxx@LAPTOP-8EUDJHTE /d/xxxxx/01Work/01Demo/01ESP32S3_Demo/blink $ & 'd:\Program\Espressif\445\python_env\idf4.4_py3.8_env\Scripts\python.exe' 'd:\Program\Espressif\IDF\v4.4.5\esp-idf\tools\idf_monitor.py' -p COM4 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 'd:\xxxxx\01Work\01Demo\01ESP32S3_Demo\blink\build\blink.elf' bash: syntax error near unexpected token `&'

brianignacio5 commented 3 months ago

Are you talking about https://github.com/espressif/vscode-esp-idf-extension ?

Why are you using MSYS2 ? Why don't use Powershell or Command Prompt (cmd.exe) ?

JDingOneSelf commented 3 months ago

Yes, I am used to using MSYS2, and PowerShell and cmd have garbled characters, is there a solution?It worked before