Skip to content

Commit 822cebb

Browse files
authored
fix: fixed parsing exception with indexer(#835)
1 parent 05ea8a4 commit 822cebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bundles/com.espressif.idf.core/src/com/espressif/idf/core/build/IDFBuildConfiguration.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,10 @@ private IFile getFileForCMakePath(String sourceFileName, IProject project)
12451245
pathtolookfor = getIdfToolsPath();
12461246
startIndex = sourceFile.indexOf(pathtolookfor);
12471247
}
1248+
if (startIndex == -1) // source file still not found means it was part of another esp-idf
1249+
{
1250+
return null;
1251+
}
12481252
String relativePath = sourceFile.substring(startIndex + pathtolookfor.length() + 1);
12491253

12501254
IPath projectPath = getComponentsPath().append(relativePath);

0 commit comments

Comments
 (0)