Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Loaden on January 06, 2010, 09:48:30 am

Title: Please add new plugins for Cscope, thanks!
Post by: Loaden on January 06, 2010, 09:48:30 am
Cccc and CppCheck plug-in is really great!
Please add new plugins for Cscope, thanks!:http://cscope.sourceforge.net/ (http://cscope.sourceforge.net/)
Thank you, CB development team!
Title: Re: Proposal to increase Cscope plug-ins
Post by: MortenMacFly on January 06, 2010, 10:05:56 am
Cccc and CppCheck plug-in is really great!
Proposal to increase Cscope plug-ins:http://cscope.sourceforge.net/ (http://cscope.sourceforge.net/)
Thank you, CB development team!
Please don't cross-post!

Besides: What do you mean with "increase"???
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 06, 2010, 10:28:10 am
Cccc and CppCheck plug-in is really great!
Proposal to increase Cscope plug-ins:http://cscope.sourceforge.net/ (http://cscope.sourceforge.net/)
Thank you, CB development team!
Please don't cross-post!

Besides: What do you mean with "increase"???
Sorry, this post is to start here, for fear of plug-in development team can not see, but they were SVN6023 posts a month Replies Riga.
English is not good, the English are using the google translation.
What I mean is: It is recommended to add a new plug-ins.
Title: Re: Proposal to increase Cscope plug-ins
Post by: ollydbg on January 06, 2010, 11:52:29 am
I found there is a Chinese site named "cbforce" http://www.cbforge.com/ which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 06, 2010, 01:40:41 pm
I found there is a Chinese site named "cbforce" which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
Thanks! But i can not find this site, perhaps it has closed.
Title: Re: Proposal to increase Cscope plug-ins
Post by: blueshake on January 06, 2010, 01:46:16 pm
I found there is a Chinese site named "cbforce" which has donea some effort on doing that.  you can search it on Google, I can't enter here, because l use my mobile now.
Thanks! But i can not find this site, perhaps it has closed.

I can not enter today.
Title: Re: Proposal to increase Cscope plug-ins
Post by: ollydbg on January 06, 2010, 02:24:22 pm
sorry
it is http://www.cbforge.com/
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 06, 2010, 03:52:17 pm
sorry
it is http://www.cbforge.com/
Thanks! But this is only the use of a CB analysis. I would suggest that CB team Cccc and CppCheck based on the production of a new plug-in, used to support Cscope.
My levels are not sufficient to make a plug-in level.
Title: Re: Proposal to increase Cscope plug-ins
Post by: danselmi on January 06, 2010, 08:23:34 pm
only roughly tested!

[attachment deleted by admin]
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 07, 2010, 02:48:36 am
only roughly tested!
Oh! Good!! Thank you very much!
I will testting and report it.
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 07, 2010, 09:51:44 am
only roughly tested!
Oh! Good!! Thank you very much!
I will testting and report it.
I have compiled Cscope plug-in, found that the plug-in does not work. After clicking the menu command line, works where the directory does generate cscope.out, but Cscope.dll obviously can not generate the results reported to the CB.


[attachment deleted by admin]
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 07, 2010, 09:58:46 am
I read over the code, find this plug-in should be no analysis of the data to realize cscope.out. As I am bad programming level, I can not complete the rest of this plug-in.
Why is this plug-in has not submitted to the CB's contrib in?
Title: Re: Proposal to increase Cscope plug-ins
Post by: danselmi on January 07, 2010, 10:10:32 am
First: cscope.exe must be in your path (I used cscope binary from http://code.google.com/p/cscope-win32/).
Second: try to add the line
Code
while(m_pProcess->ReadProcessOutput());
just after
Code
if ( !m_pProcess )
        return;
in OnCscopeReturned(...) in CscopePlugin.cpp
Title: Re: Proposal to increase Cscope plug-ins
Post by: Loaden on January 07, 2010, 10:39:53 am
First: cscope.exe must be in your path (I used cscope binary from http://code.google.com/p/cscope-win32/).
Second: try to add the line
Code
while(m_pProcess->ReadProcessOutput());
just after
Code
if ( !m_pProcess )
        return;
in OnCscopeReturned(...) in CscopePlugin.cpp


When i do it, now, Cscope.dll work fine.
Thanks!!
Title: Re: Please add new plugins for Cscope, thanks!
Post by: killerbot on June 12, 2010, 03:48:57 pm
fyi : we are currently preparing to add it to the contrib plug-ins. So all of your feedback will be very welcome once it is in.

ONce it is there : linux user : take a good look at the cscope tab in the messages pane. For me the header of the list things (like we have for compiler warnings/erros) seemed to have an issue. It was all tracked to the complete left and as such not even visible what every column says (File Line Scope Text). After manually putting things in place, it was ok.
Title: Re: Please add new plugins for Cscope, thanks!
Post by: mariocup on July 10, 2010, 01:07:06 am
Hi,

I installed Code::Blocks SVN 6386. It is the first time I am testing Cscope within Code::Blocks. The output in
Cscope could be improved. I would prefer the same behaviour like the Thread Search plugin, this means:
- Delete or keep previous search results
- Add a preview of source code when selecting an item
- Use optional a list view of results like Thread Search:
+ filename1.c (absolute path)
linenumber: Text : <Source>
+ filename2.c (absolute path)
linenumber: Text : <Source>

If we would add the : <Source> within Thread Search the output would be perfect also for Cscope.

Any feedback is welcome :-)
Title: Re: Please add new plugins for Cscope, thanks!
Post by: ollydbg on July 20, 2010, 04:04:47 pm
Hi,

I installed Code::Blocks SVN 6386. It is the first time I am testing Cscope within Code::Blocks. The output in
Cscope could be improved. I would prefer the same behaviour like the Thread Search plugin, this means:
- Delete or keep previous search results
- Add a preview of source code when selecting an item
- Use optional a list view of results like Thread Search:
+ filename1.c (absolute path)
linenumber: Text : <Source>
+ filename2.c (absolute path)
linenumber: Text : <Source>

If we would add the : <Source> within Thread Search the output would be perfect also for Cscope.

Any feedback is welcome :-)

nice idea, The framework of "thread search" window is quite good, a splitter window, one sub-window is showing the source code, the other sub-windows showing all the search results.

I even thought to implement some "rename of variables" (re-factor feature of CC).

About the cscope plugin, I have read some piece of cscope's source, it seems they use the Yacc&Lex grammar to do the code analysis, I guess it is not fully support the much C++ feature.  :(