What line? What do you mean "highlighted"? Selected?
Highlighted as in "caret" or "active line".
After you perform a search, look in the debug log. It should have relevant messages if it couldn't open some files. Are they correct (as filenames)?
16:56:22: can't open file 'G:\projects\codeblocks\src\devel\share\CodeBlocks\images\codecompletion\README.txt' (error 2: el sistema no puede hallar el archivo especificado.)
16:56:22: can't open file 'G:\projects\codeblocks\src\devel\share\CodeBlocks\plugins\README.txt' (error 2: el sistema no puede hallar el archivo especificado.)
16:56:22: can't open file 'G:\projects\codeblocks\src\devel\share\CodeBlocks\templates\README.txt' (error 2: el sistema no puede hallar el archivo especificado.)
16:56:24: can't open file 'G:\projects\codeblocks\src\src\resources\main_frame.xrc' (error 2: el sistema no puede hallar el archivo especificado.)
(and many others)
All those files (maybe included in the project?) aren't found. I checked. But I see no reason for getting that "not found" message presented as some kind of critical error.
AH HAH! Found the cause. I replaced with the following code in the FindinFiles function.
BEFORE:
for (int i = 0; i < prj->GetFilesCount(); ++i)
{
ProjectFile* pf = prj->GetFile(i);
if (pf)
filesList.Add(fullpath);
}
AFTER:
wxString fullpath = "";
for (int i = 0; i < prj->GetFilesCount(); ++i)
{
ProjectFile* pf = prj->GetFile(i);
if (pf)
{
fullpath = pf->file.GetFullPath();
if(wxFileExists(fullpath)) // Does the file exist?
filesList.Add(fullpath);
}
}
There! I just commited the change. No more weird reports at the end :-)