espressif / vscode-esp-idf-extension

Visual Studio Code extension for ESP-IDF projects
https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/
Apache License 2.0
1.06k stars 304 forks source link

ParserError when opening "ESP-IDF: Monitor Device" (VSC-1459) #1275

Closed gustavosousa2208 closed 3 months ago

gustavosousa2208 commented 3 months ago

OS

Windows

Operating System version

Windows 11

Visual Studio Code version

1.92.0

ESP-IDF version

5.3

Python version

3.11.2

Doctor command output

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS win32 x64 10.0.22631 System environment variable IDF_PYTHON_ENV_PATH undefined System environment variable PATH C:\Program Files\Alacritty\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\usbipd-win\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\MATLAB\R2023a\bin;D:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\playit_gg\bin\;C:\AppData\Local\Programs\Python\Python312;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\AppData\Local\Microsoft\WindowsApps\;C:\Program Files\Neovim\bin;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Alacritty\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\usbipd-win\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\MATLAB\R2023a\bin;D:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\playit_gg\bin\;C:\AppData\Local\Programs\Python\Python312;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\AppData\Local\Microsoft\WindowsApps\;C:\Program Files\Neovim\bin;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\GNU Octave\Octave-9.2.0;C:\AppData\Local\Programs\Microsoft VS Code\bin;D:\intelFPGA_lite\23.1std\questa_fse\win64 System environment variable PYTHON undefined Visual Studio Code version 1.92.0 Visual Studio Code language en Visual Studio Code shell C:\Program Files\PowerShell\7\pwsh.exe ESP-IDF Extension version 1.8.0 Workspace folder c:\OneDrive\Documentos\Projetos_ESP-IDF\hello_hello_53 ---------------------------------------------------- Extension configuration settings ------------------------------------------------------ ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH} ESP-IDF Path (idf.espIdfPath) C:\esp\v5.3\esp-idf ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH} ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH} ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) ${env:HOMEKIT_PATH} Custom extra paths (idf.customExtraPaths) C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin;C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin;C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin;C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin;C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin;C:.espressif\tools\cmake\3.24.0\bin;C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin;C:.espressif\tools\ninja\1.11.1;C:.espressif\tools\idf-exe\1.0.3;C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:.espressif\tools\esp-rom-elfs\20240305 Custom extra vars (idf.customExtraVars) OPENOCD_SCRIPTS: C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts IDF_CCACHE_ENABLE: 1 ESP_ROM_ELF_DIR: C:.espressif\tools\esp-rom-elfs\20240305/ Virtual env Python Path (idf.pythonBinPath) C:.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe Serial port (idf.port) COM24 OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg ESP-IDF Tools Path (idf.toolsPath) C:.espressif Git Path (idf.gitPath) C:.espressif\tools\idf-git\2.39.2\cmd\git.exe Notification Mode (idf.notificationMode) All -------------------------------------------------------- Configurations access ------------------------------------------------------------- Access to ESP-ADF Path (idf.espAdfPath) false Access to ESP-IDF Path (idf.espIdfPath) true Access to ESP-MDF Path (idf.espMdfPath) false Access to ESP-Matter Path (idf.espMatterPath) false Access to ESP-HomeKit Path (idf.espHomeKitSdkPath) false Access to ESP-IDF Custom extra paths Access to C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin: true Access to C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin: true Access to C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin: true Access to C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin: true Access to C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: true Access to C:.espressif\tools\cmake\3.24.0\bin: true Access to C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin: true Access to C:.espressif\tools\ninja\1.11.1: true Access to C:.espressif\tools\idf-exe\1.0.3: true Access to C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: true Access to C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true Access to C:.espressif\tools\esp-rom-elfs\20240305: true Access to Virtual env Python Path (idf.pythonBinPath) true Access to CMake in environment PATH undefined Access to Ninja in environment PATH undefined Access to ESP-IDF Tools Path (idf.toolsPath) true -------------------------------------------------------- Configurations has spaces ------------------------------------------------------------- Spaces in system environment Path true Spaces in ESP-ADF Path (idf.espAdfPath) false Spaces in ESP-IDF Path (idf.espIdfPath) false Spaces in ESP-MDF Path (idf.espMdfPath) false Spaces in ESP-Matter Path (idf.espMatterPath) false Spaces in ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) false Spaces in ESP-IDF Custom extra paths Spaces in C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin: false Spaces in C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin: false Spaces in C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin: false Spaces in C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin: false Spaces in C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: false Spaces in C:.espressif\tools\cmake\3.24.0\bin: false Spaces in C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin: false Spaces in C:.espressif\tools\ninja\1.11.1: false Spaces in C:.espressif\tools\idf-exe\1.0.3: false Spaces in C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: false Spaces in C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false Spaces in C:.espressif\tools\esp-rom-elfs\20240305: false Spaces in Virtual env Python Path (idf.pythonBinPath) false Spaces in ESP-IDF Tools Path (idf.toolsPath) false ----------------------------------------------------------- Executables Versions ----------------------------------------------------------- Git version 2.39.2.windows.1 ESP-IDF version 5.3.0 Python version 3.11.2 Python's pip version 24.2 -------------------------------------------------- Project configuration settings ---------------------------------------------------------- -------------------------------------------------- Python packages in idf.pythonBinPath ---------------------------------------------------- bitarray version: 2.9.2 bitstring version: 4.2.3 CacheControl version: 0.14.0 certifi version: 2024.7.4 cffi version: 1.17.0 charset-normalizer version: 3.3.2 click version: 8.1.7 colorama version: 0.4.6 construct version: 2.10.70 contextlib2 version: 21.6.0 cryptography version: 42.0.8 ecdsa version: 0.19.0 esp-coredump version: 1.11.0 esp-idf-kconfig version: 2.3.0 esp-idf-monitor version: 1.4.0 esp_idf_nvs_partition_gen version: 0.1.2 esp-idf-panic-decoder version: 1.1.0 esp-idf-size version: 1.5.0 esptool version: 4.8.dev4 filelock version: 3.15.4 freertos-gdb version: 1.0.3 idf-component-manager version: 1.5.3 idna version: 3.7 intelhex version: 2.3.0 markdown-it-py version: 3.0.0 mdurl version: 0.1.2 msgpack version: 1.0.8 packaging version: 24.1 pip version: 24.2 pyclang version: 0.4.2 pycparser version: 2.22 pyelftools version: 0.31 pygdbmi version: 0.11.0.0 Pygments version: 2.18.0 pyparsing version: 3.1.2 pyserial version: 3.5 PyYAML version: 6.0.2 reedsolo version: 1.7.0 requests version: 2.32.3 requests-file version: 1.5.1 requests-toolbelt version: 1.0.0 rich version: 13.7.1 schema version: 0.7.5 setuptools version: 71.0.0 six version: 1.16.0 tqdm version: 4.66.5 urllib3 version: 1.26.19 windows-curses version: 2.3.3 ---------------------------------------------------- Check ESP-IDF python requirements.txt ------------------------------------------------- Check ESP-IDF Python packages Python requirements are satisfied. ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------ Check Debug AdapterPython packages Error ---------------------------------------------------- Visual Studio Code launch.json -------------------------------------------------------- { "version": "0.2.0", "configurations": [ { "type": "gdbtarget", "request": "attach", "name": "Eclipse CDT GDB Adapter" }, { "type": "espidf", "name": "Launch", "request": "launch" } ] } ---------------------------------------------------- Visual Studio Code c_cpp_properties.json ---------------------------------------------- { "configurations": [ { "name": "ESP-IDF", "compilerPath": "${config:idf.toolsPathWin}\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe", "compileCommands": "${config:idf.buildPath}/compile_commands.json", "includePath": [ "${config:idf.espIdfPath}/components/", "${config:idf.espIdfPathWin}/components/", "${workspaceFolder}/**" ], "browse": { "path": [ "${config:idf.espIdfPath}/components", "${config:idf.espIdfPathWin}/components", "${workspaceFolder}" ], "limitSymbolsToIncludedHeaders": true } } ], "version": 4 }

----------------------------------------------------------- Latest error ----------------------------------------------------------------- { "code": 1, "killed": false, "signal": null, "cmd": "C:\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe C:\esp\v5.3\esp-idf\tools\check_python_dependencies.py -r c:\.vscode\extensions\espressif.esp-idf-extension-1.8.0\esp_debug_adapter\requirements.txt" }

----------------------------------------------------------- Logfile ----------------------------------------------------------------- {"message":"Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat \dist\extension.js:2:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:519:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:519:28)\n\tat Pipe. (node:net:338:12)","level":"error","timestamp":"2024-08-08T04:38:20.362Z"} {"message":"non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\nConnecting.........","stack":"Error: non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\nConnecting.........\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:30.966Z"} {"message":"non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\nConnecting...","stack":"Error: non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\nConnecting...\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:30.968Z"} {"message":"non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\n\r\nA fatal error occurred: Could not open COM4, the port is busy or doesn't exist.\r\n(could not open port 'COM4': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n","stack":"Error: non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\n\r\nA fatal error occurred: Could not open COM4, the port is busy or doesn't exist.\r\n(could not open port 'COM4': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:31.648Z"} {"message":"non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\n\r\nA fatal error occurred: Could not open COM3, the port is busy or doesn't exist.\r\n(could not open port 'COM3': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n","stack":"Error: non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\n\r\nA fatal error occurred: Could not open COM3, the port is busy or doesn't exist.\r\n(could not open port 'COM3': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:31.657Z"} {"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:ADF_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685466\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.917Z"} {"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:MDF_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685644\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.919Z"} {"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:ESP_MATTER_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685736\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.920Z"} {"message":"Cannot access filePath: ${env:HOMEKIT_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:HOMEKIT_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685832\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.923Z"} {"message":"Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n at \dist\extension.js:2:1464939\n at ChildProcess.exithandler (node:child_process:415:7)\n at ChildProcess.emit (node:events:519:28)\n at maybeClose (node:internal/child_process:1105:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)","level":"error","timestamp":"2024-08-08T04:40:46.579Z"}


