Skip to content

Commit 05bcdce

Browse files
author
Federico Fissore
committed
PdeKeywords must be read before consulting command line args
1 parent 7d66a7d commit 05bcdce

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
@@ -309,6 +309,9 @@ public Base(String[] args) throws Exception {
309309
// Setup board-dependent variables.
310310
onBoardOrPortChange();
311311

312+
this.pdeKeywords = new PdeKeywords();
313+
this.pdeKeywords.reload();
314+
312315
CommandlineParser parser = CommandlineParser.newCommandlineParser(args);
313316

314317
for (String path : parser.getFilenames()) {
@@ -345,9 +348,6 @@ public Base(String[] args) throws Exception {
345348
// them.
346349
Preferences.save();
347350

348-
this.pdeKeywords = new PdeKeywords();
349-
this.pdeKeywords.reload();
350-
351351
if (parser.isInstallBoard()) {
352352
ContributionsIndexer indexer = new ContributionsIndexer(BaseNoGui.getSettingsFolder());
353353
ContributionInstaller installer = new ContributionInstaller(indexer) {

0 commit comments

Comments
 (0)