ranber Posted March 15, 2012 Share Posted March 15, 2012 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 Link to comment Share on other sites More sharing options...
water Posted March 15, 2012 Share Posted March 15, 2012 This problem has been discussed My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ranber Posted March 15, 2012 Author Share Posted March 15, 2012 It seems not the same kind of Bug make follows is ok #include "W:WorksCommMg.au3" Link to comment Share on other sites More sharing options...
water Posted March 15, 2012 Share Posted March 15, 2012 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 (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
ranber Posted March 16, 2012 Author Share Posted March 16, 2012 (edited) 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 March 16, 2012 by ranber Link to comment Share on other sites More sharing options...
ranber Posted March 16, 2012 Author Share Posted March 16, 2012 (edited) write test1.au3,test2.au3 in the same directory is w:work, test1.au3 is #include "test2.au3" MsgBox(0,"test","some chinese 中文") Edited March 16, 2012 by ranber Link to comment Share on other sites More sharing options...
Developers Jos Posted March 16, 2012 Developers Share Posted March 16, 2012 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ranber Posted March 17, 2012 Author Share Posted March 17, 2012 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted March 17, 2012 Developers Share Posted March 17, 2012 Uploaded a fix for this reported issue to the Beta directory: AutoIt3Wrapper v2.1.0.30 Thanks Jos ranber 1 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 comment Share on other sites More sharing options...
ranber Posted March 17, 2012 Author Share Posted March 17, 2012 Good job! Thanks, Jos. Link to comment Share on other sites More sharing options...
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