Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: dje on January 03, 2008, 10:27:27 pm

Title: ThreadSearch plugin v1.1 release
Post by: dje 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 :

Why ?

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

Build
Extract the source code (http://www.esnips.com/doc/c507e487-93b1-48ab-997b-2eaa5bf7ae0b/ThreadSearchSourceCode1.1) 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 (http://wiki.codeblocks.org/index.php?title=ThreadSearchManual)

Feel free to send feedbacks !  :)

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: Lazybones 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: Lazybones 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: killerbot on January 08, 2008, 10:17:00 pm
this topic can be closed, check back at the original thread, I fixed it.
Title: Re: ThreadSearch plugin v1.1 release
Post by: orel 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

(http://img503.imageshack.us/img503/6226/threadsearchbugsc6.jpg)

[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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on January 21, 2008, 11:31:23 pm
Hi !

I know it in fact, I already reported it in BerliOS :
Bug 12841 (http://developer.berlios.de/bugs/?func=detailbug&bug_id=12841&group_id=5358)

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
Title: Re: ThreadSearch plugin v1.1 release
Post by: orel on January 21, 2008, 11:44:01 pm
Hi !

I know it in fact, I already reported it in BerliOS :
Bug 12841 (http://developer.berlios.de/bugs/?func=detailbug&bug_id=12841&group_id=5358)

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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: orel on January 22, 2008, 12:02:43 am
And in fact, it happens to all logger tabs but in a funny way, listen :



:shock: :shock:

Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: Jenna 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).
Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei 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
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on March 19, 2008, 07:18:58 pm
Hi !

I confirm that ThreadSearch plugin is now part of the contrib plugins.
The latest version i 1.6.

I work on Ubuntu, I don't know anything about Mandriva  :oops:

You should try to get SVN sources (see that link (http://www.codeblocks.org/downloads/7)) and follow the instructions of the BUILD file (root of the sources).

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: Jenna on March 19, 2008, 07:23:41 pm
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.

How did you compile ?
With C::B ?
Then you should also compile ContribPlugins-unix.workspace.
And don't forget to run ./update after compiling.

If you use ./configure you should use the switch --with-contrib-plugins=all.
Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei on March 19, 2008, 08:19:07 pm
Thank you all for a quick answers.  :)

I'll try to compile it today.

Alexey
Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei on March 20, 2008, 08:31:32 am
Hello everybody.

It's works! Super. Thanks all of you.

One little bug is there.
Wen i right click with a mouse on a code preview editor in a plugin, CodeBlocks just disappear. Without anythign to say to me  :(
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on March 20, 2008, 08:47:57 am
Hi !

Thanks for report, I'll have a look tonight.

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on March 20, 2008, 11:01:57 pm
Well, I tried latest version on Ubuntu 7.10 and all is OK.
Did anyone experience this bug ?

What is your SVN, wxWidgets, GCC versions ?

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on March 21, 2008, 12:06:07 am
Are you sure you're using the last version of the code ?
As you can see in this post (http://forums.codeblocks.org/index.php/topic,7729.0.html), Jens already fixed it.

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei on March 23, 2008, 06:06:21 pm
Well, I tried latest version on Ubuntu 7.10 and all is OK.
Did anyone experience this bug ?

What is your SVN, wxWidgets, GCC versions ?

Dje
Sorry for a such late answer, i was at a holidays.

SVN is 1.4.5.
sourcecode was retrieved at 20.03.2008 with RapidSVN 0.9.6
wxWidgets - 2.8.7
GCC is that with Mandriva 2008.0 came:
Thread model: posix
gcc version 4.2.2 20070909 (prerelease) (4.2.2-0.RC.1mdv2008.0)

Alexei
Title: Re: ThreadSearch plugin v1.1 release
Post by: dje on March 23, 2008, 07:29:29 pm
Hi !

Could you check that ThreadSearch manifest.xml is 1.6 ?
I was asking for your C::B SVN revision. It sould be at least 4940.

We don't use the same GCC version, I use the UBUNTU 7.10 version, I think it is 4.2.1.

Dje
Title: Re: ThreadSearch plugin v1.1 release
Post by: MasterAlexei on March 24, 2008, 10:55:19 am
Hi !

Could you check that ThreadSearch manifest.xml is 1.6 ?
I was asking for your C::B SVN revision. It sould be at least 4940.

We don't use the same GCC version, I use the UBUNTU 7.10 version, I think it is 4.2.1.

Dje

Aaa.
I have found it!
It was old version of plugin istalled.
Newer version want not installed until i removed old .la and .so files from /usr/local/share/codeblocks/plugins/ dir.
Now it works!
Thank you for your help and responce!

Till next time ;-)

Alexei