-
-
Notifications
You must be signed in to change notification settings - Fork 515
Commit 73835ec
author
authoredAlberto Iannaccone
Prevent overwriting existing libraries and platforms at first IDE start-up (#1169)
* move initialization of libs and platforms into new contribution
* use noOverwrite when install built-in libraries and platform
* catch errors when installing platforms and libraries at first start-up
* arduino-cli version 0.25.0-rc1
* refine platforms and libraries initialization in case of errors
* add trailing newline when libraries and platform installation fail
* use regex to check error if builtin library dependencies are already installed
* rename contribution1 parent 46fcc71 commit 73835ec
File tree
14 files changed
+213
-32
lines changed- arduino-ide-extension
- src
- browser
- contributions
- common/protocol
- node
- cli-protocol/cc/arduino/cli/commands/v1
14 files changed
+213
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | - | ||
158 | + | ||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
Lines changed: 0 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | - | ||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | - | ||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
| |||
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
101 | - | ||
102 | - | ||
103 | - | ||
104 | 99 | | |
105 | 100 | | |
106 | 101 | | |
| |||
162 | 157 | | |
163 | 158 | | |
164 | 159 | | |
165 | - | ||
166 | - | ||
167 | - | ||
168 | - | ||
169 | - | ||
170 | - | ||
171 | - | ||
172 | - | ||
173 | - | ||
174 | - | ||
175 | - | ||
176 | - | ||
177 | - | ||
178 | - | ||
179 | - | ||
180 | - | ||
181 | - | ||
182 | - | ||
183 | - | ||
184 | - | ||
185 | - | ||
186 | 160 | | |
187 | 161 | | |
188 | 162 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | + | ||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
699 | 700 | | |
700 | 701 | | |
701 | 702 | | |
703 | + | ||
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
| |||
Lines changed: 97 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | + | ||
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | ||
95 | + | ||
96 | + | ||
97 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | + | ||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | + | ||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | + | ||
394 | 395 | | |
395 | 396 | | |
396 | 397 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
410 | + | ||
409 | 411 | | |
410 | 412 | | |
411 | 413 | | |
| |||
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
433 | - | ||
435 | + | ||
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | + | ||
99 | + | ||
100 | + | ||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
139 | + | ||
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
Lines changed: 31 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | - | ||
152 | + | ||
153 | + | ||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | ||
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
| |||
482 | 487 | | |
483 | 488 | | |
484 | 489 | | |
490 | + | ||
491 | + | ||
492 | + | ||
493 | + | ||
494 | + | ||
495 | + | ||
496 | + | ||
485 | 497 | | |
486 | 498 | | |
487 | 499 | | |
| |||
1016 | 1028 | | |
1017 | 1029 | | |
1018 | 1030 | | |
1031 | + | ||
1032 | + | ||
1033 | + | ||
1034 | + | ||
1035 | + | ||
1036 | + | ||
1037 | + | ||
1038 | + | ||
1039 | + | ||
1040 | + | ||
1041 | + | ||
1042 | + | ||
1043 | + | ||
1044 | + | ||
1045 | + | ||
1046 | + | ||
1047 | + | ||
1048 | + | ||
1019 | 1049 | | |
1020 | 1050 | | |
1021 | 1051 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | + | ||
30 | + | ||
31 | + | ||
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
50 | + | ||
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments