IDE Scripting Console / Kotlin -> NullPointerException
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.ui.Messages
val x = ProjectManager.getInstance()
Messages.showInfoMessage("Hi", "Hi")
When running the above code in Tools -> IDE Scripting console -> Kotlin,
The above code throws a NullPointerException
What am I doing wrong / how do we fix this?///
Thanks!
Please sign in to leave a comment.
This is a bug, please file a ticket and attach log files (Help | Logs..) in our tracker:
https://youtrack.jetbrains.com/issues/KT
https://youtrack.jetbrains.com/issue/KT-25606
Please let me know what I can do to help resolve this. For my needs, "Reprogramming IDE on the fly" is the only advantage Emacs has over IDEA -- and I'll be able to switch completely once I can reprogram IDEA in Kotlin on the fly.
Thanks!