Skip to content

Commit 9212dff

Browse files
author
jantje
committed
Do not get the boarddescriptor from the configuration
1 parent 2496209 commit 9212dff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

io.sloeber.core/src/io/sloeber/core/tools/Libraries.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import io.sloeber.core.api.IInstallLibraryHandler;
4040
import io.sloeber.core.api.LibraryDescriptor;
4141
import io.sloeber.core.api.LibraryManager;
42+
import io.sloeber.core.api.SloeberProject;
4243
import io.sloeber.core.common.Common;
4344
import io.sloeber.core.common.ConfigurationPreferences;
4445
import io.sloeber.core.common.Const;
@@ -111,9 +112,11 @@ private static Map<String, IPath> findAllSubFolders(IPath ipath) {
111112
* @return all the library folder names. May contain empty values.
112113
*/
113114
private static Map<String, IPath> findAllHarwareLibraries(
114-
ICConfigurationDescription confdesc) {
115+
ICConfigurationDescription confDesc) {
115116
Map<String, IPath> ret = new HashMap<>();
116-
BoardDescription boardDescriptor = new BoardDescription(confdesc);
117+
IProject project = confDesc.getProjectDescription().getProject();
118+
SloeberProject sProject = SloeberProject.getSloeberProject(project);
119+
BoardDescription boardDescriptor = sProject.getBoardDescription(confDesc);
117120
// first add the referenced
118121
IPath libPath = boardDescriptor.getReferencedLibraryPath();
119122
if (libPath != null) {

0 commit comments

Comments
 (0)