Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: localhro2 on April 01, 2016, 07:06:24 am
-
I have a weird script issue that appears every now and then.
When I run the a JScript from a diagram it tries to run a different JScript in the same folder instead. This behavior continues until I restart EA. Then, the correct selected JScript will run normally for a while, but the problem will randomly start back up.
Thanks,
Sean
-
What do you mean by "the wrong"?
q.
-
So say I have three in diagram scripts A, B, & C. When I run Script A, Script B runs instead. Or When I run Script C, Script A runs instead. Totally random and the only way to fix it is to restart EA.
Any ideas?
-
You should contact Sparx support via mail / send a bug report (link bottom of this page).
q.
-
I've got the same problem, but with different EA versions.
Yesterday a colleague asked me about a scipt that was always working in a different way than expected in his EA V.13. I tried it on my pc and experienced the same. I called the script via context menu of a package in the project browser but EA always runs the script that is shown above (in the context menu) the one i wanted to run.
Restarting EA get's it to execute the right one again. We've tried EA V.13 V.14 and V.15 but with the same result.
Is this maybe an issue caused by calling a script from another? We use "!INC scriptfolder.scriptname" to call the one that shall be executed from inside anoter script.
-
I've written hundreds of scripts, but I never experienced this behavior.
I use VBScript though, so that might make a difference.
Geert
-
Hi Geert,
do you also call other scripts from within a script? At the moment, I think this could be a possible cause for the problem, because it has only happened until now, when we're not calling them directly.
-
Hi Geert,
do you also call other scripts from within a script? At the moment, I think this could be a possible cause for the problem, because it has only happened until now, when we're not calling them directly.
Yes, quit a lot even.
I have build a bit of a framework with a whole set of supporting scripts for all kind of stuff.
A typical script would of mine would include at least 30 other scripts (indirectly)
Geert
-
Weird, Similarly to Geert, I've written quite a few scripts using JScript and not experienced that sort of thing before.
Maybe share some details on your environment set up and versions might help.
Do let us know when you find the cause.