Exit() closes IDE --- be sure to save before run --- should be done automatically (option)

Bug #885975 reported by Arion Sionnodel
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

Bug Description

Whenever I run a script that uses Exit() to stop the script, the Sikuli IDE shuts down as well.

Revision history for this message
RaiMan (raimund-hocke) wrote :

what system?

what Java version?

what Sikuli version?

how do you start the IDE?

Revision history for this message
german egg (principito) wrote :

... the same thing happens to me.

my system is "XP professional sp3".

i use the "SIKULI-RC3" version.

i hit the "RUN"-button within the sikuli-ide.

(JRE 6.5)

the problem is not only when i use exit() within the script....

but also when i interrupt the running script with ALT+SHIFT+C something REALLY STRANGE happens:

it LOOKS like the script is interrupted: the sikuli ide-window opens ... but in the background the script is STILL RUNNING!

the mouse STILL moves automatically over the screen and tries to click on things. ...?!?

(the only way to stop the script seems to kill the jawa-task with windows... but then i cannot go back to editing the script in the ide. because both the running script and the sikuli-ide are closed.)

any suggestions for me?

Revision history for this message
RaiMan (raimund-hocke) wrote :

@ Deutsches Ei ;-)
Since it is rather easy, to "implement" something, that makes it necessary to abort the script:
ALWAYS save the script, before running it again, after having made changes.

If you abort a script running in the IDE using alt-shift-c, it is a known problem, that this might not work at all or that it works, but leaves the IDE in an unstable state.
In either case, it is necessary to abort the underlying java process.
I usually restart the IDE after having used alt-shift-c

If you face these problems: Edit you script in the IDE, but run it from command line in parallel (this has the goody, that you are forced to save the script after changes ;-)

--- using exit()
using exit() should not stop the IDE.
- make sure you use the latest version r930

Paste a snippet, where you have this problem.

RaiMan (raimund-hocke)
summary: - Exit() closes IDE
+ Exit() closes IDE --- be sure to save before run
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
RaiMan (raimund-hocke)
tags: added: scriptrun
removed: gui swing
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Critical
summary: - Exit() closes IDE --- be sure to save before run
+ Exit() closes IDE --- be sure to save before run --- should be done
+ automatically (option)
tags: added: options
Revision history for this message
Perkins (lperkins) wrote :

In 1.0.0 exit from the main loop functions properly, but exit from a hotkey or observe handler still closes the IDE. Do you want a new bug report?

RaiMan (raimund-hocke)
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.