Hi, all , In the current trunk version of CB, I still meet very annoying problem. see the image below:
(http://img43.imageshack.us/img43/9355/threadsearch.png)
By ollydbg (http://profile.imageshack.us/user/ollydbg) at 2009-07-15
This problem is very annoying and can't be solved yet. The only workaround is like this:
Concerning ThreadSearch limitation, I already saw it but I didn't find any good solution to solve it.
If that's annoying for you, you can hide the controls panel and use the the ThreadSearch toolbar that is very small.
The check box to uncheck in settings dialog is "Show search widgets in ThreadSearch Messages panel".
Dje
In this post:
http://forums.codeblocks.org/index.php/topic,9873.msg69238.html#msg69238
I think the related code is in
TextFileSearcher::eFileSearcherReturn TextFileSearcher::FindInFile(const wxString& filePath, wxArrayString &foundLines)
{
eFileSearcherReturn success=idStringNotFound;
wxString line;
// Tests file existence
if ( !wxFileName::FileExists(filePath) )
{
// We skip missing files without alerting user.
// If a file has disappeared, it is not our problem.
// cbMessageBox( filePath + _T(" does not exist."), _T("Error"), wxICON_ERROR);
return idFileNotFound;
}
// File open
if ( !m_TextFile.Open(filePath, wxConvFile) )
{
return idFileOpenError;
}
// Tests all file lines
for ( size_t i = 0; i < m_TextFile.GetLineCount(); ++i )
{
line = m_TextFile.GetLine(i);
if ( MatchLine(line) )
{
success=idStringFound;
// An interesting line is found. We clean and add it to the provided array
line.Replace(_T("\t"), _T(" "));
line.Replace(_T("\r"), _T(" "));
line.Replace(_T("\n"), _T(" "));
line.Trim(false);
line.Trim(true);
foundLines.Add(wxString::Format(wxT("%d"), i + 1));
foundLines.Add(line);
}
}
// File close
m_TextFile.Close();
return success;
}
My question is:
Can we use the new encoding detection method(in the current trunk) to support threadsearch plugin?
Thanks!