Hey there! I'm trying this super simple and somewh...
# scripting
t
Hey there! I'm trying this super simple and somewhat janky setup to test scripting and I'm getting the following error after all script evaluations, even if the script only contains something like
println("foo")
. Here's the error:
Copy code
wrong number of arguments
ERROR
sp: null
e: java.lang.IllegalArgumentException: wrong number of arguments
null ; null
---
null
btw,
scriptResource
is just getting a resource from the calss loader, like this:
val scriptResource = ModuleScript::class.java.classLoader.getResource("scripts/test.kts")
Any idea what the issue might be?
I've fixed it yesterday. It was an issue with implicit receivers