Author Topic: SVNInside : development of another SVN plugin for CodeBlocks  (Read 143147 times)

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #60 on: November 13, 2007, 08:53:59 pm »
Code: [Select]
template<> SVNInsideLogger* Mgr<SVNInsideLogger>::instance = 0;
template<> bool  Mgr<SVNInsideLogger>::isShutdown = false;

Thanx for that
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 darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #61 on: November 17, 2007, 04:22:02 pm »
I'm trying to get this Plugin working on my Ubuntu/Linux box.

Although compiling is not posible with the -dev packages and an $cb pointing somewhere in /usr/include/codeblocks is not posible (but isn't that the purpose of the -dev Packages?) I finally got it compiling (rev4640) but when starting C::B I only get the following Message:

Code: [Select]
Scanning for plugins in /home/darthdespotism/.codeblocks/share/codeblocks/plugins
/home/darthdespotism/.codeblocks/share/codeblocks/plugins/libSVNInside.so: not loaded (missing symbols?)

Can anyone point me to the solution for this?

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #62 on: November 17, 2007, 08:20:47 pm »
I'm trying to get this Plugin working on my Ubuntu/Linux box.

Although compiling is not posible with the -dev packages and an $cb pointing somewhere in /usr/include/codeblocks is not posible (but isn't that the purpose of the -dev Packages?) I finally got it compiling (rev4640) but when starting C::B I only get the following Message:

Code: [Select]
Scanning for plugins in /home/darthdespotism/.codeblocks/share/codeblocks/plugins
/home/darthdespotism/.codeblocks/share/codeblocks/plugins/libSVNInside.so: not loaded (missing symbols?)

Can anyone point me to the solution for this?

This plugin should worl on linux, although i'm developing it no a Windows platform.
That's why Mandrav smartly brought a linux CB project you can find on the svn repository.

A silly question! did you use it?
I'm sorry i can't help you with your problem
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 6672
    • My Best Post
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #63 on: November 17, 2007, 08:25:18 pm »
Patch I applied to help compiling under windows.

Note, I have not ran it and did anything with it yet.

Tim S.

Code: [Select]
Index: SVNInside.cbp
===================================================================
--- SVNInside.cbp (revision 34)
+++ SVNInside.cbp (working copy)
@@ -71,7 +71,7 @@
  <Add library="codeblocks" />
  <Add library="wxscintilla" />
  <Add directory="$(#cb)\devel" />
- <Add directory="$(#cb)\sdk\propgrid" />
+ <Add directory="$(#cb)\plugins\contrib\wxSmith\propgrid" />
  <Add directory="$(#wx.lib)\gcc_dll" />
  </Linker>
  <ExtraCommands>
Index: src/Dialogs/SVNInsideLogger.cpp
===================================================================
--- src/Dialogs/SVNInsideLogger.cpp (revision 34)
+++ src/Dialogs/SVNInsideLogger.cpp (working copy)
@@ -16,6 +16,9 @@
 #include <wx/settings.h>
 #include <wx/ffile.h>
 
+template<> SVNInsideLogger* Mgr<SVNInsideLogger>::instance = 0;
+template<> bool  Mgr<SVNInsideLogger>::isShutdown = false;
+
 // static members instantiation
 int             SVNInsideLogger::m_LoggerId = -1;
 TextCtrlLogger* SVNInsideLogger::m_Logger   = 0;
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #64 on: November 17, 2007, 10:53:55 pm »
A silly question! did you use it?
I'm sorry i can't help you with your problem

Are you referring to the *-unix.cbp? I built it with this one, but as I said it doesn't load.

I'm getting the following warnings, perhapes it helps:
Code: [Select]
Linking dynamic library: libSVNInside.so
Output size is 3,85 MB
Running project post-build steps
sh post_build_step
post_build_step: 2:
: not found
zip warning: name not matched: resources/*.xrc
updating: manifest.xml (deflated 52%)
cd: 4: can't cd to resources
zip error: Nothing to do! (../SVNInside.zip)
cd: 6: can't cd to ..
zip warning: name not matched: SVNInside.zip
updating: libSVNInside.so
cp: reguläre Datei „../../../devel/share/codeblocks/plugins/\r“ kann nicht angelegt werden: No such file or directory
 (deflated 75%)
cp: reguläre Datei „../../../devel/share/codeblocks/\r“ kann nicht angelegt werden: No such file or directory
Process terminated with status 1 (0 minutes, 32 seconds)
0 errors, 4 warnings

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #65 on: November 17, 2007, 11:07:27 pm »
cp: reguläre Datei „../../../devel/share/codeblocks/plugins/\r“ kann nicht angelegt werden: No such file or directory
 (deflated 75%)
Do a dos2unix on this file and it'll work. BTW: Are you sure you grabbed that from SVN? Because usually SVN handles such things correctly. Very strange...?!
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #66 on: November 18, 2007, 01:13:50 am »
Yes, I do have an svn checkout for this.

I think I manually got those \r s (VIM displays them quite visible ;) ) but also installed dos2unix.

Actually it builds without any warning but still does not load (Codeblocks is at r4640 SVNInside at r34)

Offline skwo

  • Single posting newcomer
  • *
  • Posts: 9
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #67 on: November 23, 2007, 04:56:42 pm »
Anyone got binaries for windows please?
Thanks.

Online stahta01

  • Lives here!
  • ****
  • Posts: 6672
    • My Best Post
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #68 on: November 24, 2007, 12:29:32 am »
Anyone got binaries for windows please?
Thanks.

I can try to make an Binary, but can not really test it without a lot of work.
( I am using the SVN 1.5 Beta )

Which Nightly are you using?
I would test it; that it installs, enables and disables in your nightly, but that all I can test.

NOTE, this plug-in is still a alpha level code right now. The developer is still adding major features and there may be major bugs it it. DO NOT use on code you can not afford to lose.

Tim S
« Last Edit: November 24, 2007, 12:39:35 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline skwo

  • Single posting newcomer
  • *
  • Posts: 9
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #69 on: November 24, 2007, 12:42:35 am »
Anyone got binaries for windows please?
Thanks.

I can try to make an Binary, but can not really test it without a lot of work.
( I am using the SVN 1.5 Beta )

Which Nightly are you using?
I would test it that it installs, enables and disables in your nightly, but that all I can test.

Tim S

I'm using the last nightly from 15 November. I tried to compile my self but I don't have defines of wx and cb.

Online stahta01

  • Lives here!
  • ****
  • Posts: 6672
    • My Best Post
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #70 on: November 24, 2007, 01:53:00 am »
NOTE, this plug-in is still a alpha level code right now. The developer is still adding major features and there may be major bugs it it. DO NOT use on code you can not afford to lose.


I have uploaded the Windows binary plug-in to
http://www.savefile.com/projects/1039215

Direct link is http://www.savefile.com/files/1216969

Filename is SVNInside.7z

Tim S
« Last Edit: November 24, 2007, 02:01:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline skwo

  • Single posting newcomer
  • *
  • Posts: 9
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #71 on: November 24, 2007, 11:50:55 am »
stahta01 Thanks a lot.
« Last Edit: November 24, 2007, 11:52:46 am by skwee »

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #72 on: November 26, 2007, 12:33:31 pm »
Hi everybody, sorry for absence of features addition those last couple of weeks. I was very busy with other things and i have also redesigned some classes in SVNInside because i was not fully statisfied by my code.

I am going in the direction of more robust code, reimplementing with my new API the features that worked before.

Expect a major commit on svn in a few days !!
« Last Edit: November 26, 2007, 12:35:58 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 darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #73 on: November 26, 2007, 07:06:26 pm »
Cool, I'll test it again on linux then (Debian Lenny for now) ;)

MuteSpirit

  • Guest
Re: SVNInside : development of another SVN plugin for CodeBlocks
« Reply #74 on: November 28, 2007, 02:02:42 pm »
Hi everybody.
I think that SVNInside is very usefull.
I have made some bug fix.
Bug: If you change properties of project on SVNInside panel from "Disconnected" to "Connected" and then try to change properties of the same project the C::B will crash.
Fix:
    File: src\Dialogs\wxSVNTreeCtrl.cpp
    Function: void wxSVNTreeCtrl::OnProjectProperties (wxCommandEvent& event)
    Original code:
...
            if (OldConfig != NewConfig)
            {
                ...
                // is status has been modified and is now connected ?
                if (false == OldConfig.m_bConnectStatus && NewConfig.m_bConnectStatus)
                {
                    this->Delete(pProjectItem->GetId());

                    // it project is created, add it to the list
                    if (m_pCurrProject = CreateProjectTree (project, &NewConfig))
                        m_pWrkspcFile->m_Files.push_back(m_pCurrProject);
                }
            }
...
   Fixed code:
...
            if (OldConfig != NewConfig)
            {
                ...
                // is status has been modified and is now connected ?
                if (false == OldConfig.m_bConnectStatus && NewConfig.m_bConnectStatus)
                {
                    this->Delete(pProjectItem->GetId());

                    // it project is created, add it to the list
                    if (m_pCurrProject = CreateProjectTree (project, new svniProjectConfig(NewConfig)))
                        m_pWrkspcFile->m_Files.push_back(m_pCurrProject);
                }
            }
...

Problem takes place because NewConfig is local object, but new svniFile object m_pCurrProject save pointer on this object and tries delete it in destructor.