Skip to content

Commit 36b6dca

Browse files
author
jantje
committed
#1339 regression. Referenced variants boards do not have variant folder
This was caused by asking the platformPath instead of the latest installed platformVersion Path
1 parent b6cd455 commit 36b6dca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

io.sloeber.core/src/io/sloeber/core/api/BoardsManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,11 @@ public static IPath getPlatformInstallPath(String vendor, String architecture) {
738738

739739
ArduinoPlatform platform = getPlatform(vendor, architecture);
740740
if (platform != null) {
741-
return new org.eclipse.core.runtime.Path(platform.getInstallPath().toString());
741+
ArduinoPlatformVersion latestInstall = platform.getNewestInstalled();
742+
if (latestInstall == null) {
743+
return null;
744+
}
745+
return latestInstall.getInstallPath();
742746
}
743747
return null;
744748
}

0 commit comments

Comments
 (0)