Extension

---------------------------------------------- ESP-IDF Extension for Visual Studio Code report --------------------------------------------- OS win32 x64 10.0.22631 System environment variable IDF_PYTHON_ENV_PATH undefined System environment variable PATH C:\Program Files\Alacritty\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\usbipd-win\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\MATLAB\R2023a\bin;D:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\playit_gg\bin\;C:\AppData\Local\Programs\Python\Python312;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\AppData\Local\Microsoft\WindowsApps\;C:\Program Files\Neovim\bin;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Alacritty\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\usbipd-win\;C:\Program Files\Git\cmd;C:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\MATLAB\R2023a\bin;D:\Program Files\MATLAB\R2023a\runtime\win64;C:\Program Files\playit_gg\bin\;C:\AppData\Local\Programs\Python\Python312;C:\AppData\Local\Programs\Microsoft VS Code\bin;C:\AppData\Local\Microsoft\WindowsApps\;C:\Program Files\Neovim\bin;C:\Program Files\PowerShell\7\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\GNU Octave\Octave-9.2.0;C:\AppData\Local\Programs\Microsoft VS Code\bin;D:\intelFPGA_lite\23.1std\questa_fse\win64 System environment variable PYTHON undefined Visual Studio Code version 1.92.0 Visual Studio Code language en Visual Studio Code shell C:\Program Files\PowerShell\7\pwsh.exe ESP-IDF Extension version 1.8.0 Workspace folder c:\OneDrive\Documentos\Projetos_ESP-IDF\hello_hello_53 ---------------------------------------------------- Extension configuration settings ------------------------------------------------------ ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH} ESP-IDF Path (idf.espIdfPath) C:\esp\v5.3\esp-idf ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH} ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH} ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) ${env:HOMEKIT_PATH} Custom extra paths (idf.customExtraPaths) C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin;C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin;C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin;C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin;C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin;C:.espressif\tools\cmake\3.24.0\bin;C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin;C:.espressif\tools\ninja\1.11.1;C:.espressif\tools\idf-exe\1.0.3;C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:.espressif\tools\esp-rom-elfs\20240305 Custom extra vars (idf.customExtraVars) OPENOCD_SCRIPTS: C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts IDF_CCACHE_ENABLE: 1 ESP_ROM_ELF_DIR: C:.espressif\tools\esp-rom-elfs\20240305/ Virtual env Python Path (idf.pythonBinPath) C:.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe Serial port (idf.port) COM24 OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg ESP-IDF Tools Path (idf.toolsPath) C:.espressif Git Path (idf.gitPath) C:.espressif\tools\idf-git\2.39.2\cmd\git.exe Notification Mode (idf.notificationMode) All -------------------------------------------------------- Configurations access ------------------------------------------------------------- Access to ESP-ADF Path (idf.espAdfPath) false Access to ESP-IDF Path (idf.espIdfPath) true Access to ESP-MDF Path (idf.espMdfPath) false Access to ESP-Matter Path (idf.espMatterPath) false Access to ESP-HomeKit Path (idf.espHomeKitSdkPath) false Access to ESP-IDF Custom extra paths Access to C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin: true Access to C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin: true Access to C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin: true Access to C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin: true Access to C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: true Access to C:.espressif\tools\cmake\3.24.0\bin: true Access to C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin: true Access to C:.espressif\tools\ninja\1.11.1: true Access to C:.espressif\tools\idf-exe\1.0.3: true Access to C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: true Access to C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true Access to C:.espressif\tools\esp-rom-elfs\20240305: true Access to Virtual env Python Path (idf.pythonBinPath) true Access to CMake in environment PATH undefined Access to Ninja in environment PATH undefined Access to ESP-IDF Tools Path (idf.toolsPath) true -------------------------------------------------------- Configurations has spaces ------------------------------------------------------------- Spaces in system environment Path true Spaces in ESP-ADF Path (idf.espAdfPath) false Spaces in ESP-IDF Path (idf.espIdfPath) false Spaces in ESP-MDF Path (idf.espMdfPath) false Spaces in ESP-Matter Path (idf.espMatterPath) false Spaces in ESP-HomeKit-SDK Path (idf.espHomeKitSdkPath) false Spaces in ESP-IDF Custom extra paths Spaces in C:.espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin: false Spaces in C:.espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin: false Spaces in C:.espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin: false Spaces in C:.espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin: false Spaces in C:.espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: false Spaces in C:.espressif\tools\cmake\3.24.0\bin: false Spaces in C:.espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin: false Spaces in C:.espressif\tools\ninja\1.11.1: false Spaces in C:.espressif\tools\idf-exe\1.0.3: false Spaces in C:.espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64: false Spaces in C:.espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false Spaces in C:.espressif\tools\esp-rom-elfs\20240305: false Spaces in Virtual env Python Path (idf.pythonBinPath) false Spaces in ESP-IDF Tools Path (idf.toolsPath) false ----------------------------------------------------------- Executables Versions ----------------------------------------------------------- Git version 2.39.2.windows.1 ESP-IDF version 5.3.0 Python version 3.11.2 Python's pip version 24.2 -------------------------------------------------- Project configuration settings ---------------------------------------------------------- -------------------------------------------------- Python packages in idf.pythonBinPath ---------------------------------------------------- bitarray version: 2.9.2 bitstring version: 4.2.3 CacheControl version: 0.14.0 certifi version: 2024.7.4 cffi version: 1.17.0 charset-normalizer version: 3.3.2 click version: 8.1.7 colorama version: 0.4.6 construct version: 2.10.70 contextlib2 version: 21.6.0 cryptography version: 42.0.8 ecdsa version: 0.19.0 esp-coredump version: 1.11.0 esp-idf-kconfig version: 2.3.0 esp-idf-monitor version: 1.4.0 esp_idf_nvs_partition_gen version: 0.1.2 esp-idf-panic-decoder version: 1.1.0 esp-idf-size version: 1.5.0 esptool version: 4.8.dev4 filelock version: 3.15.4 freertos-gdb version: 1.0.3 idf-component-manager version: 1.5.3 idna version: 3.7 intelhex version: 2.3.0 markdown-it-py version: 3.0.0 mdurl version: 0.1.2 msgpack version: 1.0.8 packaging version: 24.1 pip version: 24.2 pyclang version: 0.4.2 pycparser version: 2.22 pyelftools version: 0.31 pygdbmi version: 0.11.0.0 Pygments version: 2.18.0 pyparsing version: 3.1.2 pyserial version: 3.5 PyYAML version: 6.0.2 reedsolo version: 1.7.0 requests version: 2.32.3 requests-file version: 1.5.1 requests-toolbelt version: 1.0.0 rich version: 13.7.1 schema version: 0.7.5 setuptools version: 71.0.0 six version: 1.16.0 tqdm version: 4.66.5 urllib3 version: 1.26.19 windows-curses version: 2.3.3 ---------------------------------------------------- Check ESP-IDF python requirements.txt ------------------------------------------------- Check ESP-IDF Python packages Python requirements are satisfied. ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------ Check Debug AdapterPython packages Error ---------------------------------------------------- Visual Studio Code launch.json -------------------------------------------------------- { "version": "0.2.0", "configurations": [ { "type": "gdbtarget", "request": "attach", "name": "Eclipse CDT GDB Adapter" }, { "type": "espidf", "name": "Launch", "request": "launch" } ] } ---------------------------------------------------- Visual Studio Code c_cpp_properties.json ---------------------------------------------- { "configurations": [ { "name": "ESP-IDF", "compilerPath": "${config:idf.toolsPathWin}\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin\xtensa-esp32s3-elf-gcc.exe", "compileCommands": "${config:idf.buildPath}/compile_commands.json", "includePath": [ "${config:idf.espIdfPath}/components/", "${config:idf.espIdfPathWin}/components/", "${workspaceFolder}/**" ], "browse": { "path": [ "${config:idf.espIdfPath}/components", "${config:idf.espIdfPathWin}/components", "${workspaceFolder}" ], "limitSymbolsToIncludedHeaders": true } } ], "version": 4 }

----------------------------------------------------------- Latest error ----------------------------------------------------------------- { "code": 1, "killed": false, "signal": null, "cmd": "C:\.espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe C:\esp\v5.3\esp-idf\tools\check_python_dependencies.py -r c:\.vscode\extensions\espressif.esp-idf-extension-1.8.0\esp_debug_adapter\requirements.txt" }

----------------------------------------------------------- Logfile ----------------------------------------------------------------- {"message":"Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n\tat \dist\extension.js:2:1464939\n\tat ChildProcess.exithandler (node:child_process:415:7)\n\tat ChildProcess.emit (node:events:519:28)\n\tat maybeClose (node:internal/child_process:1105:16)\n\tat Socket. (node:internal/child_process:457:11)\n\tat Socket.emit (node:events:519:28)\n\tat Pipe. (node:net:338:12)","level":"error","timestamp":"2024-08-08T04:38:20.362Z"} {"message":"non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\nConnecting.........","stack":"Error: non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\nConnecting.........\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:30.966Z"} {"message":"non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\nConnecting...","stack":"Error: non zero exit code null\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\nConnecting...\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:30.968Z"} {"message":"non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\n\r\nA fatal error occurred: Could not open COM4, the port is busy or doesn't exist.\r\n(could not open port 'COM4': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n","stack":"Error: non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM4\r\n\r\nA fatal error occurred: Could not open COM4, the port is busy or doesn't exist.\r\n(could not open port 'COM4': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:31.648Z"} {"message":"non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\n\r\nA fatal error occurred: Could not open COM3, the port is busy or doesn't exist.\r\n(could not open port 'COM3': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n","stack":"Error: non zero exit code 2\r\n\r\nesptool.py v4.8.dev4\r\nSerial port COM3\r\n\r\nA fatal error occurred: Could not open COM3, the port is busy or doesn't exist.\r\n(could not open port 'COM3': PermissionError(13, 'Acesso negado.', None, 5))\r\n\r\n\n at ChildProcess. (\dist\extension.js:2:1461587)\n at ChildProcess.emit (node:events:519:28)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)","level":"error","timestamp":"2024-08-08T04:38:31.657Z"} {"message":"Cannot access filePath: ${env:ADF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:ADF_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685466\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.917Z"} {"message":"Cannot access filePath: ${env:MDF_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:MDF_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685644\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.919Z"} {"message":"Cannot access filePath: ${env:ESP_MATTER_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:ESP_MATTER_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685736\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.920Z"} {"message":"Cannot access filePath: ${env:HOMEKIT_PATH}","stack":"Error: ENOENT: no such file or directory, access 'C:\Users\gusta\AppData\Local\Programs\Microsoft VS Code\${env:HOMEKIT_PATH}'\n at Object.accessSync (node:fs:246:11)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9017)\n at Se (\dist\extension.js:2:1461757)\n at \dist\extension.js:2:1685832\n at Fs (\dist\extension.js:2:1686534)\n at \dist\extension.js:2:1902761","level":"error","timestamp":"2024-08-08T04:40:44.923Z"} {"message":"Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n","stack":"Error: Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:26)\r\nLicensed under GNU GPL v2\r\nFor bug reports, read\r\n\thttp://openocd.org/doc/doxygen/bugs.html\r\n\n at \dist\extension.js:2:1464939\n at ChildProcess.exithandler (node:child_process:415:7)\n at ChildProcess.emit (node:events:519:28)\n at maybeClose (node:internal/child_process:1105:16)\n at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)","level":"error","timestamp":"2024-08-08T04:40:46.579Z"}


