Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit dd58157

Browse files
Merge branch 'main' of https://github.com/microsoft/vscode-arduino into dev/gcampbell/UpdateSerialMonitor2.0
2 parents 322cad4 + 2ec8a74 commit dd58157

31 files changed

+462
-65
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ jobs:
7272
- name: Check for linting errors
7373
run: gulp tslint
7474
- name: Build and pack extension
75-
run: vsce package --out vscode-arduino.vsix
75+
run: node build/package.js
7676
- name: Publish extension VSIX as artifact
7777
uses: actions/upload-artifact@v2
7878
with:
79-
name: VS Code extension VSIX (${{ matrix.os }})
80-
path: vscode-arduino.vsix
79+
name: VS Code extension VSIXes (${{ matrix.os }})
80+
path: out/vsix
8181

8282
- name: Run tests
8383
uses: GabrielBB/xvfb-action@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
src/views/app/sprites-generated
77
test/**/c_cpp_properties.json
88
*.vsix
9+
assets/platform/*/arduino-cli

.vscodeignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ webpack.config.js
1717
node_modules/**
1818
vendor/**
1919
azure-pipelines.yml
20-
build/**
20+
build/**
21+
assets/platform/**
22+
23+
# A platform-specific directory in assets/platform/ will be added to the end of
24+
# this file by the packaging script.

NOTICE_arduino-cli.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
NOTICES AND INFORMATION
2+
Do Not Translate or Localize
3+
4+
Microsoft makes the arduino-cli open source code available at
5+
https://3rdpartysource.microsoft.com, or you may send a check or money order for
6+
US $5.00, including the product name, the open source component name, platform,
7+
and version number, to:
8+
9+
Source Code Compliance Team
10+
Microsoft Corporation
11+
One Microsoft Way
12+
Redmond, WA 98052
13+
USA
14+
15+
Notwithstanding any other terms, you may reverse engineer this software to the extent
16+
required to debug changes to any libraries licensed under the GNU Lesser General Public License.

README.md

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,31 @@ Welcome to the Visual Studio Code extension for **Arduino** <sup>preview</sup> !
1515
* Integrated Arduino Debugging <sup>New</sup>
1616

1717
## Prerequisites
18-
Either the Arduino IDE or Arduino CLI are required.
18+
Either the legacy Arduino IDE or Arduino CLI are required. The recommended
19+
approach is to use the version of Arduino CLI that comes bundled with the
20+
extension, which works out of the box. Support for the legacy Arduino IDE will
21+
be removed in a future version of the extension.
1922

20-
### Arduino IDE
21-
The Arduino IDE can be installed the Arduino [download page](https://www.arduino.cc/en/main/software#download).
22-
- The supported Arduino IDE versions are `1.6.x` and up to, but not including, 2.0.0.
23+
### Arduino CLI
24+
To use the bundled version of Arduino CLI, `arduino.useArduinoCli` should be `true`,
25+
and `arduino.path` and `arduino.commandPath` should be empty or unset.
26+
`arduino.useArduinoCli` defaults to `false` while we deprecate support for the
27+
Arduino IDE, but there will be a prompt when the extension first activates to
28+
switch to the Arduino CLI.
29+
30+
If you want to use a custom version of Arduino CLI, it can be downloaded from
31+
the repository's [release page](https://github.com/arduino/arduino-cli/releases/).
32+
For custom versions, `arduino.path` must be set to the directory containing the
33+
Arduino CLI executable.
34+
35+
### Legacy Arduino IDE
36+
Use of the legacy Arduino IDE is not recommended, and support for the legacy
37+
Arduino IDE will be removed in a future version of the extension. The legacy
38+
Arduino IDE can be installed from the Arduino [download page](https://www.arduino.cc/en/main/software#download).
39+
- The supported legacy Arduino IDE versions are `1.6.x` and up to, but not including, `2.0.0`.
2340
- The Windows Store's version of the Arduino IDE is not supported because of the sandbox environment that the application runs in.
2441
- *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-
- *Note:* Arduino IDE `2.X.Y` is not supported at this time [issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)
26-
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.
42+
- *Note:* Arduino IDE `2.X.Y` is not supported and there are no plans for support in the future ([issue 1477](https://github.com/microsoft/vscode-arduino/issues/1477)).
3143

3244
## Installation
3345
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`.
@@ -69,9 +81,9 @@ This extension provides several commands in the Command Palette (<kbd>F1</kbd> o
6981
## Options
7082
| Option | Description |
7183
| --- | --- |
72-
| `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. |
73-
| `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`). |
74-
| `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`. |
84+
| `arduino.useArduinoCli` | Whether to use the Arduino CLI (`true`) or the legacy 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 legacy Arduino IDE. |
85+
| `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 legacy 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. |
86+
| `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`. |
7587
| `arduino.additionalUrls` | Additional Boards Manager URLs for 3rd party packages as a string array. The default value is empty. |
7688
| `arduino.logLevel` | CLI output log level. Could be info or verbose. The default value is `"info"`. |
7789
| `arduino.clearOutputOnBuild` | Clear the output logs before uploading or verifying. Default value is `false`. |
@@ -87,8 +99,7 @@ The following Visual Studio Code settings are available for the Arduino extensio
8799

88100
```json
89101
{
90-
"arduino.path": "C:/Program Files (x86)/Arduino",
91-
"arduino.commandPath": "arduino_debug.exe",
102+
"arduino.useArduinoCli": true,
92103
"arduino.logLevel": "info",
93104
"arduino.allowPDEFiletype": false,
94105
"arduino.enableUSBDetection": true,
@@ -100,7 +111,6 @@ The following Visual Studio Code settings are available for the Arduino extensio
100111
],
101112
}
102113
```
103-
*Note:* You only need to set `arduino.path` in Visual Studio Code settings, other options are not required.
104114

105115
The following settings are as per sketch settings of the Arduino extension. You can find them in
106116
`.vscode/arduino.json` under the workspace.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a placeholder file that should only be installed on alpine-arm64.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a placeholder file that should only be installed on alpine-x64.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a placeholder file that should only be installed on darwin-arm64.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a placeholder file that should only be installed on darwin-x64.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a placeholder file that should only be installed on linux-arm64.

0 commit comments

Comments
 (0)