Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Guillaume on April 06, 2017, 09:59:09 pm

Title: Script updates require a restart
Post by: Guillaume on April 06, 2017, 09:59:09 pm
I noticed in some occasions that EA no longer takes into account updated VBScripts and runs a "cached" previous version of it.
This can happen when I often change a number of scripts, or when I often re-run Reference Data imports, containing my scripts.

It's only when EA is restarted that the right code is run.

Is there any way to prevent that?
Title: Re: Script updates require a restart
Post by: Eve on April 07, 2017, 08:27:34 am
There's a button on the scripting window to reload.
Title: Re: Script updates require a restart
Post by: Geert Bellekens on April 07, 2017, 04:02:06 pm
There's a button on the scripting window to reload.
That sometimes helps, but not always.

Geert
Title: Re: Script updates require a restart
Post by: Guillaume on April 07, 2017, 04:43:44 pm
I confirm that the Reload button doesn't always work (it didn't yesterday)
Title: Re: Script updates require a restart
Post by: Screwtape on April 20, 2017, 10:25:43 pm
This rang a bell, so I looked up my old topics.

I asked a similar question ages ago.

http://sparxsystems.com/forums/smf/index.php/topic,10832.msg148117.html#msg148117

The reply about killing the SScripter process seemed to work for me at the time, but I haven't had the problem recently.