Sign in to follow this  
Followers 0
jaberwacky

Possible Tidy Issue

6 posts in this topic

When I set proper to one then vars to one, two or three and press [ctrl] + [t] then all of the $ are stripped from the variables.  I'm using tidy 2.3.0.12 with AutoIt 3.3.9.15 on Windows 7 x64 latest SP. I understand that $ are still required in the latest betas but even if not, should there still be an option to strip them?  Or am I overlooking something?

This is my tidy.ini:
 

[ProgramSettings]
tabchar=3
Region_Indent=1
Skip_CommentBlock=0
proper=1
vars=3
delim=1
Remove_Empty_Lines=1
End_With_NewLine=1
Sort_funcs=0
Sort_funcs_Comments=0
endfunc_comment=-1
endregion_comment=1
KeepNVersions=0
backupDir=
Gen_Doc=0
Gen_Doc_Show=0
ShowConsoleInfo=9
ShowDiffPgm=C:\Progra~1\WinMerge\winmerge.exe '%new%' '%old%'

Share this post


Link to post
Share on other sites



I see I missed to revert some of the logic which was put into Tidy to support the Beta which supporting variables without $.

Need to revert some more code and will look at that later this week.

Thanks

Jos


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

Share this post


Link to post
Share on other sites

Funny... This has been like this for ages and not noticed before, or at least never reported.

I will update the documentation and the INI file.

