Closed TtijasS closed 4 months ago
I'm currently able to run the serial monitor with the custom task
{
"label": "Custom Monitor: Start the monitor",
"type": "shell",
"command": "cmd.exe",
"args": [
"/c",
"set IDF_PATH=C:\\Users\\tugos\\esp\\v5.2.2\\esp-idf && \"C:\\Espressif\\python_env\\idf5.2_py3.11_env\\Scripts\\python.exe\" \"C:\\Users\\tugos\\esp\\v5.2.2\\esp-idf\\tools\\idf_monitor.py\" -p COM6 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 \"c:\\Users\\tugos\\EspProjects\\esp_idf_mpu6050\\build\\ESP_IDF_MPU6050.elf\""
],
"problemMatcher": [],
"options": {
"env": {
"IDF_PATH": "C:\\Users\\tugos\\esp\\v5.2.2\\esp-idf"
}
}
},
This is a duplicate of #1230 and espressif/esp-idf#1232 in the vscode extension.
Please review this vsix installer from bug fix PR #1234
Monitor:
Because Espressif use ' to surround the path, they need to use " to surround the path
File: src/espIdf/monitor/index.ts Bug is here const quotePath = (path) => .... dont use ' to surround the path, need to use " to surround the path
Did you check the bug fix PR before @NgoHungCuong ?
I fixed this problem by updating outdated module esp-idf-panic-decoder
from 1.2.0
to 1.2.1
. There was a bug in that library.
# enable correct python venv
cd ~/.espressif/python_env/idf5.3_py3.11_env/bin
source activate
# update module
pip install --upgrade esp-idf-panic-decoder
Answers checklist.
IDF version.
VS Code express installed IDF v5.2.2
Espressif SoC revision.
ESP32-S3
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
CMD
Development Kit.
ESP32-S3-DevKitC-1
Power Supply used.
USB
What is the expected behavior?
ESP-IDF: Monitor Device button in VS Code should open the serial monitor with the output similar to:
What is the actual behavior?
ESP-IDF: Monitor Device button used to work normally with the IDF v5.2.1, but in the the current version, v5.2.2, i'm unable to normally start the serial monitor with a simple click.
cmd output upon clicking the button:
I can make it work again, but only temporarry, if i call the next commands. As can be seen, i removed single ticks ' ' around the idf path, and replaced the single ticks with double quotes in the the next call:
After that the terminal starts normally with:
Steps to reproduce.
Debug Logs.
More Information.
PROBLEMS tab output: c_cpp_properties.json [{ "resource": "/c:/Users/tugos/EspProjects/hello_world/.vscode/c_cpp_properties.json", "owner": "c:\Users\tugos\EspProjects\hello_world", "severity": 4, "message": "Cannot find \"c:/Users/tugos/EspProjects/hello_world/build/compile_commands.json\"", "startLineNumber": 6, "startColumn": 32, "endLineNumber": 6, "endColumn": 79 },{ "resource": "/c:/Users/tugos/EspProjects/hello_world/.vscode/c_cpp_properties.json", "owner": "c:\Users\tugos\EspProjects\hello_world", "severity": 4, "message": "Cannot find \"${env:IDF_PATH}/components/\"", "startLineNumber": 8, "startColumn": 17, "endLineNumber": 8, "endColumn": 57 },{ "resource": "/c:/Users/tugos/EspProjects/hello_world/.vscode/c_cpp_properties.json", "owner": "c:\Users\tugos\EspProjects\hello_world", "severity": 4, "message": "Cannot find \"${env:IDF_PATH}/components\"", "startLineNumber": 14, "startColumn": 21, "endLineNumber": 14, "endColumn": 58 }]