-
-
Notifications
You must be signed in to change notification settings - Fork 398
Documentation: Specification for sketch.json? #1074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's not used by Arduino CLI, but it is used by Arduino Web Editor. |
Yup. (That bit is mentioned in the little bit of spec I linked to.) |
IMO
I'd suggest adding a paragraph for sketch.json along the lines of
Note that arduino-cli board attach doesn't seem to work with generic USB interfaces (FTDI...) because there is no way to tell it both the port and FQDN found there. If you manually create the sketch.json file with the correct content, the arduino-cli
|
There is an issue about this here: #1073 |
What is the name parameter for? Where is it used? I put arbitrary values in it and nothing in arduino-cli seems to change... The failure case I'm thinking of is when the FQBN and the NAME don't match as expected - which one is correct? Worse, if the NAME is never used now, things will break in the future if/when it starts being used... |
Hi, as a suggestion: a lot of tools allow to dump the "default config" into a file. Regards |
We reworked the The previous file We decide to do this braking change now in sight of the Arduino CLI 1.0 release. |
[If this issue belongs in a different issue tracker, please let me know.]
I think there should be some sort of written spec for
sketch.json
, including what data is required as well as what data is allowed.https://arduino.github.io/arduino-cli/latest/sketch-specification/#metadata is the only doc I can find for sketch.json.
It tells me that the two keys are 'included_libs' and 'cpu', but doesn't describe the formats of these two keys or whether any other keys are supported.
It's not clear whether additional data in sketch.json gets round-tripped when the file is written by arduino-cli or whether the expectation is that writes by
arduino-cli board attach
are destructive.Grepping the source of arudino-cli, I think that cpu has 3 possible keys:
fqbn
,port
, andname
, with onlyfqbn
being required.included_libs
doesn't show up in the source anywhere.Is there a more complete spec for sketch.json elsewhere that should be linked into the docs?
The text was updated successfully, but these errors were encountered: