exit() Function gives Runtime Error from Command Line

Bug #577220 reported by Stefani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Undecided
Unassigned

Bug Description

The exit() function introduced in Sikuli v0.10 is causing a runtime error when running the command line sikuli-ide.bat.

When exit() is executed from the (while running from command line), a runtime error is given in a popup window:
"Runtime Error when running debug_exit.skl
Traceback (most recent call last):
  File "C:\...\debug_exit.py, line 7, in <module>
    exit(1)
  File "C:\....\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 136, in exit
SystemExit: 1"

The popup error is not given when running the script from the Sikuli IDE.
"[sikuli] Exited with code 1" is given in the Sikuli IDE message window.

Does not matter if I use exit(), exit(1), etc.

Sample Script:
click("1273269732306.png")
sleep(2)
type('R')
sleep(2)
type('notepad.exe')
type(Key.ENTER)
exit(1)

Sikuli 0.10
Windows XP, SP3
English

Revision history for this message
Stefani (stefani-home) wrote :

Any comments on this one from the developers or the community? Has anyone been able to reproduce this? Thanks.

Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

Confirmed. This bug will be fixed in the next release.

Changed in sikuli:
status: New → In Progress
Changed in sikuli:
status: In Progress → Fix Committed
Changed in sikuli:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.