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!

0
2 comments

This is a bug, please file a ticket and attach log files (Help | Logs..) in our tracker:

https://youtrack.jetbrains.com/issues/KT

0
Avatar
Permanently deleted user

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!

0

Please sign in to leave a comment.