Modify

Opened 10 years ago

Closed 10 years ago

#3256 closed Bug (Fixed)

Error in Au3Stripper

Reported by: omash@… Owned by: Jos
Milestone: Component: SciTE4AutoIt
Version: Other Severity: None
Keywords: Cc:

Description

Au3Stripper does not handle the type of line:
Global Const $aArray[<size>] = [value1, value2...]
In the future, there is an error "possibly used before declaration"

Attachments (0)

Change History (7)

comment:1 by Jos, 10 years ago

Please post a clear bug report to avoid me having to guess, which includes a code snippet and the error made in the output script after running au3stripper.

Thanks
Jos

Last edited 10 years ago by Jos (previous) (diff)

in reply to:  1 ; comment:2 by omash@…, 10 years ago

Replying to Jos:

Please post a clear bug report to avoid me having to guess, which includes a code snippet and the error made in the output script after running au3stripper.

Thanks
Jos

Global Const $a[3] = [0, 1, 2]
_Test()
Func _Test ()
	Local $str = "tst1" & $a[1] & "tst2"
	MsgBox(0, '', $str)
EndFunc

in reply to:  2 comment:3 by omash@…, 10 years ago

Replying to omash@…:

Replying to Jos:

Please post a clear bug report to avoid me having to guess, which includes a code snippet and the error made in the output script after running au3stripper.

Thanks
Jos

Global Const $a[3] = [0, 1, 2]
_Test()
Func _Test ()
	Local $str = "tst1" & $a[1] & "tst2"
	MsgBox(0, '', $str)
EndFunc

After starting the au3stripper:

_10()
Func _10()
Local $0 = "tst1" & $1[1] & "tst2" ;An error occurs in this line: "$1: possibly used before declaration."
MsgBox(0, '', $0)
EndFunc

comment:4 by Jos, 10 years ago

Status: newaccepted

comment:5 by Jos, 10 years ago

Will have a look.
Thanks
Jos

comment:6 by Jos, 10 years ago

Please try the current beta version 16.612.1119.1 to see if that fixes it and doesn't brake anything else.

Jos

comment:7 by Jos, 10 years ago

Resolution: Fixed
Status: acceptedclosed

Modify Ticket

Action
as closed The owner will remain Jos.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.