Skip to content

Commit fa0e587

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 230d130 commit fa0e587

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

+5-1
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)