sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #02056
[Bug 750223] Re: Bug fixes in imported scripts not recognized by IDE
*** This bug is a duplicate of bug 704981 ***
https://bugs.launchpad.net/bugs/704981
Sorry for the effort :-(
It is known, that the IDE does not reset at rerun of a script.
An easy workaround:
If you are in the development phase, just make your editing in the IDE, save your scripts and have a Terminal session open in parallel, where you run your script from command line. This starts from scratch every time, with the disadvantage of the 3-5 seconds startup latency.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/750223
Title:
Bug fixes in imported scripts not recognized by IDE
Status in Sikuli:
New
Bug description:
I have implemented a script hierarchy structure of scripts with a
master script that imports a set of slave-scripts. Each slave-script
has three methods, called A(),B() and C(). The master-script uses a
simple for-loop to execute A(), B() and C() in each slave-script
iteratively. Hence slave-script 1 A() is run first, then slave-script
1 B() and so on until slave-script N C() is finally executed.
Code snippet of the master-script:
<the necessary code to do imports>
import script1
import script2
scriptList = (script1,script2)
#slave-script execution loop
try:
for script in scriptList:
script.A()
script.B()
script.C()
except:
print("Error")
The problem I have encountered is that if one of the slave-scripts
casts an exception, due to anything really, like a missing colon or a
missing image, and you fix the problem in the slave-script so that it
works correctly, the master script still uses the old broken
implementation of the slave-script. Hence, fixing a broken slave-
script has no effect, the entire script hierarchy is still broken. The
only solution I have found so far is to restart Sikuli with the
corrected slave-scripts and re-run the master-script. It seems that
the IDE is cashing the old broken slave-scripts and doesn't recognize
that they have been changed (fixed).
1. Sikuli version: Sikuli X-1.0rc2
2. OS: Mac OS 10.6.4 64-bit
3. Produce the bug: See above description
4. Locate the bug: See above description
References