seadoggie01 302 Posted August 5, 2020 Share Posted August 5, 2020 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 functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password manager Link to post Share on other sites
Developers Jos 2,852 Posted August 5, 2020 Developers Share Posted August 5, 2020 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. Link to post Share on other sites
seadoggie01 302 Posted August 5, 2020 Author Share Posted August 5, 2020 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 functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password manager Link to post Share on other sites
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now