Skip to content
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

Problem with FQBN handling for Custom Board Package with space in name #44

Closed
vicatcu opened this issue Sep 19, 2018 · 2 comments
Closed
Labels
type: enhancement Proposed improvement

Comments

@vicatcu
Copy link

vicatcu commented Sep 19, 2018

I'm using Ubuntu 16.04 x64. I have successfully installed my custom boards manager package by specifying a .cli-config.yml that looks like this based on reading other issues here:

board_manager:
  additional_urls:
    - http://update.wickeddevice.com/package_airqualityegg-2.3.3_index.json

Then I do arduino-cli core update-index and it gets my boards package no problem.
Then I do arduino-cli core list and it outputs the following:

ID                             	Installed	Latest	Name           
Air Quality Egg v2 - 2.3.3:avr 	2.3.3    	2.3.3 	Air Quality Egg

Now I'm trying to figure out how to compile a sketch using that package and I'm getting tripped up on the FQBN business. If I compile a sketch in the IDE and look at the build.options.json that gets generated in the build folder, I see this:

{ "fqbn": "Air Quality Egg v2 - 2.3.3:avr:wildfiredo3" }

But if I try to compile using the following command:

arduino-cli compile --fqbn "Air Quality Egg v2 - 2.3.3:avr:wildfiredo3" sketchbook/testing

I get an error message which makes no sense to me:

Error: Error resolving FQBN: missing package arduino:Air Quality Egg v2 - 2.3.3:avr required for build
Compilation failed.

Maybe this has something to do with the structure of my package or naming conventions that needs to be corrected? But the fact remains, I have no problems using my package with the IDE, so I figure it must be a problem with the processing of the fbqn command line argument for the arduino-cli. Help / guidance appreciated.

@vicatcu vicatcu changed the title Problem with FQBN handling? Problem with FQBN handling for Custom Board Package Sep 19, 2018
@ignorant
Copy link

If you don't have arduino:avr core installed,try install arduino:avr core.
After install core,compile again.

@cmaglie
Copy link
Member

cmaglie commented Sep 20, 2018

Probably the name field in the package json http://update.wickeddevice.com/package_airqualityegg-2.3.3_index.json should also be different:

{
  "packages": [ {
    "name":"Air Quality Egg v2 - 2.3.3",
    "maintainer":"Wicked Device LLC",
    "websiteURL":"http://airqualityegg.com",

probably you want something like:

"name" : "airqualityegg"

or

"name": "wicked"

anyway this field is taken as the first part of the FQBN and should be lowercase letters only.
Maybe a check on this field should be added to produce a warning.

@cmaglie cmaglie added the type: enhancement Proposed improvement label Sep 20, 2018
@per1234 per1234 changed the title Problem with FQBN handling for Custom Board Package Problem with FQBN handling for Custom Board Package with space in name May 24, 2019
@cmaglie cmaglie closed this as completed Sep 12, 2019
per1234 pushed a commit that referenced this issue Nov 16, 2020
* Changing debug method to allow variadic arguments for simplifying debugging code
* Using a enum class for improved readabilty on the currently used debug level
* Adding function 'debugMessageNoTimestamp' to print a debug message without a timestamp
* Changing bracing style to K&R employed in the rest of the file
* Select your desired output stream for debug messages via 'setDebugOutputStream'
* Adding missing header include guards
per1234 pushed a commit that referenced this issue Nov 16, 2020
per1234 added a commit that referenced this issue Aug 9, 2021
Add schema provided checks for library.properties url field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants