Jump to content
Sign in to follow this  
ranber

The new version AutoIt3Wrapper has a bug

Recommended Posts

ranber

When sciTE set encoding to UTF-8 with BOM, appear compile error for #include "..." as follows

#include "CommMg.au3"

W:\Works\Test.au3(9,10) : ERROR: can't open include file "CommMG.au3".

#include "CommMG.au3"

~~~~~~~~~^

CommMg.au3 in ScriptDir

SciTE4Autoit3 29/12/2011

Share this post


Link to post
Share on other sites
water

This problem has been discussed


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ranber

It seems not the same kind of Bug

make follows is ok

#include "W:WorksCommMg.au3"

Share this post


Link to post
Share on other sites
water

If you just specify the name you have to use <CommMg.au3>. The include directory of AutoIt, the directory where the script resides and an optional user include directory is then searched for the UDF.

If "..." is used, the filename is taken to be relative to the current script.

Please check the help file for details.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
ranber

test1.au3

#include <test2.au3>
MsgBox(0,"test","some chinese 中文")

test2.au3

MsgBox(0,"test2","test2 is ok")

set test1.au3 encoding to UTF-8W BOM and compiled as follows:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "W:Workstest.au3" /UserParams  
+>12:18:29 Starting AutoIt3Wrapper v.2.1.0.20   Environment(Language:0804  Keyboard:00000804  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86)
>Running AU3Check (3.3.9.1)  from:C:Program FilesAutoIt3
"W:Workstest.au3"(3,10) : error: can't open include file <test2.au3>.
#include <test2.au3>
~~~~~~~~~^
W:Workstest.au3 - 1 error(s), 0 warning(s)
!>12:18:29 AU3Check ended. Press F4 to jump to next error.rc:2
>Exit code: 0   Time: 0.415

the old AutoIt3Wrapper has no this bug.

Edited by ranber

Share this post


Link to post
Share on other sites
ranber

write test1.au3,test2.au3 in the same directory is w:work,

test1.au3 is

#include "test2.au3"
MsgBox(0,"test","some chinese 中文")
Edited by ranber

Share this post


Link to post
Share on other sites
Jos

Not sure what the title has to do with the issue posted other then in the old days auccheck wasn't run at all when your script was unicode encoded.

This has nothing to do with AutoIt3Wrapper as such and likely related with au3check.

So the issue is that all files are located in the same directory and now you get an error where before you never got that.

The only reason for that could be that au3check doesn't support any UNICODE files, but AutoIt3wrapper will now detect that the main script is UNICODE encoded and will make a copy saved without any encode to allow au3check to verify it. I can imagine that this now causes issues when it tries to load UNICODE encoded include file but would need to test this,

Now do me a favor and zip up some tests files your are testing with and demonstrates the issue, get them to me by PM or attaching it to this thread, so I can replicate it.

Jos


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

Share this post


Link to post
Share on other sites
ranber

Thanks for your reply, The testing is it.

In addition, I replaced with older versions of the AutoIt3Wrapper v.1.10.1.14, compiled without any problems (I installed autoit3.3.8.1 and SciTE4AutoIt3 12/29/2012)

test.zip

Share this post


Link to post
Share on other sites
ranber
Good job! Thanks, Jos.

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
Sign in to follow this  

×