Author Topic: ThreadSearch plugin v1.1 release  (Read 25922 times)

Offline dje

  • Lives here!
  • ****
  • Posts: 683
ThreadSearch plugin v1.1 release
« on: January 03, 2008, 10:27:27 pm »
Hi all !

Release v1.1 of the ThreadSearch plugin is available !

What's new ?
Very little changes, just the cbStyledTextCtrl refactoring (from SVN 4767) integration.

Features :
  • multi-threaded "Search in files"
  • preview of the results (left single click on log window)
  • file open (left double click on log window)
  • check boxes instead of radio boxes to allow searches with both project and directories for example.
  • contextual menu "Find occurrences" to start a search in files with the word under cursor (can be activated or not)

Why ?
  • I am working on very big projects (700 Mo of cpp, h files) and text searches take up to 5 minutes. It is very frustrating being blocked because of the search. It is now possible to continue editing code during searches.
  • I do not like leaving the editor position to browse 'Search in files' resuts. There is now the 'Code preview' to do this with possibility to open the file at the right position.

Installation :
Note :
SVN release 4767 or later is required !

Build
Extract the source code in src\plugins\contrib\ThreadSearch, open the CodeBlocks project and build it. The .cbplugin is generated in src\plugins\contrib\ThreadSearch\plugin and is ready for install.

User manual
Here is the wiki page

Feel free to send feedbacks !  :)

Dje

Offline Lazybones

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: ThreadSearch plugin v1.1 release
« Reply #1 on: January 07, 2008, 11:10:55 am »
Hi!

on a double click on a result item sets the location of the editor to the result but the editor is not set as "current window" in CB. So I have to click in the editor to activate it, which changes the currently active line in the editor.

Is ist possible to set the editor as focused window on a double click on a result?

I am using the latest version of ThreadSearch (version 1.1 from svn).

Sven

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: ThreadSearch plugin v1.1 release
« Reply #2 on: January 07, 2008, 11:40:05 am »
Hi !

This is the normal behaviour but this bug must have appeared with the choice of the logger (tree or list).
Do you use the Tree logger ? I noticed this problem with it only, the focus is correctly set with list control. Do you confirm ?

If this is not the case, what OS do you use ?

I'll fix it soon. A new delivery is coming...

Dje

Offline Lazybones

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: ThreadSearch plugin v1.1 release
« Reply #3 on: January 07, 2008, 11:58:17 am »
Hi Dje,

Thanks for your fast answer!
I am using Win XP SP2

I can confirm that this behaviour only appears in the tree logger, the double click in the list works correctly.

And I have found another thing:
the menu-entry "Find declaration" jumps to the implementation of a function (I am using CB for C-programming...). "Find implementation" works correctly!

Thanks
 Sven

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: ThreadSearch plugin v1.1 release
« Reply #4 on: January 07, 2008, 12:05:16 pm »
And I have found another thing:
the menu-entry "Find declaration" jumps to the implementation of a function (I am using CB for C-programming...). "Find implementation" works correctly!
That's no way related to this plugin !

You can check the existing bugs on BerliOS concerning this point and create it i f necessary.

Dje

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: ThreadSearch plugin v1.1 release
« Reply #5 on: January 08, 2008, 10:12:34 pm »
Hi all !

First, I'm happy to announce that ThreadSearch source code is now under SVN.
Plugin will be soon  included in nightlies.

Hello,

might not be the right forum for my issue, but as it is related to 'logger.h' I try to report it here:

During compilation of 'ThreadSearchViewManagerBase.cpp'  I get syntax error in 'logger.h', concerning DLLIMPORT in class declaration of Logger not being defined. One solution is to include 'settings.h' in above .cpp file before other headers. But wouldn't it be more reasonable to include it directly in 'logger.h', as there could be other files were 'settings.h' is included "accidentally" correctly before 'logger.h', and 'logger.h' should be "compilable" stand-alone (i.e. including 'logger.h' does not require to include 'settings.h' before)?

Regards,
olipfei

I think it is a better place to continue...

