Join Slack
Communities
Powered by
hey, trying to dynamically evaluate scripts on a K...
# scripting
m
mplacona
04/14/2018, 9:35 PM
hey, trying to dynamically evaluate scripts on a Kotlin file and doing:
Copy code
val engine = ScriptEngineManager().getEngineByExtension("kts")
Always returns
null
. Anyone has any ideas why?
c
Czar
04/14/2018, 9:41 PM
Have you added the necessary dependencies? embedded compiler or scripting support, if I'm not mistaken.
Czar
04/14/2018, 9:41 PM
https://kotlinlang.slack.com/archives/C0BT46EL8/p1523126882000085?thread_ts=1523111943.000003&cid=C0BT46EL8
m
mplacona
04/14/2018, 9:42 PM
Never mind.. last bit of text on this answer is what it was
https://stackoverflow.com/a/44009876/279395
👍 1
2
Views
Open in Slack
Previous
Next