Output of Sikulix IDE on console

Asked by Guillermo on 2021-06-03

Hi,
I am trying to get the output of Sikulix IDE on the console when I run a sikuli script on cmd as:
>> sikulixide.jar -r test.sikuli

In said test.sikuli file, there are several python's `print("this")`, which do show whe running the IDE by itself.
However, when running aforementioned line, there is no output on cmd and when the script finishes, I am taken back to the windows prompt.

I have tried several different arguments (-v, -d, -i), but to no avail.

Is there a way of getting this done?
Thank you,

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1
Revision history for this message
RaiMan (raimund-hocke) said :
#2

SikuliX version?

Revision history for this message
Guillermo (ggonmar) said :
#3

Thank you for your prompt responses!

Masuo:
I've seen that answer and has led me to some new insights:
if I run
>> java -jar D:\ pathToSikuli\sikulixide-2.0.5.jar -f D:\ pathToSikuli\LogFiles\SikuliLog.txt -r D:\ pathToSikuli\Start.sikuli
I do see the log on cmd. However, if I run
>> D:\ pathToSikuli\sikulixide-2.0.5.jar -f D:\ pathToSikuli\LogFiles\SikuliLog.txt -r D:\ pathToSikuli\Start.sikuli
I do not see anything.... how does that make any sense?

Raiman:
Sorry I didn't specify initially, I'm using SikuliX IDE 2.0.5.

Revision history for this message
RaiMan (raimund-hocke) said :
#4

>>> D:\ pathToSikuli\sikulixide-2.0.5.jar

on command line starts the IDE as if you would have double clicked it. It does not know about the fact, that stdout should go to cmd window. It simply does not show the IDE window with the message area, because of the -r parameter.

hence:
java -jar D:\ pathToSikuli\sikulixide-2.0.5.jar -f D:\ pat.......

is the correct way, to run scripts from command line and see the output there.

Can you help with this problem?

Provide an answer of your own, or ask Guillermo for more information if necessary.

To post a message you must log in.