Author Topic: AutoVersioning Plugin  (Read 131794 times)

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #180 on: October 09, 2009, 11:22:53 am »
AutoVersioning 1.3


Here I'm posting the new changes I made to the autoversioning plugin to fix the problems reported by users, here is the changes.

* Fixed ubuntu_style_version declaration now it is char string instead of double.
* Added new tab of autoversioning editor named "Code"
* New support to declare header guard define.
* New support to declare namespace name.
* New support to add a prefix to all variables helping in c mode like for example the DATE declaration found in other header files the same name.

For a better picture of it check the attached screenshot.

And here is an example output code with AV as prefix:

Code: [Select]
#ifndef VERSION_H
#define VERSION_H

namespace AutoVersion{

//Date Version Types
static const char AV_DATE[] = "09";
static const char AV_MONTH[] = "10";
static const char AV_YEAR[] = "2009";
static const char AV_UBUNTU_VERSION_STYLE[] = "9.10";

//Software Status
static const char AV_STATUS[] = "Alpha";
static const char AV_STATUS_SHORT[] = "a";

//Standard Version Type
static const long AV_MAJOR = 1;
static const long AV_MINOR = 0;
static const long AV_BUILD = 2;
static const long AV_REVISION = 11;

//Miscellaneous Version Types
static const long AV_BUILDS_COUNT = 1;
#define AV_RC_FILEVERSION 1,0,2,11
#define AV_RC_FILEVERSION_STRING "1, 0, 2, 11\0"
static const char AV_FULLVERSION_STRING[] = "1.0.2.11";

//These values are to keep track of your versioning state, don't modify them.
static const long AV_BUILD_HISTORY = 2;


}
#endif //VERSION_H

I also attached the patch and im going to upload it to berlios if i remember my account information xD

[attachment deleted by admin]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9496
Re: AutoVersioning Plugin
« Reply #181 on: October 27, 2009, 03:49:34 pm »
AutoVersioning 1.3
Applied in trunk after testing... Thanks! :-)
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 MaxLondon

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: AutoVersioning Plugin
« Reply #182 on: October 27, 2009, 03:57:07 pm »
Does that mean it will be part of the next CB NightlyBlds "Release" ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11939
    • Travis build status
Re: AutoVersioning Plugin
« Reply #183 on: October 27, 2009, 04:57:47 pm »
Yes, the next nightly will include all fixes that have been commited to svn before the date the nightly is made :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: AutoVersioning Plugin
« Reply #184 on: October 28, 2009, 08:10:05 pm »
Hi
Need some help
I have SVN 1.5.5 and TortoiseSVN 1.6.5
I have checked out some code using TortoiseSVN 1.6.5;
SVN.exe is in path
I cannot use svn revision in the version file.
The config dialog always gives me error, svn configuration files not found.
whereas all .svn files and folders are there.

Ajay

Hi

I'm sorry to have to ask for help with this useful plug-in, but I have the same problem.
I searched in the C::B documentation, search on google, but I didn't find any information.
I think I really don't understand what I have to put in the field "current SVN directory".
I have tried to use the bin directory of subversion, the global directory of subversion, the directory of the project for which I want to try this feature, and the .svn directory in the project's directory, but this is all the time the same error... "Svn configuration files not found. Verify the Autoversioning svn directory."


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: AutoVersioning Plugin
« Reply #185 on: October 28, 2009, 08:31:39 pm »
Hi
Need some help
I have SVN 1.5.5 and TortoiseSVN 1.6.5
I have checked out some code using TortoiseSVN 1.6.5;
SVN.exe is in path
I cannot use svn revision in the version file.
The config dialog always gives me error, svn configuration files not found.
whereas all .svn files and folders are there.

Ajay

Hi

I'm sorry to have to ask for help with this useful plug-in, but I have the same problem.
I searched in the C::B documentation, search on google, but I didn't find any information.
I think I really don't understand what I have to put in the field "current SVN directory".
I have tried to use the bin directory of subversion, the global directory of subversion, the directory of the project for which I want to try this feature, and the .svn directory in the project's directory, but this is all the time the same error... "Svn configuration files not found. Verify the Autoversioning svn directory."



This is just a guess.

svn command must be in the system path or in the compiler additional exe path

The "current SVN directory" should be the top SVN directory your SVN project is checked out to. This folder/directory must contain the .svn folder.

Note: This is a problem "I have SVN 1.5.5 and TortoiseSVN 1.6.5" the svn command must be the same major/minor version as the svn project folder. Note, a higher version might work. An SVN 1.6.0 should work with TortoiseSVN 1.6.5; but not SVN 1.5.5. Format of version number major.minor.?? What the ?? is called varies from project to project.

Tim S.
 
« Last Edit: October 28, 2009, 08:38:01 pm 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 Freem

  • Almost regular
  • **
  • Posts: 219
Re: AutoVersioning Plugin
« Reply #186 on: October 29, 2009, 11:38:27 am »
Thanks a lot, it work great, now.

I'm didn't think to upload brain to the last version, it seem :)

And thanks for this useful plugin, that improve a great IDE.

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #187 on: October 30, 2009, 03:30:37 am »
AutoVersioning 1.3
Applied in trunk after testing... Thanks! :-)

yay! thanks for the commit and thanks to everyone that pointed the plugin errors (bugs)!  :D Keep the codeblocks growing!

Offline polygon7

  • Multiple posting newcomer
  • *
  • Posts: 104
    • Home site
Re: AutoVersioning Plugin
« Reply #188 on: October 30, 2009, 08:47:44 am »
Hi,
I have one suggestion, this variables:
Code: [Select]
//Standard Version Type
static const long AV_MAJOR = 1;
static const long AV_MINOR = 0;
static const long AV_BUILD = 2;
static const long AV_REVISION = 11;

could be size_t / unsigned int type because usually you don't need negative version number,
and usually you don't need version number grater than max value of unsigned int (I know it doesn't
matter on 32bit, where unsigned long == unsigned int == 4 294 967 295, but on other architectures,
ex. 16bit, it makes a difference).
« Last Edit: October 30, 2009, 08:52:04 am by polygon7 »
best regards,
p7
 Free open source UML modeling tool: ArgoUML

Offline AndyJ

  • Multiple posting newcomer
  • *
  • Posts: 13
Re: AutoVersioning Plugin
« Reply #189 on: November 24, 2009, 05:50:03 pm »
Hello,

I have a request. Where strings are currently generated as:

   static const char DATE[] = "24";

would it be possible to (optionally?) generate them as:

   #define DATE_DEFINE "24"
   static const char DATE[] = DATE_DEFINE;

or something similar as this would be more flexible for some applications (creating a custom string in yet another #define for instance). Obviously the appropriate prefix should be applied to both names.

Thanks for a great plugin,

Andy



Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning Plugin
« Reply #190 on: March 05, 2010, 07:48:55 pm »

 Hi Guys,

I added a new feature to the AutoVersion plug-in and posted a patch on 3/3. It adds the ability to update manifest.xml with AutoVersion's version string. I found it very tedious to have to update it manually and too easy to forget.  :D

You can control whether or not to let AutoVersion update manifest.xml via a new option in the Settings tab of the prefs dialogue.


I've found this REALLY useful since I started using it. I hope you do, too.

Cheers,

 Cryo.


Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning Plugin
« Reply #191 on: March 05, 2010, 08:42:04 pm »

 Hi again,

I should probably also add that on 2/2 I also submitted a patch that enlarges the change log dialogue and sizes the rows to the content. I found it very annoying to have to resize it every single time, which is often if you're using it regularly. It's patch 2922:

https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2922&group_id=5358

This one also corrects the SVN error message and includes some spelling corrections.

I've just realised that you don't seem to be able to download patches from Berlios, so they're attached.

Cheers,

  Cryo.


[attachment deleted by admin]

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning Plugin
« Reply #192 on: March 06, 2010, 12:39:08 am »

 I noticed that I'd missed the tooltip description. I've now corrected that. An updated patch is attached and also at Berlios.

Cryo.

[attachment deleted by admin]

Offline JGM

  • Lives here!
  • ****
  • Posts: 518
  • Got to practice :)
Re: AutoVersioning Plugin
« Reply #193 on: March 06, 2010, 10:15:02 pm »
whoa cool  :D!

Offline Cryogen

  • Regular
  • ***
  • Posts: 260
Re: AutoVersioning Plugin
« Reply #194 on: March 17, 2010, 07:09:45 pm »

It seems that I missed operator!= as well. :-(

That's now fixed, too.

[attachment deleted by admin]