2025-12-16 3:35 PM
I have a vscode task that allows me to just flash the application using `cube` which has worked fine until I got the lastest extensions update where now running this task will give a "The "path" argument must be of type string. Received undefined" error.
The task definition (tasks.json):
"type": "shell",
"label": "Program flash",
"command": "cube",
"args": [
"programmer",
"-c",
"port=SWD",
"-d",
"${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}",
"-g"
],
"problemMatcher": [], Part of the error log:
025-12-16 23:18:12.319 [error] TypeError: The "path" argument must be of type string. Received undefined
at Object.basename (node:path:911:5)
at n (c:\Users\user\.vscode\extensions\stmicroelectronics.stm32cube-ide-debug-core-1.1.0\lib\extension.js:435:4173)
at c:\Users\user\.vscode\extensions\stmicroelectronics.stm32cube-ide-debug-core-1.1.0\lib\extension.js:435:4493How can I resolve this?
Thanks!