-
-
Notifications
You must be signed in to change notification settings - Fork 72
[user-guide]: CLI configuration, aka. How to enable 3rd party board packages #245
Comments
Add your remarks, we're happy to hear your feedback. |
@csaba911, I created #255 just for you, I thought you log the additional info there.
Please share the entire error, it seems to be a go panic from the CLI. Do you have
See here: #255 (comment) |
@MatteoTondelli, do you have 0.10.0 CLI on the |
@kittaakos here is my setup:
Here is IDE about:
Hope this will help. |
This is obsolete. The new settings UI is almost identical to the Java IDE. Configuring the 3rd party boards should be the same as in the Java IDE. Closing. |
CLI Configuration:
The Arduino Pro IDE is powered by the Arduino command-line interface.
From now on, you can adjust the default CLI configurations from the IDE. With this new feature, you can manage any 3rd party core packages conveniently. Here is a list of
This documentation gives you a short introduction on how to manage 3rd party core packages from the IDE by configuring the ESP8266 board. As a reference, you can check how does the Arduino CLI support the 3rd party cores.
Open the Pro IDE and select the
ESP8266
board:Check if
ESP8266
is listed for any of the core packages from theBoards Manager
view:Configure the CLI with a custom, 3rd party URL:
You can use the Command Palette (Ctrl/⌘+Shift+P or F1) to open the CLI configuration. Or you can access the configuration from the
File
>Settings
>Open CLI Configuration
menu.Note, you have full-blown language support for the CLI configuration. Whenever you make a mistake, you will see a validation error in the editor.
When you are confused and do not exactly know what are the possible CLI configuration properties, use the content assist (Ctrl+Space) in the editor.
Under the hood, the Pro IDE will create a configuration folder into your home folder (
~/.arduinoProIDE/
) and dumps the default CLI configuration into thearduino-cli.yaml
YAML file. If something is not defined in the YAML file, the CLI falls back to its defaults. Whenever you edit the CLI configuration, we periodically check for modifications and try to update the CLI configuration. If you specify an invalid config, you will be notified and your changes will not be applied.Now you know the basics of the CLI configuration, and how to adjust it, let's add a 3rd party core package URL and see what happens.
Install the core package for the
ESP8266
board:Handling invalid CLI configuration:
As mentioned above, the CLI configuration is stored under the
~/.arduinoProIDE/arduino-cli.yaml
location. Of course, you can edit the file outside of the Pro IDE and make it invalid. For instance, if you manually set thedaemon.port
to-1
and start the IDE, the following will happen.Long story short, if you see the
CLI Daemon Offline
warning on the status bar, go to your CLI configuration, fix the invalid config, and the daemon will automatically recover.Appendix (arduino/arduino-cli#587)
Proposal: JSON schema for the Arduino CLI configuration:
The text was updated successfully, but these errors were encountered: