Jump to content
seadoggie01

Au3Check Custom Includes

Recommended Posts

Au3Check incorrectly reports an error when includes are used in the following situation:

; Main.au3
#AutoIt3Wrapper_Run_Au3Check=y

#include <test.au3>
#include <test2.au3>
; <Custom Includes Folder Path>\Test.au3
#include-once
#include 'test2.au3'
; <Custom Includes Folder Path>\Test2.au3
#include-once
Func test2()
    
EndFunc

The Console output looks like this:

<Custom Includes Path>\test2.au3"(2,13) : error: test2() already defined.
Func test2()
~~~~~~~~~~~~^

When run without Au3Check, there is no error.


All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts

Share this post


Link to post
Share on other sites

It works fine for me, so my guess is you have the test2.au3 in different directories in any of the include paths.
When <test2.au3> gets the file from a different directory than the 'test2.au3', they are considered different file and thus both included. 

Could this be the case in your setup?

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

No, there appears to be a problem with my setup instead. I get that error on my work computer, but it is working fine on my personal system. I'll have to reinstall and see if I can fix it.


All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...