Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3777 closed Bug (No Bug)

Au3Check Custom Includes

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

Description

Au3Check cares about what symbol is used in custom includes to #include files.

; Main.au3
#include <Test.au3>
#include <Test2.au3>
; Test.au3
#include "Test2.au3"
; Test2.au3
Global $__g_bGarbage

Attachments (0)

Change History (6)

comment:1 by seadoggie01, 6 years ago

This only seems to matter in custom includes and it only matters if different symbols are used to wrap the file name. (I posted this bug but missed putting my username in)

comment:2 by J-Paul Mesnage, 6 years ago

Component: AutoItAu3Check
Reporter: changed from anonymous to seadoggie01

comment:3 by anonymous, 6 years ago

I donn't understand as the warning are clear to me

>Running AU3Check (3.3.15.3)  params:-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w 7  from:C:\Program Files (x86)\AutoIt3\Beta  input:F:\_NoSave\_Data\Jpm\Bureau\_TBD\_AutoIt\_Tickets\_ToBeChecked\#3777 Au3check includes\Main.au3
"F:\_NoSave\_Data\Jpm\Bureau\_TBD\_AutoIt\_Tickets\_ToBeChecked\#3777 Au3check includes\Main.au3"(3,10) : warning: already included file: F:\_NoSave\_Data\Jpm\Bureau\_TBD\_AutoIt\_Tickets\_ToBeChecked\#3777 Au3check includes\Test2.au3
#include <Test2.au3>
~~~~~~~~~^
"F:\_NoSave\_Data\Jpm\Bureau\_TBD\_AutoIt\_Tickets\_ToBeChecked\#3777 Au3check includes\Test2.au3"(2,21) : warning: $__g_bGarbage already declared/assigned
Global $__g_bGarbage
~~~~~~~~~~~~~~~~~~~~^
F:\_NoSave\_Data\Jpm\Bureau\_TBD\_AutoIt\_Tickets\_ToBeChecked\#3777 Au3check includes\Main.au3 - 0 error(s), 2 warning(s)
->14:05:38 AU3Check ended. Press F4 to jump to next error.rc:1

comment:4 by seadoggie01, 6 years ago

The warnings are clear, but the file should only be included once (and is if it's compiled). A better example would've been to use a function in Test2.au3. If you run Au3Check it says the function will be double-declared. If you skip Au3Check, AutoIt doesn't report an error on a double-declared function.

comment:5 by Jos, 6 years ago

Resolution: No Bug
Status: newclosed

Why once as you don't have that specified?
Lets have this discussion on the forum first with some proper examples before declaring it a bug.

So closing the discussion here for the moment.

Jos

in reply to:  4 comment:6 by mLipok, 6 years ago

Replying to seadoggie01:

The warnings are clear, but the file should only be included once (and is if it's compiled).

did you try to use:

#include-once

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.