Quick-fix adds import instead of method generation intention

Answered

Hi, I have next problem: there is a  line of Kotlin code text("Some text") and this method is marked as unresolved reference - that's fine. I want to generate stub implementation for method text() by shortcut Alt+Enter but instead of stub generation import of java.awt.SystemColor.text happens silently. But I expected to see the list of options like ['Create method', 'Import' etc]. Is it a bug or something wrong with my configuration? I'm using IntelliJ Idea 2017.2 EAP with Keymap MacOS X 10.5+ and keymap for import optimizing is Ctrl+Alt+O. Could you please help with this problem? BTW, I've tried to do the same in Java and seems that in Java Quick-fix intentions are being displayed properly.

0
1 comment

Please use https://discuss.kotlinlang.org/ for Kotlin specific questions/problems or file the bugs directly at https://youtrack.jetbrains.com/issues/KT.

0

Please sign in to leave a comment.