[2.0.5] IDE: import sub as su and from sub import * need IDE restart on changes in sub --- workaround

Bug #2015283 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

follow up on GitHub: https://github.com/RaiMan/SikuliX1/issues/576

------------------- workaround
only use
import sub

-------------------------------------

I use IDE version 2.0.5, and I'm working with two files:

-index.sikuli
-utils.sikuli

Imagining that I make a change in the utils.sikuli file, for example in a print("123") to print("234"), and after saving the file, when I run it, it continues to print "123". I need to restart the IDE for it to get it to print the "234".

I've been investigating and I'm not even able to find a solution, from for example setting sikuli.properties to not keeping the cache, or using the reload method.

Sorry if this is a dumb question, and my poor English

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.6
description: updated
Revision history for this message
Chetan (cshamdas) wrote :

one way that it worked for me as workaround was to use
import util
reload(util)

util.py is the file

Revision history for this message
Rene (rezzz81) wrote :

Yep, like Chetan said,

use the reload.

import util
reload(util)
#if you want to call functions in util without mentioning util use an import * as well
from util import *

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.