Unable to run Kotlin in intellij IDEA
已回答
Hello,
I am unable to run Kotlin in intellij. It was working initially, but suddenly stopped working. Project builds successfully but just doesn't run. I have tried the "edit configuration", but I can't select the .kt file in the "Main Class" space. Java classes seem to run, just not kotlin. Help please. I have stuck here for 6 hours now.

请先登录再写评论。
Hi. Are there any error messages? Could you please provide idea.log and build.log (Help | Show log...)?
Thanks Petr, I had to reinstall intellij to get it to start working again. The logs I can't get them again
I, have same problem. Log:
Martin Sveda
What version of the IDE do you use?
How was the project created?
How do you run the app? Are you able to run it by clicking on the green arrow icon next to the function declaration?
Did you create this Kotlin file manually?
Hi,
version: IntelliJ IDEA 2021.2, Build #IU-212.4746.92
This project was created by adding Kotlin to Java project. But same result I have, when I try by: New project \ Kotlin (Project template: Application).
There is no green arrow icon not for function neither for class.
This file was created manually by Right click / Kotlin Class/File and type className
Please, create an issue and attach all logs and your project, if possible.