Craig
01/26/2022, 10:25 AM@KotlinScript. Works great, using BasicJvmScriptingHost inside a command line app. I would like a good developer experience too, so I've started an IDEA plugin, using ScriptDefinitionsProvider which is also sort of working. Is it possible to run and debug this script in IDEA? I have no idea how to go about supplying the implicit receiver objects required by the script context. Also, is it possible to supply javadocs to the configuration? ScriptDefinitionsProvider.getDefinitionsClassPath suggests not. Thanks.ilya.chernikov
01/27/2022, 3:10 PMkotlin runner has built-in support for it.)
You can supply the implicit receiver via the evaluation configuration callback refineConfigurationBeforeEvaluate, and attach the evaluation configuration with the callback via the @KotlinScript annotation too. This way it is possible to make it work with practically any standard host.
But this will not solve the first problem, unfortunately.ilya.chernikov
01/31/2022, 7:21 PM