Description

When pressing the button or using the shortcut for monitorig the device, it runs the command in a new vs code terminal, using JTAG and UART

image

putting a "&" before works, but changing in tasks.json doesn't make it right, keeps the same behaviour

{
      "label": "Monitor: Start the monitor",
      "type": "shell",
      "command": "& ${config:idf.pythonBinPath} ${config:idf.espIdfPath}/tools/idf.py -p ${config:idf.port} monitor",
      "windows": {
        "command": "${config:idf.pythonBinPathWin} ${config:idf.espIdfPathWin}\\tools\\idf.py -p ${config:idf.portWin} monitor",
        "options": {
          "env": {
            "PATH": "${env:PATH};${config:idf.customExtraPaths}"
          }
        }
      },

Debug Message

ParserError: 
Line |
   1 |  … python.exe' 'C:\Users\gusta\esp\v5.3\esp-idf\tools\idf_monitor.py' -p …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Unexpected token ''C:\Users\gusta\esp\v5.3\esp-idf\tools\idf_monitor.py'' in expression or statement.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

brianignacio5 commented 3 months ago

This is an issue with your specific terminal (pwsh.exe), if you try regular Powershell it should work.

Covering all kinds of terminal formatting is hard. We should make a fix for your case very soon.

FYI Tasks.json doesn't work because is not related to the extension code that run the IDF Monitor.

radurentea commented 3 months ago

Hi @gustavosousa2208,

Could you try testing the following fix? esp-idf-extension.vsix.zip

Thanks!

gustavosousa2208 commented 3 months ago

sorry for the delay in replying, it worked great!

image