AIstarter

Increasing Fileversion and SVN integration stopped working?

8 posts in this topic

#1 ·  Posted (edited)

Hi,

I'm having some problems with Autoit/Scite (reinstalled both of course) - my scite won't increase the FileVersion anymore on any of my projects and SVN says there is no difference - but TortosieSVN says the file is modified (I even added some lines of code and according to Scite it's still the same)

Quote

Your version is the same as the SVN version, nothing to update.

#AutoIt3Wrapper_Res_Fileversion=1.4.3.4
#AutoIt3Wrapper_Res_FileVersion_AutoIncrement=y
#AutoIt3Wrapper_Versioning=y
#AutoIt3Wrapper_Versioning_Parameters=/comments "%scriptfile% %fileversion% \n" /NoPrompt

I have no idea why it stopped working? Using the diff of TortosieSVN I see a LOT of changes in the file?

Thanks in advance!

Edit:

Commiting using TortosieSVN works fine - svn update works fine. I doubt it's a SVN problem?

Edited by AIstarter

Share this post


Link to post
Share on other sites



Hi Jos,

paneoutput attached

Quote

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "S:\AutoIT\AddConf\AddConf New.au3"
+>13:58:20 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0   Keyboard:00000407  OS:WIN_7/Service Pack 1  CPU:X64 OS:X86  Environment(Language:0407)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\Martin\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Martin\AppData\Local\AutoIt v3\SciTE
>Running Tidy (17.224.935.0)  from:C:\Program Files\AutoIt3\SciTE\tidy
+>13:58:21 Tidy ended.rc:0
>Running AU3Check (3.3.14.2)  from:C:\Program Files\AutoIt3  input:S:\AutoIT\AddConf\AddConf New.au3
+>13:58:21 AU3Check ended.rc:0
>Running Au3Stripper (17.224.935.0)  from:C:\Program Files\AutoIt3\SciTE\Au3Stripper cmdline:
- 0.16 Iteration 1 Strip Functions result: Output  608 lines, stripped 0 Func lines and 498 Commentlines
- 0.38 Iteration 2 Strip Variables result: Output  100 lines and stripped 508 lines
- 0.41 Iteration 3 Strip Variables result: Output  91 lines and stripped 9 lines
- 0.42 Iteration 4 Strip Variables result: Output  91 lines and stripped 0 lines
+> Source    1114 lines 41084 Characters.
+> Stripped  517 Func/Var lines and  498 comment lines, Total 37804 Characters.
+> Saved     91% lines 92% Characters.
+> 0 Au3Stripper v17.224.935.0 finished created:S:\AutoIT\AddConf\AddConf New_stripped.au3
+>13:58:21 Au3Stripper ended.rc:0
>Running AU3Check (3.3.14.2)  from:C:\Program Files\AutoIt3  input:S:\AutoIT\AddConf\AddConf New_stripped.au3
+>13:58:21 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "S:\AutoIT\AddConf\AddConf New_stripped.au3" /out "C:\Users\Martin\AppData\Local\AutoIt v3\Aut2exe\~AU5B6A.tmp.exe" /nopack /icon "S:\AutoIT\AddConf\Galaxy.ICO" /comp 2
+>13:58:22 Aut2exe.exe ended.C:\Users\Martin\AppData\Local\AutoIt v3\Aut2exe\~AU5B6A.tmp.exe. rc:0
>13:58:22 Performing the Program Resource Update steps:
...>Updating Program Version information.
>13:58:23 Program Resource updating finished successfully.
>Running:(3.91.0.0):C:\Program Files\AutoIt3\aut2exe\upx.exe" --best --lzma "C:\Users\Martin\AppData\Local\AutoIt v3\Aut2exe\~AU5B6A.tmp.exe"
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.91w       Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    837632 ->    330240   39.43%    win32/pe     ~AU5B6A.tmp.exe

Packed 1 file.
+>13:58:24 UPX Ended: rc:0
+>13:58:24 Created program:S:\AutoIT\AddConf\AddConf New.exe
+ Your version is the same as the SVN version, nothing to update.
+>13:58:26 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 6.229

 

 

Share this post


Link to post
Share on other sites
37 minutes ago, AIstarter said:

+ Your version is the same as the SVN version, nothing to update.

So this indicates that the text defined in AutoIt3Wrapper.ini under [SVN] CommandStatusSource_ok_txt is not found in the text returned by the SVN CommandStatusSource command:

Quote

[SVN]
VersionPGM=C:\Program Files\TortoiseSVN\bin\svn.exe
CommandChkVersioning=info "%sourcedir%"
CommandChkVersioning_ok_txt=Working Copy Root Path:
CommandChkVersioning_ok_rc=
CommandStatusSource=status "%sourcefile%" -u
CommandStatusSource_ADD_txt=\?\s*?%sourcefile%
CommandStatusSource_ok_txt=[MA\?][\s\d-]*?%sourcefile%
CommandLogSource=log "%sourcefile%" -l 5
CommandAddSource=add "%sourcefile%"
CommandAddSource_ok_txt=A.*?%sourcefileonly%
CommandAddSource_ok_rc=
CommandCommitSource=commit "%sourcefile%" --message "%commitcomment%"
CommandCommitSource_ok_txt=
CommandCommitSource_ok_rc=0
CommandCommitSource_new_revision=(?i)(?s)committed revision\s*([0-9]*)
CommandGetLastVersion=cat "%sourcefile%"
CommandGetLastVersion_ok_txt=
CommandGetLastVersion_ok_rc=0
 

Could you start with checking your version of Autoit3Wrapper.ini in %SCITE_USERHOME%\AutoIt3Wrapper?
What do you get when you do the command manually when in cmd prompt ? :
svn status " S:\AutoIT\AddConf\AddConf New.au3 " -u

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Hi Jos,

svn status gave

Quote

M              469   S:\AutoIT\AddConf\AddConf New.au3
Status against revision:    469

And my ini looks nearly the same

[Versioning]
Versioning=SVN
DiffPGM=C:\Program Files\WinMerge\WinMergeU.exe
DiffPGMOptions=/wr
Prompt_Comments=y
[SVN]
VersionPGM=C:\Program Files\TortoiseSVN\bin\svn.exe
CommandChkVersioning=info "%sourcedir%"
CommandChkVersioning_ok_txt=Working Copy Root Path:
CommandChkVersioning_ok_rc=
CommandStatusSource=status "%sourcefile%" -u
CommandStatusSource_ADD_txt=\?\s*?%sourcefile%
CommandStatusSource_ok_txt=[MA\?][\s\d-]*?%sourcefile%
CommandLogSource=log "%sourcefile%" -l 5
CommandAddSource=add "%sourcefile%"
CommandAddSource_ok_txt=A.*?%sourcefileonly%
CommandAddSource_ok_rc=
CommandCommitSource=commit "%sourcefile%" --message "%commitcomment%"
CommandCommitSource_ok_txt=
CommandCommitSource_ok_rc=0
CommandCommitSource_new_revision=(?i)(?s)committed revision\s*([0-9]*)
CommandGetLastVersion=cat "%sourcefile%"
CommandGetLastVersion_ok_txt=
CommandGetLastVersion_ok_rc=0

Thanks!

Edit:

I think I found it... seems to be there are no whitespaces allowed for it to work. Using another filename with no whitespace it works. Any way to get around this?

Edited by AIstarter

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Just tested with a file with spaces it it, actually the same name as you use with the posted directives, and all is working fine for me. ... strange...

EDIT: please add this line into your AutoIt3Wrapper.ini:

[Versioning]
debug=1

This will generate an log with SVN information in it: %SCITE_USERHOME%\AutoIt3Wrapper\AutoIt3Wrapper.log
Could you PM that to me to see if that explains things for me?

Jos

 

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Fun Fact - I'm not able to reproduce this using the original Filename - but I'm still able to reproduce this somehow. I tried a lot of thing because it works now, but I found another way to get the same message... I tried a copy of my file named "AddConf New (5).au3" and with this filename I get the same message even if it's different.

I'll try and get the debug log when I'm at home again tomorrow

 

 

Share this post


Link to post
Share on other sites

It turned out to be an issue in the REGEX used in the Versioning Func not handling the brackets () in the filename corrected as they need to be escaped with a backslash \.
Current beta version of AutoIt3Wrapper should resolve this.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now