View unanswered posts | View active topics



Reply to topic  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
AutoVersion 
Author Message
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
I can add the first feature if you want. About the other, it seems (but cannot tell for sure), that you can accomplish it, or get very near to it, by using FlashDevelop build events together with the plugin. Have you looked into this option?


Thu Aug 04, 2011 7:49 am
Profile
Member

Joined: Tue Sep 08, 2009 8:15 am
Posts: 77
Reply with quote
No I haven't and I will be honest and say that I am flying my the seam of my pants a little. I know what I want to be able to do, and it seems possible just struggling with the implementation. I use FD but build in FlashIDE you see, and i have already made it so I can transfer config constants between the two (see here).

Now if I can work incrementing the numbers into the build process I should be set. Where is a good starting point for learning about FlashDevelop build events and how I can use them? Are we effectively talking about making my own plugin now?

I appreciate the help. Thanks.


Thu Aug 04, 2011 11:53 am
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
I'll add the first feature later today (or tomorrow if I don't happen to get the needed time today).

JimmyDeemo wrote:
Now if I can work incrementing the numbers into the build process I should be set. Where is a good starting point for learning about FlashDevelop build events and how I can use them? Are we effectively talking about making my own plugin now?


No, I'm not talking about making your own plugin (when I said "the plugin" I meant AutoVersion). You can see the project build events in the project properties dialog, under the Build tab. What build commands make is just call the commands you specify (for example, "move /y C:\myfile c:\newfile"). When working with Flash IDE projects the built-in JSFL script calls are suppressed so they can be replaced with ones made by yourself (you can read about it here).

Hope this is of help.


Thu Aug 04, 2011 12:19 pm
Profile
Member

Joined: Tue Sep 08, 2009 8:15 am
Posts: 77
Reply with quote
Yes that's right, and its what I am currently doing. Before I found your plugin I was looking into trying to modify a .txt file that would contain my my version-ing information, using a .jsfl file. I wanted to have the path to the the file be relative so that i wouldn't have to change it on a per project basis and I was struggling.

I am already using a combination of .bat files and .jsfl files to build my project with the 'Custom Build' setting. I was/am trying to look into updating version information without using the python script we have. Sorry if that wasn't clear.


Thu Aug 04, 2011 12:42 pm
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
I see, sorry for the misunderstanding.

Which problems are you having with that approach? That way I won't be missing anything, I can only think of two problems (aside from choosing when you want to update each version number part), so I may be missing something else. I can add workarounds for both, although one of them (which may not be too important) has a problem with FD itself and how it handles Flash IDE projects, I'll make all the needed changes later today (in 13-14 hours), and we'll see if the things I change in FD will be submitted inside the main trunk.


Fri Aug 05, 2011 6:44 am
Profile
Member

Joined: Tue Sep 08, 2009 8:15 am
Posts: 77
Reply with quote
Neverbirth wrote:
I see, sorry for the misunderstanding.

Which problems are you having with that approach?


Sorry I am probably confusing you more. The main problem I am having is the ability to increment a the version number, and build the flash separately without the use of a Python script. If I must use a script of some kind I can do but I would like to see if there is another solution. If I was to be able to use your plugin, then to solve this I would need the ability to increment the version numbers separately to the build.

The other problem was committing the file via the command line, but I now have a command line interface I can use so that's fine.

What will your changes give us the ability to do?


Fri Aug 05, 2011 10:52 am
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
JimmyDeemo, I've sent you a pm to continue the subject there.


Fri Aug 05, 2011 11:19 am
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
Uploaded a new version with some new features to cover some more advanced and bizarre scenarios:

  • Define when each part of the version number is going to be updated: This way you can for example update the revision number only when testing a project.
  • Added post-processors: The concept of this may be a bit strange, since it is basically the same as incrementors, but they can provide more information to custom plugins, and are executed after all increments are run. Didn't want to modify the BaseIncrementor signature. There are two post-processors added by default:
    • ReleaseReset: When building (instead of testing), the version part will be set back to 0.
    • PreviousPartIncrements: If the previous part (for example, Revision in the case of Build), is greater or equal to 100, it will be set to 0, and the current part will be incremented by 1.
  • Added the posibility to choose when to update the version data depending of the configuration: So the version may be only updated in release or debug mode if wanted.
  • Added option to revert version increment in case of build error: When enabled, if the version increment is made before the build, but there is an error during the build process, the version number will be reverted.

Because of these changes, I've also changed the interface for setting the versioning style.


Tue Aug 16, 2011 6:10 pm
Profile
Member

Joined: Tue Sep 08, 2009 8:15 am
Posts: 77
Reply with quote
These additions sound perfect for me Neverbirth, nice work sir.


Fri Aug 19, 2011 9:03 am
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
No problem, anything to be improved or added, just tell me.


Fri Aug 19, 2011 4:33 pm
Profile
Member

Joined: Mon Jul 14, 2008 2:42 pm
Posts: 36
Reply with quote
I'm using the latest version of the plugin with FD4 in standalone mode, and I've encountered a recurrent problem.

I have an AIR project with a custom path and package name for the version file. Every time I close FD, when I reopen it I get 'Project Not Tracked' instead of the version info. If I click the link to track it, I get an out of range exception. I have to add it manually to ignored projects, then click track it, and then the versioning will work correctly - but only until I close FD when the cycle begins again.

I also have FD3 and the old version of the plugin installed on this machine (in multi-instance mode) but they are not running concurrently and there is no other interference between the two side-by-side installs.

Not a big issue as the fix is fairly simple - just thought I would describe it fully so you might fix it in future builds.

Great plug in btw - tremendously useful.

Jude


Wed Aug 24, 2011 1:02 pm
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
Reading your message, I have the feeling that you are talking about Lamenace's Version plugin instead of this one. Is it so?

If not, I don't fully grasp all the details, and a sample project would be of great help.


Wed Aug 24, 2011 2:03 pm
Profile
Member

Joined: Mon Jul 14, 2008 2:42 pm
Posts: 36
Reply with quote
Yes - wrong plugin. It didn't occur to me there would be two. Sorry.


Thu Aug 25, 2011 3:52 pm
Profile
Moderator

Joined: Mon Jul 06, 2009 8:14 am
Posts: 258
Reply with quote
JcFx wrote:
Yes - wrong plugin. It didn't occur to me there would be two. Sorry.


Heh, no problem at all.


Thu Aug 25, 2011 5:59 pm
Profile
Member

Joined: Sat Oct 17, 2009 12:41 am
Posts: 27
Reply with quote
Hello.
Nice plugin working well in FD3.
After i moved to FD4 i have downloaded latest version from google code and receive 2 exception on before build

Code:
Object reference not set to an instance of an object.

   at AutoVersion.BuildVersionIncrementor.OnBuilding(BuildAction action)
   at AutoVersion.PluginMain.HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
   at PluginCore.Managers.EventManager.DispatchEvent(Object sender, NotifyEvent e)


Code:
Object reference not set to an instance of an object.

   at AutoVersion.BuildVersionIncrementor.OnBuildFailed()
   at AutoVersion.PluginMain.HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority)
   at PluginCore.Managers.EventManager.DispatchEvent(Object sender, NotifyEvent e)


And one more
Code:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'DropDownHolder'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Form.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.ToolTip.get_CreateParams()
   at System.Windows.Forms.ToolTip.CreateHandle()
   at System.Windows.Forms.ToolTip.get_Handle()
   at System.Windows.Forms.ToolTip.SetToolInfo(Control ctl, String caption)
   at System.Windows.Forms.ToolTip.Hide(IWin32Window win)
   at System.Windows.Forms.DataGridView.DataGridViewToolTip.Activate(Boolean activate)
   at System.Windows.Forms.DataGridView.ActivateToolTip(Boolean activate, String toolTipText, Int32 columnIndex, Int32 rowIndex)
   at System.Windows.Forms.DataGridViewCell.OnCellDataAreaMouseLeaveInternal()
   at System.Windows.Forms.DataGridViewCell.OnMouseLeaveInternal(Int32 rowIndex)
   at System.Windows.Forms.DataGridView.OnCellMouseLeave(DataGridViewCellEventArgs e)
   at System.Windows.Forms.DataGridView.UpdateMouseEnteredCell(HitTestInfo hti, MouseEventArgs e)
   at System.Windows.Forms.DataGridView.OnMouseMove(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseMove(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.DataGridView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5444 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FlashDevelop
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/FlashDevelop.exe
----------------------------------------
PluginCore
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/PluginCore.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AirProperties
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AirProperties.DLL
----------------------------------------
AS2Context
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AS2Context.DLL
----------------------------------------
ASCompletion
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ASCompletion.DLL
----------------------------------------
AS3Context
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AS3Context.DLL
----------------------------------------
Aga
    Assembly Version: 1.7.0.0
    Win32 Version: 1.7.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Aga.DLL
----------------------------------------
XMLCompletion
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/XMLCompletion.DLL
----------------------------------------
ASClassWizard
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ASClassWizard.DLL
----------------------------------------
BookmarkPanel
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/BookmarkPanel.DLL
----------------------------------------
BridgeSettings
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/BridgeSettings.DLL
----------------------------------------
CodeAnalyzer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeAnalyzer.DLL
----------------------------------------
CodeFormatter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeFormatter.DLL
----------------------------------------
Antlr3
    Assembly Version: 3.1.3.42154
    Win32 Version: 3.1.3.42154
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Antlr3.DLL
----------------------------------------
CodeRefactor
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeRefactor.DLL
----------------------------------------
DataEncoder
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/DataEncoder.DLL
----------------------------------------
fdb.j4n
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/fdb.j4n.DLL
----------------------------------------
jni4net.n-0.8.2.0
    Assembly Version: 0.8.2.0
    Win32 Version: 0.8.2.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n-0.8.2.0.DLL
----------------------------------------
FileExplorer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FileExplorer.DLL
----------------------------------------
FlashConnect
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashConnect.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
FlashDebugger
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashDebugger.DLL
----------------------------------------
FlashLogViewer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashLogViewer.DLL
----------------------------------------
FlashViewer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashViewer.DLL
----------------------------------------
ProjectManager
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ProjectManager.DLL
----------------------------------------
HaXeContext
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/HaXeContext.DLL
----------------------------------------
jni4net.n.w32.v20-0.8.2.0
    Assembly Version: 0.8.2.0
    Win32 Version: 0.8.2.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n.w32.v20-0.8.2.0.DLL
----------------------------------------
LayoutManager
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/LayoutManager.DLL
----------------------------------------
MacroManager
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/MacroManager.DLL
----------------------------------------
OutputPanel
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/OutputPanel.DLL
----------------------------------------
PHPContext
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/PHPContext.DLL
----------------------------------------
SwfOp
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/SwfOp.DLL
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
QuickNavigatePlugin
    Assembly Version: 1.0.0.18890
    Win32 Version: 1.0.0.18890
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/QuickNavigatePlugin.DLL
----------------------------------------
ResultsPanel
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ResultsPanel.DLL
----------------------------------------
SourceControl
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/SourceControl.DLL
----------------------------------------
StartPage
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/StartPage.DLL
----------------------------------------
System.Web
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
TaskListPanel
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/TaskListPanel.DLL
----------------------------------------
AutoVersion
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.11228.1957
    CodeBase: file:///C:/Users/62316e/AppData/Local/FlashDevelop/Plugins/AutoVersion.dll
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
r60puyv-
    Assembly Version: 1.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
_afuychv
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
net.sf.jni4net.jni.dynammic
    Assembly Version: 0.0.0.0
    Win32 Version: 0.8.2.0
    CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n-0.8.2.0.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.




Fri Aug 26, 2011 11:18 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.