Code completion popup is closing immediately in 2019.2 (ultimate)
Answered
When the code completion popup is triggered vie ctrl space the popup closes itself immediately making it impossible to choose a completion.
I have found no option for a time out or similar in the settings.
Doublechecked against 2019.1 where it works as expected.
Please sign in to leave a comment.
Hello,
Please check this case and follow the troubleshooting steps described inside.
If it does not help, please report a bug at https://youtrack.jetbrains.com/issues/IDEA with idea.log attached (https://intellij-support.jetbrains.com/hc/articles/207241085) so that we can investigate further. Thank you.
Wow that case is about 4 years old. As it worked in the previous version and the completion engine was changed in the current one I guess there is a regression or something is broken here. So I will file an issue within the bugtracker.
Thank you Stephan.
Please share the issue link once it is submitted.
Great, now that I wanted to reproduce and gather the logs for the issue it seems to work. Maybe my PC did not like the Friday and played silly games with me ;)
Back to serious: I have no clue why but it works now somehow.
I stumbled upon a solution that worked for me in RubyMine 2020.2 Mac OSX. The culprit was:
Seems like the reparse is kicking out the popup!
For me this was the solution: I ran it from the console so I could see any errors. Then I saw:
A quick google let me to android - Stub index points to a file without PSI: com.intellij.openapi.fileTypes.UnknownFileType@23713b43 - Stack Overflow where the solution is File -> Invalidate Caches/Restart.
That worked for me.
There is *entirely* too much magic in Intellij and the java world.