Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with !script #33

Closed
ntrp opened this issue Feb 14, 2023 · 2 comments
Closed

Issues with !script #33

ntrp opened this issue Feb 14, 2023 · 2 comments

Comments

@ntrp
Copy link

ntrp commented Feb 14, 2023

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?

@simonbrowndotje simonbrowndotje transferred this issue from structurizr/dsl Feb 14, 2023
@FlorentinV-Decathlon
Copy link

FlorentinV-Decathlon commented Jun 20, 2023

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
Copy link
Contributor

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.

@structurizr structurizr locked as resolved and limited conversation to collaborators Jun 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants