Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2798 closed Feature Request (Works For Me)

AU3Check - checking for multiple use #include-once

Reported by: mLipok Owned by:
Milestone: Component: Au3Check
Version: Severity: None
Keywords: Cc:

Description

Please add to AU3Check new feature which check if in a au3 file was used #include-once directive more then once.

Discusion:
http://www.autoitscript.com/forum/topic/162787-unknown-function-name-unexpected-error/

Attachments (1)

test_include_once.au3 (872 bytes ) - added by mLipok 12 years ago.
REPRO

Download all attachments as: .zip

Change History (3)

comment:1 by Melba23, 12 years ago

Resolution: Works For Me
Status: newclosed

As shown in the thread to which you link, I cannot reproduce the error you claim to have discovered. You provide a reproducer script which shows the problem and I will re-open the ticket.

And in future please wait until you have a valid reproducer before opening a ticket.

M23

by mLipok, 12 years ago

Attachment: test_include_once.au3 added

REPRO

comment:2 by mLipok, 12 years ago

Here is reproducer.

#include <MsgBoxConstants.au3>
Local $sScript = '#include-once' & @CRLF

For $i = 1 To 20
	$sScript &= '#include "' & $i & '.au3"' & @CRLF
Next

For $i = 1 To 20
	FileDelete($i & '.au3')
	FileWrite($i & '.au3', $sScript)
	If $i = 15 Then
		FileWrite($i & '.au3', '#include-once' & @CRLF)
		FileWrite($i & '.au3', 'Func _test()' & @CRLF)
		FileWrite($i & '.au3', @TAB & 'MsgBox(0, "TEST INFO", "")' & @CRLF)
		FileWrite($i & '.au3', 'EndFunc' & @CRLF)
	EndIf
Next
FileDelete('test.au3')
FileWrite('test.au3', $sScript & @CRLF & '_Test()')
ShellExecute('15.au3', '', '', 'edit')
WinWaitActive("[REGEXPTITLE:(?i)(.*15.au3.*SciTE.*)]")
ShellExecute('test.au3', '', '', 'edit')
WinWaitActive("[REGEXPTITLE:(?i)(.*test.au3.*SciTE.*)]")

MsgBox($MB_SYSTEMMODAL, "How To", "Just run test.au3" & @CRLF & "Of course after when you close this MsgBox info.")

.
.

And in future please wait until you have a valid reproducer before opening a ticket.

Ok.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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