Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: threeS on September 29, 2014, 03:32:27 am
-
Good day to all!
I am now doing a plugin that connects to the database every time the codeblocks compiles(thanks to you all for the previous questions). Using the code below:
Manager::Get()->RegisterEventSink(cbEVT_COMPILER_STARTED, new cbEventFunctor<PluginName,CodeBlocksEvent>(this,&PluginName::OnCompileStart));
Manager::Get()->RegisterEventSink(cbEVT_COMPILER_STARTED, new cbEventFunctor<PluginName,CodeBlocksEvent>(this,&PluginName::OnCompileEnd));
Now I want to get all the messages generated in the "Build messages" tab can you help me in this problem guys?
CodeBlocks Build Number: 9851
OS: Ubuntu 14.04 64 bit
Thanks in advance! ;D
-
I recommend digging around in C::B for the relevant API calls. The following files should be a good starting place:
include/logmanager.h
include/logger.h
include/loggers.h
plugins/compilergcc/compilermessages.h
-
I've been digging the codes that you suggested but I realized that it becomes a little bit tricky I guess when it comes to how will I get the instance of the Logger/Loggers/CompilerMessages classes that the compiler class uses when compiling, because if I will create a new instance then it is useless I guess.
??? ::)
-
No idea; but, maybe looking at the code the saves the Build log as HTML would be an option.
Tim S.
-
Hmm, yes, API does not look too friendly for this. You could try LogManager->Slot(int i)->[title: check name; GetLogger()]->typecastAndHope.
-
Hmm, yes, API does not look too friendly for this. You could try LogManager->Slot(int i)->[title: check name; GetLogger()]->typecastAndHope.
You (threeS) could introduce a new API and provide us with a patch...
-
Yes we will be happy if we could help the codeblocks community by this. Me and my friend(forum name, kugtong33) will be glad to help but we use git and we found in the wiki on how to contribute using git but is it ok with you guys if we setup a mirrored repository in github? And one more thing, since this is a homework as i stated I might first figure out how to get those build messages. :D
Thanks for the replies.
-
Yes we will be happy if we could help the codeblocks community by this. Me and my friend(forum name, kugtong33) will be glad to help but we use git and we found in the wiki on how to contribute using git but is it ok with you guys if we setup a mirrored repository in github?
It's OK to mirror the repo in github, why not? :)
I also use git and git-svn.
-
There are already several codeblocks mirrors on github.
One is mine in https://github.com/jenslody, but that is not always uptodate, because I need to manual push it from my own server.
In https://cgit.jenslody.de/codeblocks/ I have a git-clone of the codeblocks svn-repo that is updated every 20 minutes.
-
...
In https://cgit.jenslody.de/codeblocks/ I have a git-clone of the codeblocks svn-repo that is updated every 20 minutes.
Hi, jens, does the above address allow user to clone it? (I have tried, but failed)
Or it is a web interface? Thanks.
-
I found the Mirror by biplab to be the easiest to clone and work with; but, that might just be the fact I tried it last. (I am hoping that I am getting better with Git with time.)
Git URL: git://cb.biplab.in/codeblocks.git
Tim S.
-
...
In https://cgit.jenslody.de/codeblocks/ I have a git-clone of the codeblocks svn-repo that is updated every 20 minutes.
Hi, jens, does the above address allow user to clone it? (I have tried, but failed)
Or it is a web interface? Thanks.
Sorry, yes it's the webinterface.
You should be able to clone the repos with :
git clone git://jenslody.de/git/codeblocks
git clone git://jenslody.de/git/wxWidgets
git clone git://jenslody.de/git/gnome-shell-extension-openweather
git clone git://jenslody.de/git/gnome-shell-extension-panel-osd
I also corrected the clone-url shown by cgit.
-
Creating an organization(like codeblocks, codeblocks.sourceforge, etc.) in the github and put all the repositories in one place(in the organization) might be a better idea and this makes it a lot easier for others to find it.
;D
-
Creating an organization(like codeblocks, codeblocks.sourceforge, etc.) in the github and put all the repositories in one place(in the organization) might be a better idea and this makes it a lot easier for others to find it.
;D
I take it you are NOT a Git user, correct?
Tim S.
-
If the community don't want it that way, well there is no problem.
-
Average user I think ???
Well I am just starting to know how the open source community works
;D
-
The official Code::Blocks repo is a subversion repo and is hosted at sourceforge: http://sourceforge.net/projects/codeblocks/ .
-
...
In https://cgit.jenslody.de/codeblocks/ I have a git-clone of the codeblocks svn-repo that is updated every 20 minutes.
Hi, jens, does the above address allow user to clone it? (I have tried, but failed)
Or it is a web interface? Thanks.
Sorry, yes it's the webinterface.
You should be able to clone the repos with :
git clone git://jenslody.de/git/codeblocks
git clone git://jenslody.de/git/wxWidgets
git clone git://jenslody.de/git/gnome-shell-extension-openweather
git clone git://jenslody.de/git/gnome-shell-extension-panel-osd
I also corrected the clone-url shown by cgit.
Thanks, this works fine. I also update our wiki Developer documentation - CodeBlocks (http://wiki.codeblocks.org/index.php?title=Developer_documentation)