From 93217c40c7d03185c40c2bad9cff34782314fb76 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 18 Jul 2017 13:20:28 +0200 Subject: [PATCH] CLI: fixed missing "runtime.platform.path" This happens when the CLI is runned without the `--board` option. Fix #6463 --- app/src/processing/app/Base.java | 4 ++++ build/shared/revisions.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index c930cc85f..712205716 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -261,6 +261,10 @@ public class Base { if (!isCommandLine()) { rebuildBoardsMenu(); rebuildProgrammerMenu(); + } else { + TargetBoard lastSelectedBoard = BaseNoGui.getTargetBoard(); + if (lastSelectedBoard != null) + BaseNoGui.selectBoard(lastSelectedBoard); } // Setup board-dependent variables. diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index fbd0b2fe8..62cbd4c56 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -4,6 +4,7 @@ ARDUINO 1.8.4 * IDE Toolbar can now go full width on 4K display. * Environment variable LIBRARY_INDEX_URL is now correctly parsed (LIBRARY_INDEX_URL_GZ can also be optinally specified). Thanks @xardael * Added per-board generic option in config file boards.txt for disabling control of dtr+rts. Thanks @d-a-v +* CLI: fixed missing "runtime.platform.path" when running without the `--board` option [libraries] * Fixed wrong folder name for "Adafruit Circuit Playground" library, now it can be updated cleanly.