Skip to content

Commit 93217c4

Browse files
committed
CLI: fixed missing "runtime.platform.path"
This happens when the CLI is runned without the `--board` option. Fix #6463
1 parent 472b3b8 commit 93217c4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/src/processing/app/Base.java

+4
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ public Base(String[] args) throws Exception {
261261
if (!isCommandLine()) {
262262
rebuildBoardsMenu();
263263
rebuildProgrammerMenu();
264+
} else {
265+
TargetBoard lastSelectedBoard = BaseNoGui.getTargetBoard();
266+
if (lastSelectedBoard != null)
267+
BaseNoGui.selectBoard(lastSelectedBoard);
264268
}
265269

266270
// Setup board-dependent variables.

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARDUINO 1.8.4
44
* IDE Toolbar can now go full width on 4K display.
55
* Environment variable LIBRARY_INDEX_URL is now correctly parsed (LIBRARY_INDEX_URL_GZ can also be optinally specified). Thanks @xardael
66
* Added per-board generic option in config file boards.txt for disabling control of dtr+rts. Thanks @d-a-v
7+
* CLI: fixed missing "runtime.platform.path" when running without the `--board` option
78

89
[libraries]
910
* Fixed wrong folder name for "Adafruit Circuit Playground" library, now it can be updated cleanly.

0 commit comments

Comments
 (0)