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?

0
7 comments

Could you please post a screenshot of the exact error message the REPL is giving you?

0
Avatar
Permanently deleted user

A window in the lower-right which states "Kotlin REPL configuration error; no modules were found".

0

Do you have a project open when you try to invoke the action? What kind of project is it?

0
Avatar
Permanently deleted user

No. I watched a YouTube video that explained how to use the kotlin REPL.

0

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/

0

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.

2

Thank you Sachin Gotal  this is work for me!

0

Please sign in to leave a comment.