https://kotlinlang.org logo
#intellij
Title
# intellij
d

Daniel Pitts

12/03/2023, 11:25 PM
I'm trying to run a custom kotlin script from IntelliJ, and I'm seeing this error message:
Copy code
warning: default scripting plugin is disabled: The provided plugin org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar is not compatible with this version of compiler
error: unable to evaluate script, no scripting plugin loaded
I'm using Kotlin 1.9.21, but it appears that its trying to use 1.9.0. Complete command line in 🧵
youtrack 1
Untitled
I don't know if its a bug with the plugin, the kotlin compiler, or my project set up, but it seems that the
ScriptingCompilerConfigurationComponentRegistrar
class is expecting a class of type
<http://org.jetbrains.kotlin.com|org.jetbrains.kotlin.com>.intellij.mock.MockProject
, but the object is from the
app-client.jar
, and is of type
com.intellij.mock.MockProject
. This seems like a mixed up shaded jar?
a

Anton Mefodichev

12/06/2023, 8:34 AM
There are several bugs with a similar error: https://youtrack.jetbrains.com/issue/KTIJ-16451 https://youtrack.jetbrains.com/issue/KTIJ-22263/error-unable-to-evaluate-script-no-scripting-plugin-loaded I think in general, it is better to create a separate ticket to KTIJ project regarding the issue with the reproduction steps. Thank you!
d

Daniel Pitts

12/06/2023, 2:51 PM
Thanks! I’ll do that.
34 Views