Sign in to follow this  
Followers 0
Hermann

AU3Check and Win2K

17 posts in this topic

Hi All,

I run into a small problem under Win2K and need a little help.

This is a script with a warning under WinXP, everything like it should be including the hint where to search for the mistake:

;---WinXP---

>Running AU3Check (1.54.9.0) from:F:\Program Files\AutoIt3

I:\Profi\pdp_Projekt.au3(988,28) : WARNING: $BMS_Tab: possibly used before declaration.

GUICtrlSetState ($BMS_Tab,

~~~~~~~~~~~~~~~~~~~~~~~~~^

I:\Profi\pdp_Projekt.au3 - 0 error(s), 1 warning(s)

->20:18:34 AU3Check ended.rc:1

and this is the same script under Win2K, the exit code shows a warning but no hint where:

;---Win2K---

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->20:17:26 AU3Check ended.rc:1

many thanks in advance.

Hermann

Share this post


Link to post
Share on other sites

We need your script to solve your problem!

Share this post


Link to post
Share on other sites

We need your script to solve your problem!

Just to make sure, I don't have a problem with the script, just with the behavior of AU3Check under Win2K.

And here you are:

;---test AU3Check and Win2K

; AutoIt Version: 3.2.8.1

Opt("MustDeclareVars", 1) ; 1=require pre-declare, 0=no

;Global $BMS_Tab ;results in a warning from AU3Check

$BMS_Tab = "Hello world"

MsgBox(0,"AU3Check & Win2K", $BMS_Tab)

Exit ;---test AU3Check and Win2K

;---WinXP---

>Running AU3Check (1.54.9.0) from:F:\Program Files\AutoIt3

I:\pdp_Projekt.au3(7,25) : WARNING: $BMS_Tab possibly not declared/created yet

$BMS_Tab = "Hello world"

~~~~~~~~~~~~~~~~~~~~~~~~^

I:\pdp_Projekt.au3 - 0 error(s), 1 warning(s)

->09:45:45 AU3Check ended.rc:1

;---Win2K---

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->09:45:01 AU3Check ended.rc:1

thanks,

Hermann

Share this post


Link to post
Share on other sites

You have to declare it in the global/local/dim scope...

;---test AU3Check and Win2K
; AutoIt Version: 3.2.8.1

Opt("MustDeclareVars", 1); 1=require pre-declare, 0=no
;Global $BMS_Tab;results in a warning from AU3Check

Dim $BMS_Tab = "Hello world"
MsgBox(0,"AU3Check & Win2K", $BMS_Tab)

Exit;---test AU3Check and Win2K

Share this post


Link to post
Share on other sites

Hi Bert,

Thanks but apparently I didn't make it clear, sorry about.

AU3Check produces different hints depending on the OS in use (checked with WinXP SP2 and Win2K SP4).

With AU3Check AND Win2K there are no line numbers to search the error or warning in the scipt.

thanks

Hermann

Share this post


Link to post
Share on other sites

@Hermann,

There should be no difference between running it on different systems....

Please show the SciTE output pane information for both systems to see if there's anything wrong ....

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Hi Jos,

This is the complete output from Scite, like in my first message where I showed only the output from AU3Check.

;---WinXP---

>"F:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "I:\pdp_Projekt.au3"

+>13:29:49 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:F:\Program Files\AutoIt3

I:\pdp_Projekt.au3(7,25) : WARNING: $BMS_Tab possibly not declared/created yet

$BMS_Tab = "Hello world"

~~~~~~~~~~~~~~~~~~~~~~~~^

I:\pdp_Projekt.au3 - 0 error(s), 1 warning(s)

->13:29:49 AU3Check ended.rc:1

+>13:29:49 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.451

;---Win2K---

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\pdp_Projekt.au3"

+>13:30:47 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->13:30:47 AU3Check ended.rc:1

+>13:30:47 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.805

And an additional note, after a reboot the Win2K system shows occasionally the correct form once, but then again not everytime.

Of course I removed the variable on purpose to produce the warning, the same would be true for an error, no hints under Win2K.

Thanks much,

Hermann

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Hi Jos,

This is the complete output from Scite, like in my first message where I showed only the output from AU3Check.

;---WinXP---

>"F:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "I:\pdp_Projekt.au3"

+>13:29:49 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:F:\Program Files\AutoIt3

I:\pdp_Projekt.au3(7,25) : WARNING: $BMS_Tab possibly not declared/created yet

$BMS_Tab = "Hello world"

~~~~~~~~~~~~~~~~~~~~~~~~^

I:\pdp_Projekt.au3 - 0 error(s), 1 warning(s)

->13:29:49 AU3Check ended.rc:1

+>13:29:49 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.451

;---Win2K---

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\pdp_Projekt.au3"

+>13:30:47 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->13:30:47 AU3Check ended.rc:1

+>13:30:47 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.805

And an additional note, after a reboot the Win2K system shows occasionally the correct form once, but then again not everytime.

Of course I removed the variable on purpose to produce the warning, the same would be true for an error, no hints under Win2K.

Thanks much,

Hermann

I can see that the returncode is captured correctly (rc=1) but it just doesn't capture the STDOUT stream from the AU3CHECK program... mmm :)

Just tried it in a VMware win2k server instance and couldn;t get it to go wrong at all yet. It always shows the errors generated by au3check.

Not sure what to check next ...

test script used:

$t = $a
$A = 1
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Hi Jos,

Bad news ... but then I run your test on both computers, the very old one with Win2K and always it fails.

Next I tried it on the other one with WinXP and it fails one in ten times - all I have to do is to run the "SyntaxCheckProd" fast(!) enough several times in a row.

>"F:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "I:\pdp_Projekt.au3"

+>16:38:07 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:F:\Program Files\AutoIt3

->16:38:07 AU3Check ended.rc:1

+>16:38:07 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.335

Looks like a timing issue to me.

And by the way I noticed this behavior first on another computer from a college, they are still an Win2K for another year.

Thanks for looking into it, much appreciated!

Hermann

Share this post


Link to post
Share on other sites

I have been able to replicate the problem using and Networkshare. It indeed looks like its a timing issue.

Made a change and cannot get it to go wrong anymore.

Could you test this version for me to see if your problem is also solved with this version ?

http://www.autoitscript.com/autoit3/scite/...oIt3Wrapper.zip

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Hello Jos

Sorry to say but the original problem on the Win2K box is still there:

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\t.au3"

+>19:02:33 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->19:02:33 AU3Check ended.rc:1

+>19:02:33 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.855

Only on the WinXP computer the 1 in 10 or 20 misbehavior is gone with the new files.

Anything else to try?

And a big thank you,

Hermann

Share this post


Link to post
Share on other sites

Hello Jos

Sorry to say but the original problem on the Win2K box is still there:

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\t.au3"

+>19:02:33 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

->19:02:33 AU3Check ended.rc:1

+>19:02:33 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.855

Only on the WinXP computer the 1 in 10 or 20 misbehavior is gone with the new files.

Anything else to try?

And a big thank you,

Hermann

What time did you download or does the file have ?

I re uploaded a new version with a timestamp of 6.52PM CET (20 minutes ago) that has another change in it ..

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Hi Jos,

Your second upload did the trick, it works now corretly with Win2K:

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\t.au3"

+>20:36:43 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

J:\t.au3(1,8) : WARNING: $a: possibly used before declaration.

$t = $a

~~~~~~~^

J:\t.au3 - 0 error(s), 1 warning(s)

->20:36:43 AU3Check ended.rc:1

+>20:36:43 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.810

Tomorrow should have the possibility to let my colleges check this mod on other Win2K computers.

Thanks for your assistance, much appreciated!

Hermann

Share this post


Link to post
Share on other sites

Hi Jos,

Your second upload did the trick, it works now corretly with Win2K:

>"J:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /prod /AU3Check /in "J:\t.au3"

+>20:36:43 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:J:\AutoIt3

J:\t.au3(1,8) : WARNING: $a: possibly used before declaration.

$t = $a

~~~~~~~^

J:\t.au3 - 0 error(s), 1 warning(s)

->20:36:43 AU3Check ended.rc:1

+>20:36:43 AutoIt3Wrapper Finished

>Exit code: 0 Time: 0.810

Tomorrow should have the possibility to let my colleges check this mod on other Win2K computers.

Thanks for your assistance, much appreciated!

Hermann

Great... thanks for testing.

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

Great... thanks for testing.

<_<

I am having a similar problem. When I attempt to run an erroneous script through SciTE I get the following:

"

>"[...]\AutoIt stuff\scratchpad.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

+>12:03:30 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3

!>12:03:31 AU3Check ended.rc:2

>Running:(3.2.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\LipschuM\Desktop\AutoIt stuff\scratchpad.au3"

->12:03:35 AutoIT3.exe ended.rc:1

+>12:03:37 AutoIt3Wrapper Finished

>Exit code: 1 Time: 6.809

"

Without knowing what/where the error occurs. However, when I run from the shell, I get the following error box:

"

Line 14( File "[...]\Desktop\Autoit stuff\scratchpad.au3"):

ElseIf $_Vsteps <=14 And $_Vsteps => - Then

ElseIf ^ERROR

Error: Error in expression

"

I can/will figure out the error in the script, but I am more concerned that I *don't* see the error when I try to run using "F5" from within the editor. I would think the operations should be the same?

Thanks

Share this post


Link to post
Share on other sites

I am having a similar problem. When I attempt to run an erroneous script through SciTE I get the following:

"

>"[...]\AutoIt stuff\scratchpad.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams

+>12:03:30 Starting AutoIt3Wrapper v.1.9.3

>Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3

!>12:03:31 AU3Check ended.rc:2

>Running:(3.2.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\LipschuM\Desktop\AutoIt stuff\scratchpad.au3"

->12:03:35 AutoIT3.exe ended.rc:1

+>12:03:37 AutoIt3Wrapper Finished

>Exit code: 1 Time: 6.809

"

Without knowing what/where the error occurs. However, when I run from the shell, I get the following error box:

"

Line 14( File "[...]\Desktop\Autoit stuff\scratchpad.au3"):

ElseIf $_Vsteps <=14 And $_Vsteps => - Then

ElseIf ^ERROR

Error: Error in expression

"

I can/will figure out the error in the script, but I am more concerned that I *don't* see the error when I try to run using "F5" from within the editor. I would think the operations should be the same?

Thanks

I see you're running 1.9.3 ... in post number 10 there is a link http://www.autoitscript.com/forum/index.ph...st&p=418365 ... I just downloaded it, it's 1.9.3.5 ... might try that and see if it fixes the issue.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I haven't included this fix in the official installer yet... so do as Smoke_N suggests and download the seperate available AutoIt3Wrapper.zip file which does contain the latest version. http://www.autoitscript.com/cgi-bin/getfil...iTE4AutoIt3.zip

<_<


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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

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