-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sikuli Fix #463,#468 #472
Sikuli Fix #463,#468 #472
Conversation
A very simple refresh command you could simply use the dragonflies playback action. Basically tying together the two commands "launch sick server" and "terminate sick server". Example from dragonfly import Playback
'minimize':
R(Playback([(["minimize", "window"], 0.0)]), rdescript="Minimize Window"), Thus far everything has worked as expected so great work! |
I just tried this |
So this implementation seems to work on my end but let me know what you think. The pause in between the functions of ensures that there is enough time between between terminating and starting the server.
|
I think two seconds isn't long enough to realize that the server isn't terminating properly and that you have to press a key before the new server is started. This is especially true if you haven't kept in mind that this might happen and are suprised by this. I think it should be at least |
Sounds good, I'll see if I can find a more reliable method to terminate the server as it seems to be the crux of the issue. |
I'll add rdescripts and merge for now and we can leave it as is until another pull request. |
added rdescript to Sikulix commands
Fix #463 by reloading
sikuli.py
and #468 whose root cause was that the grammar for controlling Sikuli was overriden instead of extended. In the process of the fix I restructuredsikuli.py
a bit. What's not so elegant is that when a profile change occurs the old grammar isn't unloaded. However, at the moment I can't think of real disadvantages this could constitute in practice. I couldn't make therefresh sick you Lee
command work, but replaced it byterminate sick server
andlaunch sick server
. It's only one more command and achieves the same thing.Note that this doesn't fix #464. As described in this issue: Whenever you expect something to happen which isn't happening (e.g. the Sikuli server window stays black or doesn't change, a command isn't executed which should work) focus the Sikuli server window and press a key. Don't get confused by the error messages wich appear in both windows.
I tested this PR by doing the following:
launch sick IDE
terminate sick server
launch sick server