File tree 3 files changed +13
-5
lines changed
arduino-ide-extension/src/browser/contributions
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,12 @@ export abstract class CoreServiceContribution extends SketchContribution {
222
222
} catch { }
223
223
}
224
224
if ( message ) {
225
+ if ( message . includes ( 'Missing FQBN (Fully Qualified Board Name)' ) ) {
226
+ message = nls . localize (
227
+ 'arduino/coreContribution/noBoardSelected' ,
228
+ 'No board selected. Please select your Arduino board from the Tools > Board menu.'
229
+ ) ;
230
+ }
225
231
const copyAction = nls . localize (
226
232
'arduino/coreContribution/copyError' ,
227
233
'Copy error messages'
Original file line number Diff line number Diff line change @@ -61,10 +61,11 @@ export class UploadSketch extends CoreServiceContribution {
61
61
registry . registerCommand ( UploadSketch . Commands . UPLOAD_SKETCH , {
62
62
execute : async ( ) => {
63
63
const key = this . selectedFqbnAddress ( ) ;
64
- if ( ! key ) {
65
- return ;
66
- }
67
- if ( this . boardRequiresUserFields && ! this . cachedUserFields . has ( key ) ) {
64
+ if (
65
+ this . boardRequiresUserFields &&
66
+ key &&
67
+ ! this . cachedUserFields . has ( key )
68
+ ) {
68
69
// Deep clone the array of board fields to avoid editing the cached ones
69
70
this . userFieldsDialog . value = (
70
71
await this . boardsServiceProvider . selectedBoardUserFields ( )
Original file line number Diff line number Diff line change 132
132
"replaceTitle" : " Replace"
133
133
},
134
134
"coreContribution" : {
135
- "copyError" : " Copy error messages"
135
+ "copyError" : " Copy error messages" ,
136
+ "noBoardSelected" : " No board selected. Please select your Arduino board from the Tools > Board menu."
136
137
},
137
138
"daemon" : {
138
139
"restart" : " Restart Daemon" ,
You can’t perform that action at this time.
0 commit comments