Sign in to follow this  
Followers 0
leomoon

Include Errors After Upgrading to 3.3.10.0

8 posts in this topic

Hello,

I have a script that has 4 includes which are UTF-8 With BOM. This program was working just fine in AutoIT version 3.3.8.1

I just upgraded to 3.3.10.0 and Scite says that "! Au3check doesn't support input files encoded as UTF8 with BOM" which is fine but it will completely ignore the included files and I'm getting errors about undeclared variables/functions which are in those included files...

What just happened with the new update?

Share this post


Link to post
Share on other sites



Assume you are using the Full SciTE4AutoIt3 packages and AutoIt3Wrapper stops the process since it detected an error?

Au3check indeed triggers and error when an UTFx encoded file is detected where it would before simply crash without and comment.

Not sure if it should only trigger a warning or an Error like it does now, but for the time being you will have to add:

#AutoIt3Wrapper_Run_Au3Check=n

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I have made a change to AU3check to change this from Error to Warning to allow the AutoIt3Wrapper process to continue.

You could use this version of au3check to test this.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Hello,

Thanks for the speedy response.

Using the wrapper fixed the problem and the program actually works.

The new au3check.exe that you just made, gives new errors of "undefined functions".

Here is how the program is setup.

The main file is called editor.au3 which is UTF-8 and has the GUI and some functions.

There is another file called converter.au3 which is again UTF-8 and has functions and variables in it.

I have #include <converter.au3> on top of edutor.au3 (after #EndRegion) but it still says "undefined functions" and those functions are inside converter.au3...

Share this post


Link to post
Share on other sites

Hello,

Thanks for the speedy response.

Using the wrapper fixed the problem and the program actually works.

The new au3check.exe that you just made, gives new errors of "undefined functions".

Here is how the program is setup.

The main file is called editor.au3 which is UTF-8 and has the GUI and some functions.

There is another file called converter.au3 which is again UTF-8 and has functions and variables in it.

I have #include <converter.au3> on top of edutor.au3 (after #EndRegion) but it still says "undefined functions" and those functions are inside converter.au3...

PM me the files please so I can test.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

There is no easy solution for the moment and the only option for the moment is that you add this line when your Script is using UTF encoded files:

#AutoIt3Wrapper_Run_Au3Check=n

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

I'm having the same problem with FF.au3, only the

#AutoIt3Wrapper_Run_Au3Check=n

line isn't working for me. Could it be some kind of architecture problem? I'm running on x64 Win7.

This is my code if it helps:

#AutoIt3Wrapper_If_Run
    #AutoIt3Wrapper_Run_AU3Check=N
#AutoIt3Wrapper_EndIf

#include <FF.au3>

_FFStart("about:home")
Sleep(2000)

If _FFIsConnected() Then
    $pageHTML = _FFReadHTML("html")
    SetError(@error)

    $outFile = FileOpen("C:\FF.log", 2)
    FileWrite($outFile, $pageHTML)
    FileClose($outFile)

    _FFQuit()
EndIf

Thanks in advance.

----------

*EDIT: Don't bother answering, it's working for me now... All I did is restarted Scite once again.

Edited by Moshisho

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  
Followers 0