Closed PeterWone closed 4 years ago
@PeterWone that looks odd I have tried the same and it works
{
"ID": "arduino:sam",
"Latest": "1.6.12",
"Name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
"Maintainer": "Arduino",
"Website": "http://www.arduino.cc/",
"Email": "packages@arduino.cc",
"Boards": [
{
"name": "Arduino Due (Programming Port)",
"fqbn": "arduino:sam:arduino_due_x_dbg"
},
{
"name": "Arduino Due (Native USB Port)",
"fqbn": "arduino:sam:arduino_due_x"
}
]
}
and
{
"name": "Arduino MKR WiFi 1010",
"fqbn": "arduino:samd:mkrwifi1010"
}
I have an hypothesis that I am currently testing. This one may also turn out to be a documentation thing.
I can now reproduce consistent behaviour.
A board's FQBN is reported by core search
only when the core for that board is installed.
Whether this is a bug depends on whether the documentation says it should happen. Personally I can't see the value of listing the boards without FQBNs.
@PeterWone the timing is right
I just found out another bug with the core search
in that it only searches within the platform's name.
Thank you for filing #997
I'll close this one and move the discussion there
Bug Report
Current behavior
Boards listed for the arduino:avr core specify FQBNs.
Boards listed for other cores do not provide FQBN.
The FQBN is required by
arduino-cli compile
and other commands.arduino-cli core search --format json
Expected behavior
All boards for which an FQBN is defined should report FQBN in the response to
core search
Environment
arduino-cli version
): arduino-cli Version: 0.13.0 Commit: 693a045Additional context
67 boards are reported for various cores. 30 are from arduino:avr and only these report FQBN.