X-1.0rc2: Windows: No messages running Sikuli-IDE.exe from command line --- use Sikuli-IDE.bat

Asked by Paul Bellamy

When I launch Sikuli from the command line in Windows, I never get any error messages, either as pop-up Windows or as output to the command line. I've tried this on a few different Windows machines, some XP, some Win7.

My command looks more or less like this, constructed as described in the documentation:

C:\Progam Files\Sikuli X\sikuli-ide.exe -r -s "C:\foo\myscript.sikuli" arg1 arg2

Whether or not the -s flag is present doesn't seem to matter. Ideally, the errors would print in the command line window, but really just getting any error feedback at all would be great. Otherwise the script runs as expected. However if the script encounters an error it just stops and I am left wondering why.

Am I doing something wrong? Is this a bug?

Thank you,

Paul

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Bellamy
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I confirm, that using sikuli-ide.exe runs totally without any messages on command line.

So if you run a script this way, you have to use it without the -s option, so you get the popup, when an error stops the script.

and the usage is:
C:\Progam Files\Sikuli X\sikuli-ide.exe -r "C:\foo\myscript.sikuli" --args arg1 arg2

mind the grouping of the parameters:
Sikuli-IDE [-h] [-r <sikuli-file>] [-s] [-t <sikuli-test-case>] [--args <arguments>]

If you want to see output on the commandline, use Sikuli-IDE.bat instead of Sikuli-IDE.exe.

Revision history for this message
Paul Bellamy (pbellamy) said :
#2

Brilliant, a huge help as per usual.