Author Topic: Script updates require a restart  (Read 4785 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1374
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Script updates require a restart
« 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?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Script updates require a restart
« Reply #1 on: April 07, 2017, 08:27:34 am »
There's a button on the scripting window to reload.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Script updates require a restart
« Reply #2 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

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1374
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Script updates require a restart
« Reply #3 on: April 07, 2017, 04:43:44 pm »
I confirm that the Reload button doesn't always work (it didn't yesterday)
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Screwtape

  • EA User
  • **
  • Posts: 93
  • Karma: +4/-0
    • View Profile
Re: Script updates require a restart
« Reply #4 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.
Screwtape