You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,21 @@ Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> !
15
15
* Integrated Arduino Debugging <sup>New</sup>
16
16
17
17
## Prerequisites
18
-
Either the Arduino IDE or Arduino CLI are required.
18
+
Either the Arduino IDE or Arduino CLI are required. The recommended approach is
19
+
to use the version of Arduino CLI that comes bundled with the extension, which
20
+
works out of the box.
21
+
22
+
### Arduino CLI
23
+
To use the bundled version of Arduino CLI, `arduino.useArduinoCli` should be `true`,
24
+
and `arduino.path` and `arduino.commandPath` should be empty or unset.
25
+
`arduino.useArduinoCli` defaults to `false` while we deprecate support for the
26
+
Arduino IDE, but there will be a prompt when the extension first activates to
27
+
switch to the Arduino CLI.
28
+
29
+
If you want to use a custom version of Arduino CLI, it can be downloaded from
30
+
the repository's [release page](https://github.com/arduino/arduino-cli/releases/).
31
+
For custom versions, `arduino.path` must be set to the directory containing the
32
+
Arduino CLI executable.
19
33
20
34
### Arduino IDE
21
35
The Arduino IDE can be installed the Arduino [download page](https://www.arduino.cc/en/main/software#download).
@@ -24,11 +38,6 @@ The Arduino IDE can be installed the Arduino [download page](https://www.arduino
24
38
-*Note:* Arduino IDE `1.8.7` had some breaking changes, causing board package and library installation failures. These failures were corrected in `1.8.8` and later.
25
39
-*Note:* Arduino IDE `2.X.Y` is not supported at this time [issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)
26
40
27
-
### Arduino CLI
28
-
The Arduino CLI can be downloaded from the repository's [release page](https://github.com/arduino/arduino-cli/releases/tag/0.13.0)
29
-
- The extension has only been tested with v0.13.0.
30
-
- If you use the CLI you will have to set `arduino.path` since the CLI does not have a default path.
31
-
32
41
## Installation
33
42
Open VS Code and press <kbd>F1</kbd> or <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> *or* <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> to open command palette, select **Install Extension** and type `vscode-arduino`.
34
43
@@ -71,9 +80,9 @@ This extension provides several commands in the Command Palette (<kbd>F1</kbd> o
71
80
## Options
72
81
| Option | Description |
73
82
| --- | --- |
74
-
|`arduino.useArduinoCli`| Whether to use the Arduino CLI (`true`) or the Arduino IDE (`false`) -- defaults to `false`. If using `true`, make sure to set the `arduino.path` and `arduino.commandPath` values correctly. |
75
-
|`arduino.path`| Path to the Arduino installation. You can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path. To use the Arduino CLI, use the path that contains the `arduino-cli` executable (e.g. `/usr/local/bin`). |
76
-
|`arduino.commandPath`| Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for Windows, `Contents/MacOS/Arduino` for Mac and `arduino` for Linux, You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux. To use the Arduino CLI, use `arduino-cli`. |
83
+
|`arduino.useArduinoCli`| Whether to use the Arduino CLI (`true`) or the Arduino IDE (`false`) -- defaults to `false`. If using `true`, either leave the `arduino.path` and `arduino.commandPath` values unset to use the bundled version of Arduino CLI, or point them at a custom version of Arduino CLI. Note that a future version of the extension will change this default to `true` and remove support for Arduino IDE. |
84
+
|`arduino.path`| Path to the Arduino installation. You can use a custom version of Arduino by modifying this setting to include the full path. Example: `C:\\Program Files\\Arduino` for Windows, `/Applications` for Mac, `/home/<username>/Downloads/arduino-1.8.1` for Linux. (Requires a restart after change). The default value is automatically detected from your Arduino IDE installation path. To use the Arduino CLI, use the path that contains the `arduino-cli` executable (e.g. `/usr/local/bin`), or leave it unset to use the bundled version of Arduino CLI. |
85
+
|`arduino.commandPath`| Path to an executable (or script) relative to `arduino.path`. The default value is `arduino_debug.exe` for Windows, `Contents/MacOS/Arduino` for Mac and `arduino` for Linux, You also can use a custom launch script to run Arduino by modifying this setting. (Requires a restart after change) Example: `run-arduino.bat` for Windows, `Contents/MacOS/run-arduino.sh` for Mac and `bin/run-arduino.sh` for Linux. To use the bundled version of Arduino CLI, leave this option unset. To use a custom version of Arduino CLI, use `arduino-cli`. |
77
86
|`arduino.additionalUrls`| Additional Boards Manager URLs for 3rd party packages as a string array. The default value is empty. |
78
87
|`arduino.logLevel`| CLI output log level. Could be info or verbose. The default value is `"info"`. |
79
88
|`arduino.clearOutputOnBuild`| Clear the output logs before uploading or verifying. Default value is `false`. |
@@ -91,8 +100,7 @@ The following Visual Studio Code settings are available for the Arduino extensio
91
100
92
101
```json
93
102
{
94
-
"arduino.path": "C:/Program Files (x86)/Arduino",
95
-
"arduino.commandPath": "arduino_debug.exe",
103
+
"arduino.useArduinoCli": true,
96
104
"arduino.logLevel": "info",
97
105
"arduino.allowPDEFiletype": false,
98
106
"arduino.enableUSBDetection": true,
@@ -105,7 +113,6 @@ The following Visual Studio Code settings are available for the Arduino extensio
105
113
"arduino.defaultBaudRate": 115200
106
114
}
107
115
```
108
-
*Note:* You only need to set `arduino.path` in Visual Studio Code settings, other options are not required.
109
116
110
117
The following settings are as per sketch settings of the Arduino extension. You can find them in
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@
473
473
"arduino.useArduinoCli": {
474
474
"type": "boolean",
475
475
"default": false,
476
-
"markdownDescription": "Use Arduino CLI installed instead of Arduino IDE. `#arduino.path#` must be set, as there is no default path for 'arduino-cli'. (Requires a restart after change)"
476
+
"markdownDescription": "Use Arduino CLI installed instead of Arduino IDE. If `#arduino.path#` and `#arduino.commandPath#` are not set, the extension will use a version of Arduino CLI bundled with the extension. (Requires a restart after change)"
477
477
},
478
478
"arduino.path": {
479
479
"type": "string",
@@ -596,7 +596,7 @@
596
596
},
597
597
"scripts": {
598
598
"build": "gulp build --mode=production",
599
-
"postinstall": "cd ./src/views && npm install",
599
+
"postinstall": "node ./build/downloadAssets.js && cd ./src/views && npm install",
0 commit comments