File tree 1 file changed +13
-9
lines changed
arduino-ide-extension/src/browser/contributions
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -31,17 +31,21 @@ export class InitLibsPlatforms extends Contribution {
31
31
) [ 0 ] ;
32
32
33
33
if ( avrPackage ) {
34
- await this . boardsService . install ( {
35
- item : avrPackage ,
36
- noOverwrite : true , // We don't want to automatically replace custom platforms the user might already have in place
37
- } ) ;
34
+ try {
35
+ await this . boardsService . install ( {
36
+ item : avrPackage ,
37
+ noOverwrite : true , // We don't want to automatically replace custom platforms the user might already have in place
38
+ } ) ;
39
+ } catch { } // If this fails, we still want to install the libraries
38
40
}
39
41
if ( builtInLibrary ) {
40
- await this . libraryService . install ( {
41
- item : builtInLibrary ,
42
- installDependencies : true ,
43
- noOverwrite : true , // We don't want to automatically replace custom libraries the user might already have in place
44
- } ) ;
42
+ try {
43
+ await this . libraryService . install ( {
44
+ item : builtInLibrary ,
45
+ installDependencies : true ,
46
+ noOverwrite : true , // We don't want to automatically replace custom libraries the user might already have in place
47
+ } ) ;
48
+ } catch { }
45
49
}
46
50
}
47
51
}
You can’t perform that action at this time.
0 commit comments