Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (151 - 153 of 3856)

Ticket Resolution Summary Owner Reporter
#848 Completed Tidy.exe - enhancement to '/rel : Remove empty lines from the source.' parameter Bowmore
Description

It would be nice if the Tidy.exe parameter

/rel : Remove empty lines from the source.

could have an optional flag 0|1 /rel 0 (default) would work as it currently does and remove all empty lines.

/rel 1 would reduce consecuative lines containing only whitespace to a single empty line. I believe that this will help to make the code more readable by removing excessive whitespace but leaving it where the author intended.

Example: Running Tidy on the following code with proposed /rel 1 parameter

  ;--------------------------------------------
  $g_sTestRun = GUICtrlRead($GUI_edtTestRun)




  If $g_sTestRun = "" Then
    $iMsgBoxAnswer = MsgBox(53, "Warning", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf


  $g_sTestCase = GUICtrlRead($GUI_edtTestCaseId)

  If $g_sTestCase = "" Then
    $iMsgBoxAnswer = MsgBox(53, "Warning", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf
  ;--------------------------------------------

would produce the following output.

  ;--------------------------------------------
  $g_sTestRun = GUICtrlRead($GUI_edtTestRun)

  If $g_sTestRun = "" Then
    $iMsgBoxAnswer = MsgBox(53, "Warning", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf

  $g_sTestCase = GUICtrlRead($GUI_edtTestCaseId)

  If $g_sTestCase = "" Then
    $iMsgBoxAnswer = MsgBox(53, "Warning", $sMessage)
    Switch $iMsgBoxAnswer
      Case 4 ;Retry
        Return
      Case 2 ;Cancel
        Exit
    EndSwitch
  EndIf
  ;--------------------------------------------
#1046 No Bug Hard crash when parsing larger strings using StringSplit() Bowmore
Description

Environment = 3.3.1.1 under WIN_XP/Service Pack 3 X86 Environment = 3.3.0.0 under WIN_XP/Service Pack 3 X86

When loading a large file to an array using string split Autoit crashes i.e. The error message 'Error allocating memory' is displayed and AutoIt exits I've checked that string length and array limits are not been exceeded Perhaps I am expecting too much but I would have hoped for a more controlled way of handling a memory error, so that if my data is too large for StringSplit() to split, I could branch to a disk storage based method of processing the data I have

$sTemp = ''
$aTemp = 0
;Increase the size of the string until problem occurs
For $j = 1 To 5
  ; Create string to replicate a medium sized file having being read.
  For $i = 1 To 1000000  * $j Step 1
    $sTemp &=  String ($i) & " This is the average length of line that is in my data file" & @CRLF
  Next
  MsgBox(0, "String Split Test", "Length of string = " & StringLen($sTemp))
  $aTemp = StringSplit($sTemp, @LF ) ; Memory error occurs at this point.
  MsgBox(0, "String Split Test", "Array Ubound = " & UBound($aTemp))
  $sTemp = ''
  $aTemp = 0
Next
#1192 Works For Me Tidy.exe crashes - when long strings are assinged again? Jos Bowmore
Description

Environment = 3.3.1.1 under WIN_XP/Service Pack 2 X86 When running Tidy on Tidy_Crash.au3 Tidy crashes. The commented out assingments to $sNew and $sExisting are identical to the 2 above. Tidy crashes still crashes if the second assingments to $sNew and $sExisting are uncommented, but if they are removed from the file Tidy runs with no problem.

The strings I'm assinging are quite long but well within AutIts limits.

I have attached 2 simple files to demonstrate the issue

Scite outout from crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
>Exit code: -1073741819    Time: 1.985

Scite outout from non-crashing version

>"C:\Autoit3\Scite\tidy\tidy.exe" "C:\AutoIt3Data\Scripts\Bug Reports\Tidy_No_Crash.au3"
Tidy AutoIt3 v2.0.28.6   Copyright (c) Jos van der Zande  August 7, 2009
+> Tidy AutoIt3 finished. Original copied to:"C:\AutoIt3Data\Scripts\Bug Reports\BackUp\Tidy_No_Crash_old11.au3"
>Exit code: 0    Time: 0.338
Note: See TracQuery for help on using queries.