archimatetool / archi-scripting-plugin

jArchi - Scripting for Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
122 stars 33 forks source link

Remove Nashorn or bundle it? #110

Closed Phillipus closed 1 year ago

Phillipus commented 1 year ago

However there is a stand-alone version of Nashorn that we could bundle with jArchi if required.

But does anyone still use Nashorn given that GraalVM is superior?

smileham commented 1 year ago

I have an issue in one of my scripts "Export to Markdown" which fails in GraalVM with the following error:

Script Error: javax.script.ScriptException: org.graalvm.polyglot.PolyglotException: TypeError: escape.replaceAll is not a function

However, this works fine in Nashorn...

It's something that I need to debug, but haven't found the time to look at yet...

Phillipus commented 1 year ago

That script will work with the coming version of jArchi 1.3 because it will have latest GraalVM.

smileham commented 1 year ago

Awesome! I look forward to the update :D

Phillipus commented 1 year ago

I've created a separate Nashorn plug-in for jArchi. This will be made available as an optional download after Archi 5 is released.