Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: steverumsby on September 07, 2022, 06:46:03 pm
-
I have some diagram scripts (Javascript) that work quite nicely and (now) quickly enough that I thought it would be useful to convert them to scriptlets (EA 16). However, when I do that I get errors on the !INC lines of my code. Is it not possible to include library files into a scriplet? If true, that makes them a whole lot less useful. Or am I doing something wrong?
Steve.
-
Reply from Sparx support - no you can't, but we'll record it as a feature request for future consideration.
Just in case anybody else trips over this...
Steve.
-
In 16.1.1628 !INC can be used in scriptlets but I found that the scriptlet is not stopped at the end of the script, which causes an error the subsequent times the scriptlet is run
-
In 16.1.1628 !INC can be used in scriptlets but I found that the scriptlet is not stopped at the end of the script, which causes an error the subsequent times the scriptlet is run
what do you mean by "is not stopped at the end of the script"?
Geert
-
In 16.1.1628 !INC can be used in scriptlets but I found that the scriptlet is not stopped at the end of the script, which causes an error the subsequent times the scriptlet is run
I've been using !INC in scriptlets since it became possible and I've never noticed this problem. What do you mean by "the scriptlet is not stopped"? What are the symptoms?
-
In the context menu of the scriplet the run option is no longer enabled.
And the second time I run it (manually or reload diagram ) it crashes EA, sometimes EA closes completely
-
In 16.1.1628 !INC can be used in scriptlets but I found that the scriptlet is not stopped at the end of the script, which causes an error the subsequent times the scriptlet is run
I can confirm that the script in the scriptlet is not stopped properly.
This is unrelated to !INC as I don't have that in my script.
After opening a diagram the script executed and the "Stop Script" context menu command remains active.
When clicked it stops the script and gets disabled (grayed).
If I click "Run Scriptlets" before stopping the script manually I'm getting an error like e.g. "redeclaration of let " which is to be expected in case of a still running script.
Looks the scriptlets feature needs some rework :-[
-
Just FYI:
Bug report is out (#24077893)
Let's see what they have to say...
-
Just FYI:
Bug report is out (#24077893)
Let's see what they have to say...
Update:
The issue has been confirmed and will be investigated further by our development team.
;)
-
In 16.1.1628 !INC can be used in scriptlets but I found that the scriptlet is not stopped at the end of the script, which causes an error the subsequent times the scriptlet is run
what do you mean by "is not stopped at the end of the script"?
Geert
I mean that EA thinks the script is still running