Sign in to follow this  
Followers 0
orbs

how to disable backup before Tidy?

9 posts in this topic

being my usual self i'm probably missing the obvious here. i saw the tidy ini file, but the comments says that if i set the versions count to zero it means infinite backup. so how do i disable it completely?

(also, i'm somewhat at inconvenience that my personal preferences are stored in the Program Files folder. it will be removed if i uninstall or reinstall AutoIt. i'd expect it to be in the user profile. i did find many au3 related files in the profile root (not the ideal place - better be in a subfolder. me thinks), but that's SciTe config, not Tidy.)

Share this post


Link to post
Share on other sites



being my usual self i'm probably missing the obvious here. i saw the tidy ini file, but the comments says that if i set the versions count to zero it means infinite backup. so how do i disable it completely?

You can't as Tidy updates the source and creates a new file, so I won't be held accountable for any screwup by Tidy, hence there is always one latest version... the original.

(also, i'm somewhat at inconvenience that my personal preferences are stored in the Program Files folder. it will be removed if i uninstall or reinstall AutoIt. i'd expect it to be in the user profile. i did find many au3 related files in the profile root (not the ideal place - better be in a subfolder. me thinks), but that's SciTe config, not Tidy.)

Isn't this the case in the latest couple of versions of the SciTE4AutoIt3 installer?

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

You can't as Tidy updates the source and creates a new file, so I won't be held accountable for any screwup by Tidy, hence there is always one latest version... the original.

 

understood, thanks.

 

Isn't this the case in the latest couple of versions of the SciTE4AutoIt3 installer?

 

that may be, but i'm not interested in SciTe config, but with Tidy config. is there a way i modify it - for example, change the backup folder path - and keep the config not in the Program Files folder? (i'm not referring to wrapper directives, i want it for all my scripts)

Share this post


Link to post
Share on other sites

 

that may be, but i'm not interested in SciTe config, but with Tidy config. is there a way i modify it - for example, change the backup folder path - and keep the config not in the Program Files folder? (i'm not referring to wrapper directives, i want it for all my scripts)

Sorry, but it is still not clear to me. The tidy config file is located in %LOCALAPPDATA%AutoIt v3SciTETidy when you have used the installer and SCITE_USERHOME exists.

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

The tidy config file is located in %LOCALAPPDATA%AutoIt v3SciTETidy when you have used the installer and SCITE_USERHOME exists.

 

i first noticed it in "C:Program Files (x86)AutoIt3SciTETidy", hence i guess the confusion. now i see it also exists in the path you mentioned. however i can not get it to work. here's what i did:

i copied TidyV2_Example.ini to TidyV2.ini and changed as follows:

* * *   Target backup directory which defaults to Scriptdir\Backup. Any other directory needs to exist or else it will use the default directory!
backupDir=C:\Users\user\AppData\Local\Temp

(my username is "user", the path exists - it's my %TEMP% folder).

re-launched SciTe, did Tidy => backup file was still saved in scriptdirbackup.

tried with %TEMP% => same result. removed the V2 suffix => same result.

what am i missing?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Works fine for me, What do you see in the SciTE console when doing Ctrl+T?

It tells you what the backup file is:

+> Tidy AutoIt3 finished. Original copied to:"C:\Users\Jos\AppData\Local\temp\test_old1.au3"

Can you show me the total content of tidy.ini as well?

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

the console output shows that the backup file is created in the scriptdirbackup folder (that's how i know my config does not apply). i also delete this folder constantly, and it is re-created by Tidy.

this be the file C:UsersuserAppDataLocalAutoIt v3SciTETidyTidy.ini

[ProgramSettings]
 * * *  Indent  0 = Tabs  >0 = Number of Space
tabchar=0

 * * *  Update Functions/Keywords/Macros/UDFs to Proper case
proper=1

 * * * Update Constants defined in the "constant Include files"
properconstants=0

 * * *  Update Variables to: 1=LowerCase; 2=UpperCase; 3=First Dim/Local/Global or "First_Seen" Case
vars=3

 * * *  Update Spaces around Delimiters
delim=1

 * * *  Add comment to EndFunc statement e.g. "EndFunc   ;==>UDF_Name"
endfunc_comment=1
 * * *  Ingnore EndFunc statement comments.
#~ endfunc_comment=0
 * * *  Remove comments from EndFunc statement.
#~ endfunc_comment=-1

 * * *  Added comment to EndRegion and make it the same as the #Region Comments.
endregion_comment=1
 * * *  Ingnore EndFunc statement comments.
#~ endregion_comment=0
 * * *  Remove comments from EndFunc statement.
#~ endregion_comment=-1


 * * *  Indent #region sections
region_indent=1

 * * *  Generate Documentation file for the Program and optionally Display it with Notepad at the end ot the Tidy run
Gen_Doc=0
Gen_Doc_Show=0

 * * *   Keep x Version of the File before the Tidy run and optionally store them in SubDirectory "\Backup"
KeepNVersions=1

 * * *   Target backup directory which defaults to Scriptdir\Backup. Any other directory needs to exist or else it will use the default directory!
backupDir=C:\Users\user\AppData\Local\Temp

 * * *   Remove Empty lines from Script Source
Remove_Empty_Lines=

 * * *   1=Show Tidy Errors in Console   9=Debug Output
ShowConsoleInfo=

 * * *   Run DIFF program at the end of the Tidy run to show the difference between original and new program.
#~ ShowDiffPgm=C:\Progra~1\WinMerge\winmerge.exe "%new%" "%old%"

 * * *  End With NewLine: 0=Strip Lastline CRLF;   1=Always end with RCLF (Default) 
End_With_NewLine=1

i'm using AutoIt v3.3.10.2 (SciTe v3.3.7, Tidy v2.4.0.0), but that's after several upgrades and re-installations. i plan to make a clean installation on a VM for further testing.

Share this post


Link to post
Share on other sites

Looks like you are running an old version which doesn't support the new setup.

 

*** Updated Tidy v2.4.0.1 (Jos) - Added support for SCITE_USERHOME.


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

thanks, i'll (eventually...) upgrade.

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
Sign in to follow this  
Followers 0