-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
bug-reportBug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)ongoingOngoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale botOngoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot
Description
OS
Windows
Operating System version
Windows 11 24H2 26100.6899
Visual Studio Code version
1.105.1
ESP-IDF version
5.5.1
Python version
3.13.4
Doctor command output
---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
OS win32 x64 10.0.26100
System environment variable IDF_PYTHON_ENV_PATH
undefined
System environment variable PATH
C:\Program Files (x86)\oh-my-posh\bin\;C:\Program Files\Python313\Scripts\;C:\Program Files\Python313\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Program Files\FirefoxPWA\;C:\Program Files (x86)\cloudflared\;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\PuTTY\;C:<HOMEPATH>\scoop\apps\python\current\Scripts;C:<HOMEPATH>\scoop\apps\python\current;C:<HOMEPATH>\scoop\shims;C:<HOMEPATH>\AppData\Local\Programs\oh-my-posh\bin\;C:<HOMEPATH>\AppData\Local\Microsoft\WindowsApps;C:<HOMEPATH>\AppData\Local\Programs\Microsoft VS Code\bin;C:<HOMEPATH>\AppData\Roaming\npm;C:<HOMEPATH>\AppData\Local\Microsoft\WinGet\Links;C:<HOMEPATH>\AppData\Local\PowerToys\
System environment variable PYTHON
undefined
Visual Studio Code Remote name undefined
Visual Studio Code version 1.105.1
Visual Studio Code language en
Visual Studio Code shell C:\Program Files\PowerShell\7\pwsh.exe
Visual Studio Code app name Visual Studio Code
ESP-IDF Extension version 2.0.1
Workspace folder c:<HOMEPATH>\debug-test
---------------------------------------------------- Extension configuration settings ------------------------------------------------------
ESP-ADF Path (idf.customExtraVars["ADF_PATH"]) undefined
ESP-IDF Path (Project setup IDF_PATH) C:\esp\v5.5.1\esp-idf
ESP-MDF Path (idf.customExtraVars["MDF_PATH"]) undefined
ESP-Matter Path (idf.customExtraVars["ESP_MATTER_PATH"]) undefined
ESP-HomeKit-SDK Path (idf.customExtraVars["HOMEKIT_PATH"]) undefined
Custom extra paths C:\Espressif\tools\ccache\4.11.2\ccache-4.11.2-windows-x86_64;C:\Espressif\tools\cmake\3.30.2\bin;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\esp-clang\esp-19.1.2_20250312\esp-clang\bin;C:\Espressif\tools\esp-rom-elfs\20241011\;C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\esp32ulp-elf\bin;C:\Espressif\tools\idf-exe\1.0.3\;C:\Espressif\tools\ninja\1.12.1\;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707\openocd-esp32\bin;C:\Espressif\tools\qemu-riscv32\esp_develop_9.0.0_20240606\qemu\bin;C:\Espressif\tools\qemu-xtensa\esp_develop_9.0.0_20240606\qemu\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\16.2_20250324\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\bin;C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\riscv32-esp-elf\bin;C:\Espressif\tools\xtensa-esp-elf-gdb\16.2_20250324\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin;C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\xtensa-esp-elf\bin;C:\Espressif\tools\python\v5.5.1\venv\Scripts
ESP-IDF Project Setup Variables
PATH: C:\Espressif\tools\ccache\4.11.2\ccache-4.11.2-windows-x86_64;C:\Espressif\tools\cmake\3.30.2\bin;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\esp-clang\esp-19.1.2_20250312\esp-clang\bin;C:\Espressif\tools\esp-rom-elfs\20241011\;C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\esp32ulp-elf\bin;C:\Espressif\tools\idf-exe\1.0.3\;C:\Espressif\tools\ninja\1.12.1\;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707\openocd-esp32\bin;C:\Espressif\tools\qemu-riscv32\esp_develop_9.0.0_20240606\qemu\bin;C:\Espressif\tools\qemu-xtensa\esp_develop_9.0.0_20240606\qemu\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\16.2_20250324\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\bin;C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\riscv32-esp-elf\bin;C:\Espressif\tools\xtensa-esp-elf-gdb\16.2_20250324\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin;C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\xtensa-esp-elf\bin;C:\Espressif\tools\python\v5.5.1\venv\Scripts
ESP_IDF_VERSION: 5.5
SYSTEM_PATH: C:\Program Files (x86)\oh-my-posh\bin\;C:\Program Files\Python313\Scripts\;C:\Program Files\Python313\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Program Files\FirefoxPWA\;C:\Program Files (x86)\cloudflared\;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\PuTTY\;C:<HOMEPATH>\scoop\shims;C:<HOMEPATH>\AppData\Local\Programs\oh-my-posh\bin\;C:<HOMEPATH>\AppData\Local\Microsoft\WindowsApps;C:<HOMEPATH>\AppData\Local\Programs\Microsoft VS Code\bin;C:<HOMEPATH>\AppData\Roaming\npm;C:<HOMEPATH>\AppData\Local\Microsoft\WinGet\Links;C:<HOMEPATH>\AppData\Local\PowerToys\;C:\esp\v5.5.1\esp-idf;C:\Espressif\tools
IDF_TOOLS_PATH: C:\Espressif\tools
IDF_PATH: C:\esp\v5.5.1\esp-idf
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707\openocd-esp32\share\openocd\scripts
ESP_ROM_ELF_DIR: C:\Espressif\tools\esp-rom-elfs\20241011
IDF_PYTHON_ENV_PATH: C:\Espressif\tools\python\v5.5.1\venv
PYTHON: C:\Espressif\tools\python\v5.5.1\venv\Scripts\python.exe
User extra vars (idf.customExtraVars)
IDF_TARGET: esp32s3
Virtual environment Python path (computed) C:\Espressif\tools\python\v5.5.1\venv\Scripts\python.exe
Serial port (idf.port) COM4
OpenOCD Configs (idf.openOcdConfigs) board/esp32s3-builtin.cfg
OpenOCD log level (idf.openOcdDebugLevel) 2
OpenOCD launch arguments (idf.openOcdLaunchArgs)
ESP-IDF Tools Path C:\Espressif\tools
Git Path (idf.gitPath) C:\Program Files\Git\cmd\git.exe
C:<HOMEPATH>\scoop\shims\git.exe
Notification Mode (idf.notificationMode) All
Flash type (idf.flashType) JTAG
Flash partition to use (idf.flashPartitionToUse) all
-------------------------------------------------------- Configurations access -------------------------------------------------------------
Access to ESP-ADF Path (idf.customExtraVars["ADF_PATH"]) false
Access to ESP-IDF Path (Project setup IDF_PATH) true
Access to ESP-MDF Path (idf.customExtraVars["MDF_PATH"]) false
Access to ESP-Matter Path (idf.customExtraVars["ESP_MATTER_PATH"]) false
Access to ESP-HomeKit Path (idf.customExtraVars["HOMEKIT_PATH"]) false
Access to ESP-IDF Custom extra paths
Access to C:\Espressif\tools\ccache\4.11.2\ccache-4.11.2-windows-x86_64: true
Access to C:\Espressif\tools\cmake\3.30.2\bin: true
Access to C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: true
Access to C:\Espressif\tools\esp-clang\esp-19.1.2_20250312\esp-clang\bin: true
Access to C:\Espressif\tools\esp-rom-elfs\20241011\: true
Access to C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: true
Access to C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\esp32ulp-elf\bin: true
Access to C:\Espressif\tools\idf-exe\1.0.3\: true
Access to C:\Espressif\tools\ninja\1.12.1\: true
Access to C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707\openocd-esp32\bin: true
Access to C:\Espressif\tools\qemu-riscv32\esp_develop_9.0.0_20240606\qemu\bin: true
Access to C:\Espressif\tools\qemu-xtensa\esp_develop_9.0.0_20240606\qemu\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf-gdb\16.2_20250324\riscv32-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\bin: true
Access to C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\riscv32-esp-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp-elf-gdb\16.2_20250324\xtensa-esp-elf-gdb\bin: true
Access to C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin: true
Access to C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\xtensa-esp-elf\bin: true
Access to C:\Espressif\tools\python\v5.5.1\venv\Scripts: true
Access to Virtual environment Python path (computed) true
Access to CMake in environment PATH undefined
Access to Ninja in environment PATH undefined
Access to ESP-IDF Tools Path true
-------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
Spaces in system environment Path true
Spaces in ESP-ADF Path (idf.customExtraVars["ADF_PATH"]) false
Spaces in ESP-IDF Path (Project setup IDF_PATH) false
Spaces in ESP-MDF Path (idf.customExtraVars["MDF_PATH"]) false
Spaces in ESP-Matter Path (idf.customExtraVars["ESP_MATTER_PATH"]) false
Spaces in ESP-HomeKit-SDK Path (idf.customExtraVars["HOMEKIT_PATH"]) false
Spaces in ESP-IDF Custom extra paths
Spaces in C:\Espressif\tools\ccache\4.11.2\ccache-4.11.2-windows-x86_64: false
Spaces in C:\Espressif\tools\cmake\3.30.2\bin: false
Spaces in C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64: false
Spaces in C:\Espressif\tools\esp-clang\esp-19.1.2_20250312\esp-clang\bin: false
Spaces in C:\Espressif\tools\esp-rom-elfs\20241011\: false
Spaces in C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin: false
Spaces in C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\esp32ulp-elf\bin: false
Spaces in C:\Espressif\tools\idf-exe\1.0.3\: false
Spaces in C:\Espressif\tools\ninja\1.12.1\: false
Spaces in C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20250707\openocd-esp32\bin: false
Spaces in C:\Espressif\tools\qemu-riscv32\esp_develop_9.0.0_20240606\qemu\bin: false
Spaces in C:\Espressif\tools\qemu-xtensa\esp_develop_9.0.0_20240606\qemu\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf-gdb\16.2_20250324\riscv32-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\bin: false
Spaces in C:\Espressif\tools\riscv32-esp-elf\esp-14.2.0_20241119\riscv32-esp-elf\riscv32-esp-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp-elf-gdb\16.2_20250324\xtensa-esp-elf-gdb\bin: false
Spaces in C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\bin: false
Spaces in C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119\xtensa-esp-elf\xtensa-esp-elf\bin: false
Spaces in C:\Espressif\tools\python\v5.5.1\venv\Scripts: false
Spaces in Virtual environment Python path (computed) false
Spaces in ESP-IDF Tools Path false
----------------------------------------------------------- Executables Versions -----------------------------------------------------------
Git version undefined
ESP-IDF version undefined
Python version undefined
Python's pip version undefined
-------------------------------------------------- Project configuration settings ----------------------------------------------------------
-------------------------------------------------- Python packages in Virtual environment Python path (computed) ---------------------------
---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
Check ESP-IDF Python packages undefined
---------------------------------------------------- ESP-IDF Setups ------------------------------------------------------------------------
----------------------------------------------------------- Latest error -----------------------------------------------------------------
{
"errno": -4058,
"code": "ENOENT",
"syscall": "spawn C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe",
"path": "C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe",
"spawnargs": [
"--version"
],
"cmd": "C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe --version"
}
--------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------- Logfile -----------------------------------------------------------------
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1578815\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T06:37:52.544Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1578993\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T06:37:52.545Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579085\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T06:37:52.545Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579181\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T06:37:52.545Z"}
{"message":"spawn C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe ENOENT","stack":"Error: spawn C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe ENOENT\n at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)","category":"extension DoctorCommand","level":"error","timestamp":"2025-10-31T06:37:52.548Z"}
{"user":true,"level":"warn","message":"Extension configuration report has been copied to clipboard with errors","timestamp":"2025-10-31T06:37:52.549Z"}
{"message":"OpenOCD server failed to start because of Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\n❌ or: [esp32s3.cpu0] Error writing instruction to memory: -4\r\nError: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\r\nError: [esp32s3.cpu0] Failed to add SW breakpoint!\r\nError: [esp32s3.cpu0] can't add breakpoint: unknown reason\r\n","stack":"Error: OpenOCD server failed to start because of Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\n at Socket.<anonymous> (\\dist\\extension.js:2:1396699)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Socket.Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-10-31T07:09:15.848Z"}
{"message":"OpenOCD server failed to start because of Error: [esp32s3.cpu0] Error writing instruct\n❌ Warn : address 0x42015870 not writable\r\nError: [esp32s3.cpu0] Error writing instruct","stack":"Error: OpenOCD server failed to start because of Error: [esp32s3.cpu0] Error writing instruct\n at Socket.<anonymous> (\\dist\\extension.js:2:1396699)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Socket.Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-10-31T07:10:27.476Z"}
{"message":"OpenOCD server failed to start because of Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\n❌ ion to memory: -4\r\nError: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\r\nError: [esp32s3.cpu0] Failed to add SW breakpoint!\r\nError: [esp32s3.cpu0] can't add breakpoint: unknown reason\r\n","stack":"Error: OpenOCD server failed to start because of Error: [esp32s3.cpu0] Failed to write breakpoint instruction (-4)!\n at Socket.<anonymous> (\\dist\\extension.js:2:1396699)\n at Socket.emit (node:events:519:28)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Socket.Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","category":"OpenOCDManager stderr","level":"error","timestamp":"2025-10-31T07:10:27.478Z"}
{"user":true,"level":"warn","message":"Can't perform JTAG flash, because OpenOCD server is not running!","timestamp":"2025-10-31T07:11:32.280Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1578815\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T07:13:31.437Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1578993\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T07:13:31.438Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579085\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T07:13:31.439Z"}
{"message":"Cannot access filePath: undefined","stack":"TypeError: The \"path\" argument must be of type string or an instance of Buffer or URL. Received undefined\n at Object.accessSync (node:fs:244:18)\n at Object.t.accessSync (node:electron/js2c/node_init:2:9395)\n at Qe (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1403811)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579181\n at Hs (c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1579855)\n at c:<HOMEPATH>\\.vscode\\extensions\\espressif.esp-idf-extension-2.0.1\\dist\\extension.js:2:1851892","category":"src utils canAccessFile","level":"error","timestamp":"2025-10-31T07:13:31.440Z"}
{"message":"spawn C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe ENOENT","stack":"Error: spawn C:\\Program Files\\Git\\cmd\\git.exe\r\nC:<HOMEPATH>\\scoop\\shims\\git.exe ENOENT\n at Process.ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at processTicksAndRejections (node:internal/process/task_queues:90:21)","category":"extension DoctorCommand","level":"error","timestamp":"2025-10-31T07:13:31.443Z"}
{"user":true,"level":"warn","message":"Extension configuration report has been copied to clipboard with errors","timestamp":"2025-10-31T07:13:31.444Z"}
--------------------------------------------------------------------------------------------------------------------------------------------
Extension
Description
When debugging an ESP32S3 project using the ESP-IDF extension in VSCode, clicking the "Restart" button on the debug toolbar fails to restart debugging. After clicking restart, the debugger cannot reconnect and an error message appears:
gdbserver stopped[Inferior 1 (Remote target) detached]
GNU gdb (esp-gdb) 16.2_20250324
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=xtensa-esp-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
❌ OpenOCD is not running. Please start OpenOCD before launching the debug session.
Debug Message
After setting the log level, the OpenOCD output continuously refreshes, and pressing F5 to start debugging becomes unresponsive. Therefore, I cannot provide more detailed debug messages here. Please refer to the output in the Description section.
{
"version": "0.2.0",
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter"
},
{
"type": "espidf",
"name": "Launch",
"request": "launch",
"logLevel": 4
}
]
}
{
"C_Cpp.intelliSenseEngine": "default",
"idf.openOcdConfigs": [
"board/esp32s3-builtin.cfg"
],
"idf.portWin": "COM4",
"idf.currentSetup": "C:\\esp\\v5.5.1\\esp-idf",
"idf.customExtraVars": {
"IDF_TARGET": "esp32s3"
},
"clangd.path": "C:\\Espressif\\tools\\esp-clang\\esp-19.1.2_20250312\\esp-clang\\bin\\clangd.exe",
"clangd.arguments": [
"--background-index",
"--query-driver=C:\\Espressif\\tools\\xtensa-esp-elf\\esp-14.2.0_20241119\\xtensa-esp-elf\\bin\\xtensa-esp32-elf-gcc.exe",
"--compile-commands-dir=c:\\Users\\admini\\debug-test\\build"
],
"idf.flashType": "JTAG",
"idf.openOcdDebugLevel": 4
}
Other Steps to Reproduce
- Start OpenOCD
- Start a debug session
- Use the Restart button in the VSCode debug toolbar.
- Observe that the debug session does not restart properly.
- See the error messages about OpenOCD not running and gdbserver stopped.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
bug-reportBug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)ongoingOngoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale botOngoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot