Imported Module is retaining old fuction definition

Bug #1542474 reported by Jason
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Invalid
Undecided
Unassigned

Bug Description

An older version of an imported function definition is sometimes used after a user changes the definition of a function by removing passed in variables (ex: def appSync(X, Y) changed to appSync() .

Reproducible: Occasionally

Steps to reproduce:
1. Generate a new Sikuli Source folder: Module.sikuli
2. Define a function that requires parameters EX: appSync(X, Y) and save changes. NOTE: I included the import sikuli.... in the module
3. Import the module into another Sikuli script: I performed the following import(appSync)
4. Call function from imported module: Module.appSync("XXX", "YYY")
5. Save and execute.
6. Open Module.sikuli
7. Edit defined function appSync and remove parameters from function: appSync()
8. Edit Sikuli Script that imported the module and edit to remove parameter: Module.appSync()
9. Save and run script.

Observe that occasionally script will stop with the error: Module.appSync requires parameters (2 needed, 0 provided). I have closed and restarted Sikuli and the PC running Sikuli. Sometimes it works as expected but the next run it doesn't.

OS: Win8.1 Pro 64Bit
Version of Sikuli: 1.1.0 (2015-10-05_17:07) 20

Revision history for this message
RaiMan (raimund-hocke) wrote :
Changed in sikuli:
status: New → Invalid
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.