Videos
I tried NetBeans, and discovered that its Kotlin plugin has been abandoned for years. Then I tried Eclipse, and it did not work at all. I used the latest Eclipse and installed the Kotlin plugin using the in-built software installation feature, but creating a new Kotlin project threw an exception, and manually creating a .kt file also threw an exception. So, unless you are those kind of geniuses who can write code using Notepad, you are pretty much vendor-locked in IntelliJ?
Even in 2019.1.3 that error is there .
A solution that always works for me is :
Build menu => Rebuild Project
Tested with JDK 12.0.1
That should be fixed though by IntelliJ team as soon as possible as more and more Java projects are passing to JDK 11 ++
I had the same problem. I worked in a pure Java project managed with Maven. Till some days ago I applied the solution "rebuild" the project, but sometimes the error came back again.
After more investigation, I found that after disable "Enable migration detection" menu, the problem disappears.
I hope this helps.