Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
"Find In Files" implemented :)
mandrav:
I thought I 'd announce it, since it's the most awaited useful feature :D
Yiannis.
rickg22:
yay!!! :D Congratulations!!! :)
I tested it. Looks cool :) Some caveats tho:
* The line isn't highlighted, is this supposed to be the default behavior?
* After i close CB i get a bunch of "file not found" errors. creepy... :shock:
mandrav:
--- Quote ---* The line isn't highlighted, is this supposed to be the default behavior?
--- End quote ---
What line? What do you mean "highlighted"? Selected?
--- Quote ---* After i close CB i get a bunch of "file not found" errors. creepy...
--- End quote ---
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)?
Yiannis.
rickg22:
--- Quote from: mandrav ---
What line? What do you mean "highlighted"? Selected?
--- End quote ---
Highlighted as in "caret" or "active line".
--- Quote from: mandrav ---
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)?
--- End quote ---
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:
--- Code: ---
for (int i = 0; i < prj->GetFilesCount(); ++i)
{
ProjectFile* pf = prj->GetFile(i);
if (pf)
filesList.Add(fullpath);
}
--- End code ---
AFTER:
--- Code: ---
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);
}
}
--- End code ---
There! I just commited the change. No more weird reports at the end :-)
rob:
GREAT ! Please release a new version as soon as possible !
Navigation
[0] Message Index
[#] Next page
Go to full version