Why can't arduino.json
"output" share the same output folder that is generated for debugging? #1473
Description
I LOVE the debugging feature of VSCode for Arduino!
When I debug, instead of using a /tmp
folder, it automatically creates the folder ${workspaceRoot}/.build/BluesW
- I love it.
What I don't love, is that I can't use that same folder for the output
key in my arduino.json
. If I specify .build/BluesW
to match the folder that has already been created, then it will put the binaries in .build/BluesW/BluesW
. However, when I simply specify .build
it will place the binaries in the root of the .build
folder (as you would expect). 🤷
Also, if I completely remove the .build
folder, but I have a nested path (e.g. .build/BluesW
) specified for output
, then it throws an error that the directory does not exist.
Please check the "output" in the sketch Settings.Cannot find the output path:/home/zak/Development/Arduino/gh-issue-1473/.build/BluesW
Here is my arduino.json
file:
arduino.json
{
"configuration": "pnum=SWAN_R5,upload_method=swdMethod,xserial=generic,usb=CDCgen,xusb=FS,opt=ogstd,dbg=enable,rtlib=nano",
"board": "STMicroelectronics:stm32:BluesW",
"port": "/dev/ttyACM0",
"sketch": "gh-issue-1473.ino",
"output":".build/BluesW/"
}