Having trouble running a script on sikuli 1.0.1. on mac,

Asked by liv

Hi,

 I have been having multiple issues running sikuli 1.0.1 on mac 10.9.3.The script doesn't run. also there is no feature for unit test.

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
RaiMan (raimund-hocke) said :
#1

about unit test feature in IDE (which is no longer available, because of various bugs and limitations) see faq 1804

What exactly are the problems you have? what symptoms?
run the script with option -d 3, which creates more debugging output.

Revision history for this message
liv (livorio-villa) said :
#2

The problem that I'm having with sikuli is , I am unable to run a script. When ever I run the script, it just flickers when I select run. It doesn't give out an error message.

#On the side note I had version Sikuli X-1.0rc3 (r930) osx-10.6.dmg on my same Mac OSX 10.9.3 computer, and had several issues with the program. I had problems launching the software where the software would take several minutes to launch or it wouldn't launch at all.

Revision history for this message
liv (livorio-villa) said :
#3

Also opening a sikuli file that I didn't create, causes the software to shut down.

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

To get nearer to the problem (supposing, you are using the app)
- open a Terminal session
- enter:
java -jar /Applications/SikuliX-IDE.app/Contents/sikulix-ide.jar -d 3 -c

this should open the IDE.
Then do what you want until you get a problem.

In the Terminal window scan the output for error messages or other obvious problems.

If you do not understand, you might copy the complete output and send it silently with reference to this question to my mail at https://launchpad.net/~raimund-hocke

Revision history for this message
liv (livorio-villa) said :
#5

hey RaiMan,

i in putted the line you recommended me (java -jar /Applications/SikuliX-IDE.app/Contents/sikulix-ide.jar -d 3 -c). Before I in putted the command you recommended i didn't receive an error message with in the script. I in putted the command within one of my basic scripts and it resulted in:
 an[error] script [ test99 ] stopped with error in line 1 at column 68
[error] SyntaxError ( "no viable alternative at input '3'", )

Here is the script I was runningjava -jar /Applications/SikuliX-IDE.app/Contents/sikulix-ide.jar -d 3 -c
:

                exists(Pattern("1404336638173.png").similar(0.85).targetOffset(1,2))
                click(Pattern("1404336638173.png").similar(0.85).targetOffset(1,2))
                type("http://www.fox.co.uk/"+Key.ENTER)
Notes: what the pattern png patterns are screen shots of the browser icon

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

java -jar /Applications/SikuliX-IDE.app/Contents/sikulix-ide.jar -d 3 -c

was meant to be entered on a command line (Terminal session)

to open the IDE in a more verbose mode about possible errors.

The output is seen in the Terminal window and not in the IDE's message area.

Revision history for this message
liv (livorio-villa) said :
#7

Thanks Raiman that helped out. i still have one issue; Whenever i load a sikuli file that i didnt create causes my software to shut down immediately.Whats happening is that a co-worker has sent me his script and once I open that file it causes the software to shut down.

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

Any non-ASCII characters in the filename some-name.sikuli?

What is a typical content of such a co-worker-file?

Revision history for this message
liv (livorio-villa) said :
#9

Hey Raiman,

No there is no non-ASCII characters in the file name.(FP_Master 2.sikuli) is the file name. For the content of the file it is a sikuli source file type and to be exact the file contains, has the same commands within the scripts except that the file i want to open has "def" commands, and i been having a little trouble with def but been working around.

Can you help with this problem?

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

To post a message you must log in.