Skip to content

Commit c9d3053

Browse files
author
Federico Fissore
committed
PdeKeywords must be read before consulting command line args
1 parent abdb93c commit c9d3053

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: app/src/processing/app/Base.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ public Base(String[] args) throws Exception {
312312
// Setup board-dependent variables.
313313
onBoardOrPortChange();
314314

315+
this.pdeKeywords = new PdeKeywords();
316+
this.pdeKeywords.reload();
317+
315318
CommandlineParser parser = CommandlineParser.newCommandlineParser(args);
316319

317320
for (String path : parser.getFilenames()) {
@@ -348,9 +351,6 @@ public Base(String[] args) throws Exception {
348351
// them.
349352
PreferencesData.save();
350353

351-
this.pdeKeywords = new PdeKeywords();
352-
this.pdeKeywords.reload();
353-
354354
if (parser.isInstallBoard()) {
355355
ContributionsIndexer indexer = new ContributionsIndexer(BaseNoGui.getSettingsFolder());
356356
ContributionInstaller installer = new ContributionInstaller(indexer) {

0 commit comments

Comments
 (0)