Jump to content

Recommended Posts

Posted

I just made some useful script

But I notice that Au3Check say to me:

  Quote

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "Z:\TOOLs\Macro\PROGRAMY\TEST_XML_Create.au3" /UserParams    
+>23:03:17 Starting AutoIt3Wrapper v.15.503.1200.4 SciTE v.3.5.4.0   Keyboard:00000415  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:0415)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\user\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\user\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.13.22)  from:C:\Program Files (x86)\AutoIt3  input:Z:\TOOLs\Macro\PROGRAMY\TEST_XML_Create.au3
"Z:\TOOLs\Macro\PROGRAMY\TEST_XML_Create.au3"(49,16) : error: 'With' cannot be nested.
        With $oWriter
        ~~~~~~~~~~~~~^
"Z:\TOOLs\Macro\PROGRAMY\TEST_XML_Create.au3"(55,16) : error: 'With' cannot be nested.
        With $oReader
        ~~~~~~~~~~~~~^

Z:\TOOLs\Macro\PROGRAMY\TEST_XML_Create.au3 - 2 error(s), 0 warning(s)
!>23:03:17 AU3Check ended. Press F4 to jump to next error.rc:2
+>23:03:17 AutoIt3Wrapper Finished.
>Exit code: 2    Time: 0.598

When I use:

#AutoIt3Wrapper_Run_AU3Check=N

Script works correctly, besides in HelpFile:

https://www.autoitscript.com/autoit3/docs/keywords/With.htm

you can read this:

  Quote

Remarks

With...EndWith statements may be nested.

 

Is it Au3Check bug ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

What exactly is the issue? You were expecting au3check not to run or something that au3check reports?

Show me a simple snippet to shows this issue please.

Edited by 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.
  :)

Posted

Jos,

The issue is that Au3Check flags nested With as an error, while it is now allowable to nest With:

Local $oA = ObjCreate("Scripting.Dictionary")
Local $oB = ObjCreate("Scripting.Dictionary")
$oA.Add('1', 'this is A')
$oB.Add('1', 'this is B')


With $oA
    ConsoleWrite(.Item('1') & @LF)
    With $oB                            ; this is where Au3Check wrongly chokes
        ConsoleWrite(.Item('1') & @LF)
    EndWith
    ConsoleWrite(.Item('1') & @LF)
EndWith

 

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

  • Developers
Posted (edited)

Thanks @jchd, I like it when issue reports are short and sweet like this. :)
@mLipok, Seems  to be a bug so go ahead and create a bugreport so we can track it.

Cheers, Jos

Edited by 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.
  :)

Posted

Warm thanks for caring that fast, Jos.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

I join the acknowledgments.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 7/3/2015 at 9:57 AM, Jos said:

Thanks @jchd, I like it when issue reports are short and sweet like this. :)
@mLipok, Seems  to be a bug so go ahead and create a bugreport so we can track it.

Cheers, Jos

Unfortunately, this is not always possible, especially if the declarant is not sure of his case, as it was in this case.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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...