Author Topic: AutoVersioning Plugin  (Read 135466 times)

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #90 on: September 20, 2007, 07:32:16 pm »
Added ubuntu 7.04 Binary compiled with rev. 4446 and wxWidgets 2.8.4 of deb http://apt.tt-solutions.com/ubuntu/ feisty main.

http://prdownload.berlios.de/autoversioning/autoversioning-v0.8.ubuntu.7z

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: AutoVersioning Plugin
« Reply #91 on: September 22, 2007, 05:11:30 pm »
Hi,
thanks for this binary version of your plugin.
Just a small problem under Windows (2000 and XP Pro). There is a misalignment in a Setting window as shown in the attachment.

Gd_on


[attachment deleted by admin]
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #92 on: September 24, 2007, 03:39:06 pm »
Just a small problem under Windows (2000 and XP Pro). There is a misalignment in a Setting window as shown in the attachment.

Hi gd_on, thanks for the report

Fixed and committed the changes to svn. Now the radiobox options are horizontaly aligned.

Also added the wxscintilla path to the windows project.
« Last Edit: September 24, 2007, 03:55:07 pm by JGM »

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: AutoVersioning Plugin
« Reply #93 on: September 24, 2007, 07:59:24 pm »
Thanks,
I'm just waiting for an update of the binary version. :lol:

Gd_on
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: AutoVersioning Plugin
« Reply #94 on: September 28, 2007, 06:58:44 am »
Thanks for this plugin! :-)
Is it possible to add ability to insert version data into exe-file info for windows?

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: AutoVersioning Plugin
« Reply #95 on: September 28, 2007, 02:29:13 pm »
Thank you for plugin, JGM!

I download (svn) sources from repository now (rev. 4) and found some problems:
 - You wrongly being used _("... ...") construction. For example in file avSvnRevision.cpp
Code: [Select]
wxString svncmd = _("svn info --xml --non-interactive ");   Look Wiki for used this construction (http://wiki.codeblocks.org/index.php?title=Unicode_Standards):
Code: [Select]
_()

_() is used for text which might be translated to other user-languages
I does change this line on this:
Code: [Select]
wxString svncmd = _T("svn info --xml --non-interactive ");I found a big lot similarly uses.

Summary. You must being used _() for text which might be translated to other user-languages and _T() (or wxT()) for keywords.

I being used Russian translation codeblocks.mo for C::B and my plugin. Some keywords in version.ini file in Russian too.

C::B crushed on uninstall you plugin. :(
Somebody may confirm it?

Can do you make changes for right using _() and _T() (or wxT())?

Now I try changes sources for test my opinion.

Good luck!
« Last Edit: September 28, 2007, 02:32:56 pm by kisoft »
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #96 on: October 02, 2007, 01:03:44 am »
Thank you for plugin, JGM!

I download (svn) sources from repository now (rev. 4) and found some problems:
 - You wrongly being used _("... ...") construction. For example in file avSvnRevision.cpp

Yep thats true I have to fix all that, I just recently learned that while making an application I'm working on multilingual.  :oops: I'm learning every day new things. I have to work on so many things on my job, I have stopped programming to set a proxy server to block all kind of bad things from the students of the school I'm working on.

Trying to figure out how works squid and squidguard, is really a pain in the (you know) :) But I'm almost getting it all to place. First I had to repair a server, configure the array of hard drives and then install the operating system (opted for ubuntu server). Now I'm stuck at squid and squidguard, so many commands :?. transparent proxy blah blah blah. It's like a ghost in my mind  :shock:

Back into post I will fix that as soon as possible. I feel exhausted of so many research on so many things  :?

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #97 on: October 02, 2007, 01:06:39 am »
Thanks for this plugin! :-)
Is it possible to add ability to insert version data into exe-file info for windows?

Some time ago it was opted to make a plugin named version info to generate the rc file with info from the autoversioning plugin. I was going to make that, but I forgot it. :shock:

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #98 on: October 02, 2007, 07:25:48 am »
- You wrongly being used _("... ...") construction. For example in file avSvnRevision.cpp

Fixed and committed to revision 6  :D

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: AutoVersioning Plugin
« Reply #99 on: October 02, 2007, 07:55:09 am »
- You wrongly being used _("... ...") construction. For example in file avSvnRevision.cpp

Fixed and committed to revision 6  :D
Thank you!
I does checkout rev.6 sources and I would try your plugin today. Look is better, at first sight.

Usually I being formed .pot file and edit this file into poEdit (for translate to Russian).
"Wrong" lines is very visible. Anyway this method very suit for me.

Good Luck!
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

flowercold

  • Guest
Re: AutoVersioning Plugin
« Reply #100 on: October 06, 2007, 08:16:41 am »
I need it!
Thank you !

Offline Denis

  • Multiple posting newcomer
  • *
  • Posts: 48
Re: AutoVersioning Plugin
« Reply #101 on: October 06, 2007, 12:20:26 pm »
Some time ago it was opted to make a plugin named version info to generate the rc file with info from the autoversioning plugin. I was going to make that, but I forgot it. :shock:
I think if autoversioning plugin will be able to generate rc file for exe-file version info, it will be great :)

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: AutoVersioning Plugin
« Reply #102 on: October 06, 2007, 11:13:18 pm »
Codeblocks crashes when I try to compile a program and autoversioning is enabled. Nothing displayed in the log window. All is ok if autoversioning is disabled. It's the same problem with version 0.8 windows binary prebuilt, or a 0.82 version I have just built with codeblocks version 4514.
Here is the beginning of codeblocks.rpt :
Error occured on Saturday, October 6, 2007 at 16:34:20.

C:\CodeBlocks_src\src\output\codeblocks.exe caused an Integer Divide By Zero at location 7035d285 in module C:\CodeBlocks_src\src\output\share\codeblocks\plugins\autoversioning.dll.

Registers:
eax=00000782 ebx=00b50f88 ecx=0023ea2c edx=00000000 esi=64cb18a8 edi=0023f2f8
eip=7035d285 esp=0023e9b8 ebp=0023eaa0 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206

Call stack:
7035D285  C:\CodeBlocks_src\src\output\share\codeblocks\plugins\autoversioning.dll:7035D285
70358F9A  C:\CodeBlocks_src\src\output\share\codeblocks\plugins\autoversioning.dll:70358F9A
70373234  C:\CodeBlocks_src\src\output\share\codeblocks\plugins\autoversioning.dll:70373234
.....

Here is the version.ini I use if it's can help :

Major=3
Minor=0
Build\ Number=12
Revision=45
Build\ Count=11
Auto\ Increment=0
Dates=1
Svn=0
Svn\ Directory=C:\\Documents and Settings\\Gerard\\Mes documents\\Programmes en C\\Dev_C\\Appli1_Tcltk dll V3
Commit=0
Commit\ Ask=0
Langage=C
Etat=Beta
Status\ Abbreviation=b
Minor\ Max=100
Build\ Max=0
Revision\ Max=0
Revision\ Random\ Max=0
Build\ Times\ To\ Minor\ Increment=100
Changes\ Log=0
Changes\ Title=released version %M.%m.%b of %p
Build\ History=0
Modifiť=1
Language=C
Status=Beta
Modified=1

Thanks

gd_on
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #103 on: October 07, 2007, 01:30:15 am »
Codeblocks crashes when I try to compile a program and autoversioning is enabled. Nothing displayed in the log window. All is ok if autoversioning is disabled. It's the same problem with version 0.8 windows binary prebuilt, or a 0.82 version I have just built with codeblocks version 4514.

OOOPS!  :? thanks for the report.

The problem is the Revision random maximum on the scheme tab, is set to 0. You have to set it to a minimum of 1. I will add some code to detect if the user enters 0 and substitute the value to a default of 1.

Again, thanks for the report!  :D

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #104 on: October 07, 2007, 01:31:35 am »
I need it!
Thank you !

You're welcome!  :D