structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
232 stars 28 forks source link

Issues with !script #33

Closed ntrp closed 1 year ago

ntrp commented 1 year ago

I am not able to use scripts in structurizr lite. I tried inline, file, kts, kt, js.. always get the same error:

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider kotlin.script.experimental.jsr223.KotlinJsr223DefaultScriptEngineFactory could not be instantiated
2023-02-14 16:25:56.721 ERROR 1 --- [nio-8080-exec-3] s.l.c.w.FileSystemWorkspaceComponentImpl : com.structurizr.dsl.StructurizrDslParserException: Error running inline script, caused by java.lang.RuntimeException: Could not load a scripting engine for extension "kts" at line 13: }

This is the version I'm using.

2023-02-14 16:25:21.727  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     :  - build: 2948 (2023-02-14T07:59:41Z
2023-02-14 16:25:21.727  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     :  - structurizr-java: v1.19.0
2023-02-14 16:25:21.734  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     :  - structurizr-dsl: v1.25.0
2023-02-14 16:25:21.735  INFO 1 --- [           main] com.structurizr.lite.StructurizrLite     :  - structurizr-documentation: v1.1.1

Did I misunderstand something?

FlorentinV-Decathlon commented 1 year ago

Hello, I am facing the same problem.

java.lang.RuntimeException: Could not load a scripting engine for extension "kts"

Here are the versions I use:

com.structurizr.lite.StructurizrLite     :  - build: 3078 (2023-06-19T15:14:49Z
com.structurizr.lite.StructurizrLite     :  - structurizr-java: v1.24.1
com.structurizr.lite.StructurizrLite     :  - structurizr-dsl: v1.30.1
com.structurizr.lite.StructurizrLite     :  - structurizr-import: v1.4.1

It seems that problem has been fixed some time ago, but would you have an idea to unblock me please?

simonbrowndotje commented 1 year ago

It works for me with the current Docker image - please open a new issue with more details about your environment, including an example DSL file.