Open xinkunlong opened 2 months ago
This issue has been marked as stale
since there are no activities, and this will be closed in 5 days if there are no further activities
Hi @xinkunlong,
Thank you for reporting this bug. After investigating, I've identified the root cause:
The issue stems from the default program setting for .py files on your Windows machine. It appears you've set .py files to open with "VS Code" by default.
Workaround: Change the default program for .py files to the Python executable in your PATH: "C:\Users\kunlo.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe"
This should resolve the immediate issue. I'm still investigating a permanent solution to prevent this behavior. I'll update you once I have more information.
Let me know if you need any clarification or assistance implementing the workaround.
OS
Windows
Operating System version
Windows 11
Visual Studio Code version
Version: 1.93.0 (user setup) Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:02:38.431Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631
ESP-IDF version
5.3.1
Python version
3.11.2
Doctor command output
C:\Users\{user}\.espressif\python_env\idf5.3_py3.11_env\Scripts
esptool.py help
orhex2bin.py help
Extension
esp_idf_vsc_ext.log
Description
The script files in path
C:\Users\{user}\.espressif\python_env\idf5.3_py3.11_env\Scripts
will report an error when executed inESP-IDF Terminal
Debug Message