I built several times ThreadSearch project on Windows XP SP2, wxWidgets 2.8.7, gcc 3.4.5 and Ubuntu 7.04 and 7.10, wxWidgets 2.8.7, gcc 4.1.2 without any problems (latest SVN 4750 and 4786).
So I don't understand how you get this error. Are you on Windows, Linux ? Did you change project or source files ?
What is your SVN revision ? wxWidgets and gcc (or other but I won't be able to help) version ?
Does anyone else have the same problem ?

Dje

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5490
Re: ThreadSearch plugin v1.1 release
« Reply #6 on: January 08, 2008, 10:17:00 pm »
this topic can be closed, check back at the original thread, I fixed it.

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: ThreadSearch plugin v1.1 release
« Reply #7 on: January 21, 2008, 11:12:14 pm »
Hi, ThreadSearch is a nice plugin, surpassing the builtin CB search, but i found an annoying bug in latest version of it, when retrieving CB 4836th revision.

It's very simple to reproduce :

Open CB,
Then click on CB 'view menu' and make sure ThreadSearch is checked here, even if ThreadSearch logger is already on one of the Messages Pane tab.
ThreadSearch logger takes focus in the Messages Pane
Now right-click on any Messages Pane title tab, go 'Toggle' submenu and click ThreadSearch

Now move your mouse over any logger window and look at ThreadSearch controls reappearing:

like here : in "Build Messages" Pane



[Edit] : to remediate this, you just have to come back in CB 'view menu' and uncheck 'ThreadSearch'.
IMHO : you may just have forgotten this 'toggle' behaviour, because doing the same as you do in 'view menu' event handler should remove this annoyance, hope it helps !!

Orl
« Last Edit: January 21, 2008, 11:15:30 pm by orel »
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: ThreadSearch plugin v1.1 release
« Reply #8 on: January 21, 2008, 11:31:23 pm »
Hi !

I know it in fact, I already reported it in BerliOS :
Bug 12841

Yannis corrected the first version of the bug and I completed the description with other steps to reproduce a similar one.

Thanks for reporting it, but I think it is not due to ThreadSearch plugin.

Dje

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: ThreadSearch plugin v1.1 release
« Reply #9 on: January 21, 2008, 11:44:01 pm »
Hi !

I know it in fact, I already reported it in BerliOS :
Bug 12841

Yannis corrected the first version of the bug and I completed the description with other steps to reproduce a similar one.

Thanks for reporting it, but I think it is not due to ThreadSearch plugin.

Dje

Oh sorry, i was coming back just to say the same thing, because i am also developing a plugin : SVNInside and realized that the same problem was happening to me.... :lol: and in fact, for all the tabs in the Messages Pane.

The problem is that a plugin developer have no clue when his plugin is toggled by this way. This is annoying because i have an option in my plugin to show/hide its logger in the Messages Pane.

Maybe a new event indicating the toggling of a logger would do the trick!!!

But if Yannis is currently thinkig about that : that's perfect !!

Best regards,
orl
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: ThreadSearch plugin v1.1 release
« Reply #10 on: January 22, 2008, 12:01:12 am »
But if Yannis is currently thinkig about that : that's perfect !!
I won't answer for him, no news since I updated the bug he closed before.
I think it must be alive somewhere in his giant brain  :D

Dje

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: ThreadSearch plugin v1.1 release
« Reply #11 on: January 22, 2008, 12:02:43 am »
And in fact, it happens to all logger tabs but in a funny way, listen :


  • Open CB,
  • right click on the leftmost logger tab,
  • toggle it off,
  • it disappears,
  • then click just under the new leftmost tab,
  • you can see some controls reappearing ...
  • the funny thing is that you can reproduce that with all logger panes if and only if its index (starting from the leftmost one and beggining by index 1) is odd

:shock: :shock:

windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline MasterAlexei

  • Multiple posting newcomer
  • *
  • Posts: 83
    • Fun electronic
Re: ThreadSearch plugin v1.1 release
« Reply #12 on: March 19, 2008, 06:31:15 pm »
Hello everybody.

I'd tryed to add that plugin to my CB installation, but without any succes. First, it says, that there is no ThreadSarch.so file in that plugin. Ok, i figureout, that it was made for windows OS. I loaded src's and made a new project inside of CBs. It has compilled. But by install cameout annother error, that not all plugins were installed. By starting CB, i became an error, that not all plugins are loaded, and ThreadSearch is printed.
What made i wrong?

The functionality of that plugin is much close to my loved editor CodeWright in Windows world.

Version of CB is 8.02.

Thanks in advance,

Alexei

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: ThreadSearch plugin v1.1 release
« Reply #13 on: March 19, 2008, 06:49:35 pm »
Version of CB is 8.02.

Which OS do you use ?

Okay, it's not windows, so I guess it's Linux.
Nevertheless, it's part of C::B 8.02.
The package it is included should be called something with contrib (at least on debian and ubuntu wher it is called codeblocks-contrib).

Offline MasterAlexei

  • Multiple posting newcomer
  • *
  • Posts: 83
    • Fun electronic
Re: ThreadSearch plugin v1.1 release
« Reply #14 on: March 19, 2008, 07:09:42 pm »
Thank you for quick reply.

Version of CB is 8.02.

Quote from: jens
Which OS do you use ?
I use Mandriva Linux 2008.0

Quote from: jens
Okay, it's not windows, so I guess it's Linux.
Nevertheless, it's part of C::B 8.02.
The package it is included should be called something with contrib (at least on debian and ubuntu wher it is called codeblocks-contrib).
I didn't found a package for Mandriva (is there one some where?), also i compilled the sources. This plugin was not included in it.

Alexei