Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Why can't arduino.json "output" share the same output folder that is generated for debugging? #1473

Closed
@zfields

Description

@zfields

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/"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed-pending-releaseFix is merged and will be included in the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions