Kotlin REPL won't run
Answered
When I click on tools>kotlin>kotlin REPL, a message tells me that the modules aren't loaded. HUH? Yet when I check the plugins, there's a checkmark next to kotlin!
I uninstalled & reinstalled intellij hoping that would solve the problem. It didn't. Why is intellij complaining about missing modules?
Please sign in to leave a comment.
Could you please post a screenshot of the exact error message the REPL is giving you?
A window in the lower-right which states "Kotlin REPL configuration error; no modules were found".
Do you have a project open when you try to invoke the action? What kind of project is it?
No. I watched a YouTube video that explained how to use the kotlin REPL.
At this time the Kotlin REPL requires you to have a project open. You don't need to configure anything specific in the project; a Java project with the default settings will run just fine.
If you want to try Kotlin without configuring anything, you can use the online IDE at http://try.kotlinlang.org/
What worked for me is changing the project name. Earlier I had kept the project name with spaces("Hello Kotlin"). I removed the space and used camelCase(helloKotlin) and it worked. You can try without camel case as well. Just don't put space in the project name. Hope this helps.
Thank you Sachin Gotal this is work for me!