Skip to content

Commit

Permalink
fix: fixed parsing exception with indexer(#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaaa authored Nov 14, 2023
1 parent 05ea8a4 commit 822cebb
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1245,6 +1245,10 @@ private IFile getFileForCMakePath(String sourceFileName, IProject project)
pathtolookfor = getIdfToolsPath();
startIndex = sourceFile.indexOf(pathtolookfor);
}
if (startIndex == -1) // source file still not found means it was part of another esp-idf
{
return null;
}
String relativePath = sourceFile.substring(startIndex + pathtolookfor.length() + 1);

IPath projectPath = getComponentsPath().append(relativePath);
Expand Down

0 comments on commit 822cebb

Please sign in to comment.