Thanks

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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
Sign in to follow this  
Followers 0

  • Similar Content

    • Jos
      By Jos
      Merged the SciTE 3.7.3 source into our version and several other changes and fixes to the supporting utilities.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 24-2-2017 *** Merged the SciTE v 3.7.3 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.2 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not  specified.     - 16.612.1119.3 Added warning for #AutoIt3Wrapper_UseX64 in case #pragma(out,..)  is used. *** Updated Au3Stripper v17.224.935.0 (Jos)     - 16.612.1119.1 Fixed issue which sometimes was stripping a global const incorrectly     - 16.612.1119.2 Fixed /maxiterations parameter not recognised     - 16.612.1119.3 Fixed increased the max #Au3Stripper_Ignore_Variables to 500 and for #Au3Stripper_Ignore_Funcs to 200     - 16.612.1119.4 Fixed regression introduced in 16.612.1119.1 *** Updated SciTEConfig v17.224.935.0 (Jos)     - 16.306.1119.1 ... *** Updated Tidy v17.224.935.0 (Jos)     - 16.612.1119.1: Fixed Sort_Func function bug when the source contains a BOM. *** Updated CodewiZard v1.5.4.0 (Cyberyeye)     - Fix Icon Ressource Number for Messagebox Tab & ToolTip Tab     - Check/Fix missing includes using AutoIt3Wrapper_Add_Constants=y     - Added Opt("MustDeclareVars", 1) to fix undeclared variables     - Replaced msgbox() magic number by constant name     - Added GUISetIcon var (au3.ico)     - Removed unusefull old AutoIt3Wrapper directive *** Updated Abbreviations (mLipok)     - Updated au3abbrev.properties and helpfile page. --------------------------------------------------------------------------------------------------
      ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check  the online documentation for an overview of all extra's you get with this installer.
       
    • Jos
      By Jos
      11-3-2016: Uploaded a new SciTE4AutoIt3.exe.
      Merged the SciTE 3.6.2 source into our version and several other changes and fixes to the supporting utilities.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      -------------------------------------------------------------------------------------------------- 6-3-2016 *** Merged the SciTE v 3.6.2 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v16.306.1237.0 (Jos) - 15.920.938.2 removed the check for utf8 for au3check as that is supported - 15.920.938.3 Reverted __ConsoleWrite() to ConsoleWrite for ShowStdOutErr() - 15.920.938.4 added info for codepage and utf8 check to header. - 15.920.938.5 Only warn about #RequireAdmin for Run option. - 15.920.938.6 fixed issue when these were used together: #AutoIt3Wrapper_Run_Au3Stripper=y #AutoIt3Wrapper_Res_SaveSource=Y - 15.920.938.8 Modifications from DickG for the GUI Control locations and sizes to fit other screen sizes. *** Updated Au3Stripper v16.306.1237.0 (Jos) - 15.920.938.2 Fixed error line number for statements using unresolved func name Added logic to remove the () behind the Func in case of this type of lines: Call(Example3(), 'fff') NewFoundWord$ is then="Example3()" - 15.920.938.3 Added minus sign support to preexpand variables. - 15.920.938.4 Fixed crash in the get firstword logic to limit the returned length to 500. - 15.920.938.5 Fixed /PE replacing the variable in a For $x= statement. *** Updated SciTEConfig v16.306.1237.0 (Jos) - 15.920.938.1 hide/unhide when opening Tidy.ini to avoid a hidden msgbox hanging SciTEConfig.au3 - 15.920.938.2 Added the creation of includes.txt for AutoComplete Standard UDFs when "#include" is typed. - 15.920.938.3 Fixed for CallTip not always updating correctly. *** Updated Tidy v16.306.1237.0 (Jos) - 15.920.938.1 Fixed issue with space removal between [ and Then - 15.920.938.2 #forceref and #forcedef now also tidied. - 15.920.938.3 Enfoces a single space between end-of-line and inline comment - 15.920.938.4 Fixed regression extra space between EndFunc and #EndRegion and the added comments. --------------------------------------------------------------------------------------------------   ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the newly formatted the online documentation for an overview of all extra's you get with this installer.
    • darthwhatever
      By darthwhatever
      I believe I have found a bug in the latest version of Tidy, which I have downloaded from the Scite4Autoit website. Tidying the following code 
      If $a[1 - function('')] Then ElseIf $a[fucntion()] Then ElseIf $a[(0)] Then ElseIf $a[function() - 0] Then ElseIf $a[function(0)] = 1 Then EndIf will erase the whitespace between the closing brackets and the then keyword whenever the last expression is a function. This also occurs on ElseIf lines, and results in this code: 
      If $a[1 - function('')]Then ElseIf $a[function()]Then ElseIf $a[(0)]Then ElseIf $a[function() - 0] Then ElseIf $a[function(0)] = 1 Then EndIf Which does not run. Should I submit a bug report on the autoit bugtracker? For now I can either use the #Tidy_on and #Tidy_off directives to skip these lines so that the source actually runs. 
    • Jos
      By Jos
      20-9-2015: Uploaded a new SciTE4AutoIt3.exe.
      Merged the SciTE 3.6.0 source into our version and several fixes.
      We now also have set the default encoding to UTF8 W/O Bom when no other File encoding is specified or special ASCII characters are detected in the source. 
       
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      20-9-2015 *** Merged the SciTE v 3.6.0 by Neil Hodgson with our own version of SciTE. (Jos)     - More fixes to outputpane lexing to ensure FuncTrace generated lines work again.     - Added tf8.auto.check=4 default to SciTEGlobal. properties to check files when opened for their encoding or else use utf8 w/o BOM ad default. *** Updated AutoIt3Wrapper v15.920.938.0 (Jos)     - 15.729.1555.1: Fixed /Watcher and /Jump2FirstError mechanism to kill the script when Ctrl+Break or via the Menu the script should be terminated.     - 15.729.1555.2: Added Win10 to the Manifest and made that the default similar to what aut2exe does.     - 15.729.1555.3: 15.729.1555.4 "Version Diff Source" now properly handling UTF encoded files.     - 15.729.1555.4: Internal mods.     - 15.729.1555.5: Added /RunAfter to copy to Programdir and Versioning without compiling.     - 15.729.1555.6: Changes to the tempfiles generated to allow for concurrent sessions of Autot3Wrapper.     - 15.729.1555.7: cleanup some tempfile remaining behind.     - 15.729.1555.8: Fixed consolewrite in debug mode.     - 15.729.1555.9: killed extra autoit3 pid when restarting the script.     - 15.729.1555.10: Removed Compiled support statements.     - 15.729.1555.11: Added a console message when Script requires Admin and SciTE is running on normal level that no console output will be displayed. *** Updated Au3Stripper v15.920.938.0 (Jos)     - 15.729.1555.2: Fixed issue for Include files with BOM encoding not recognizing #Include-once on the first line.     - 15.729.1555.3: Fixed hardcrash in case de au3stripper didn't exist and /debug was specified.     - 15.729.1555.4: Minor internal changes. *** Updated SciTEConfig v15.920.938.0 (Jos)     - added scheme OLD_LCD.SciTEConfig  (mLipok) *** Updated Au3Stripper v15.729.1555.0 (Jos)     - 15.729.1555.1: Fixed hardcrash in case an Include is used with BOM and #include-once on the first line. *** Updated Tidy v15.920.938.0 (Jos)     - 15.729.1555.1: Fixed hardcrash adding Gobal Const to the variable tables. ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions
      ==> Check the newly formatted the online documentation for an overview of all extra's you get with this installer.
    • Jos
      By Jos
      3-8-2015: updates available in the beta directory:
      *** Merged the SciTE v 3.6.0 by Neil Hodgson with our own version of SciTE. (Jos) Fixed some outputpane lexing to ensure FuncTrace generated lines work again. *** Updated AutoIt3Wrapper v15.729.1555.0 (Jos) - 15.729.1555.1: Fixed /Watcher and /Jump2FirstError mechanism to kill the script when Ctrl+Break or via the Menu the script should be terminated. - 15.729.1555.2: Added Win10 to the Manifest and made that the default similar to what aut2exe does. *** Updated Au3Stripper v15.729.1555.0 (Jos) - 15.729.1555.2: Fixed issue for Include files with BOM encoding not recognizing #Include-once on the first line. - 15.729.1555.2: Fixed hardcrash in case de au3stripper didn't exist and /debug was specified. *** Updated SciTEConfig v15.729.1555.0 (Jos) *** Updated Au3Stripper v15.729.1555.0 (Jos) - 15.729.1555.1: Fixed hardcrash in case an Include is used with BOM and #include-once on the first line. *** Updated Tidy v15.729.1555.0 (Jos)  
      1-8-2015: update available in the beta directory:
      *** Updated AutoIt3Wrapper v15.729.1555.0 (Jos) - 15.729.1555.1: Fixed /Watcher and /Jump2FirstError mechanism to kill the script when Ctrl+Break or via the Menu the script should be terminated. - 15.729.1555.2: Added Win10 to the Manifest and made that the default similar to what aut2exe does.  
      29-7-2015: Uploaded a new SciTE4AutoIt3.exe.
      I have made a big change in the whole setup, making it work without any compiled scripts, to mainly avoid the false positives we have been faced with during the last couple of days.
      This new installer will use, and thus depends on, the installed AutoIt3.exe which needs to reside one level higher as in the standard installations.
      All references to any compiled script is changed to reflect this, which means it runs AutoIt3.exe ScriptName.au3 parameters.
      We are pretty sure everything should be running fine, but let me know when you have something that is now broken due to these changes.
      Enjoy,
      Jos
      Addition/Changes/Fixes in the current installer:
      29-7-2015 This release has all the compiled scripts pulled out of the setup and we are now only using AutoIt3.exe to run the source for all the script utilities. Main reason for making the change is the regular reports of False Positive Virus warmings. Please report any issues due to this change of approach. *** Updated AutoIt3Wrapper v15.729.1555.0 (Jos) *** Updated Au3Stripper v15.729.1555.0 (Jos) *** Updated SciTEConfig v15.729.1555.0 (Jos) *** Updated Au3Stripper v15.729.1555.0 (Jos) *** Updated Tidy v15.729.1555.0 (Jos)     - Removed the inline errors and only report Console Tidy Errors. ==> ScitillaHistory page containing all SciTE-Scintilla updates.
      ==> Visit the SciTE4AutoIt3 Download page for the latest versions.
      ==> Check the newly formatted the online documentation for an overview of all extras you get with this installer.