Skip to content

Commit 8e09971

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommittedFeb 20, 2024
feat: use Arduino CLI 0.36.0-rc.1 APIs
Signed-off-by: Akos Kitta <[email protected]>
1 parent 48e7bf6 commit 8e09971

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5530
-3268
lines changed
 

‎arduino-ide-extension/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,17 @@
169169
],
170170
"arduino": {
171171
"arduino-cli": {
172-
"version": "0.35.3"
172+
"version": "0.36.0-rc.1"
173173
},
174174
"arduino-fwuploader": {
175175
"version": "2.4.1"
176176
},
177177
"arduino-language-server": {
178-
"version": "0.7.6"
178+
"version": {
179+
"owner": "arduino",
180+
"repo": "arduino-language-server",
181+
"commitish": "91c2ba8"
182+
}
179183
},
180184
"clangd": {
181185
"version": "14.0.0"

‎arduino-ide-extension/scripts/generate-protocol.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(async () => {
44
const os = require('node:os');
55
const path = require('node:path');
6-
const { mkdirSync, promises: fs } = require('node:fs');
6+
const { mkdirSync, promises: fs, rmSync } = require('node:fs');
77
const { exec } = require('./utils');
88
const glob = require('glob');
99
const { SemVer, gte, valid: validSemVer } = require('semver');
@@ -140,6 +140,10 @@
140140

141141
const rpc = path.join(repository, 'rpc');
142142
const out = path.join(__dirname, '..', 'src', 'node', 'cli-protocol');
143+
// Must wipe the gen output folder. Otherwise, dangling service implementation remain in IDE2 code,
144+
// although it has been removed from the proto file.
145+
// For example, https://github.com/arduino/arduino-cli/commit/50a8bf5c3e61d5b661ccfcd6a055e82eeb510859.
146+
rmSync(out, { recursive: true, maxRetries: 5, force: true });
143147
mkdirSync(out, { recursive: true });
144148

145149
const protos = await new Promise((resolve) =>

0 commit comments

Comments
 (0)
Please sign in to comment.