Code Completion not showing up
Answered
Hi,
Since I've upgraded to 2017.1 code completion is not working anymore (ctrl + space). This is a problem on all the jetbrains products I've used since the upgrade. Though the help shows up when the cursor is between brackets (e.g. System.out.println() it shows what should come inside them).
I'm using:
OS: Arch Linux
WM: i3
IDE's: Intellij, Pycharm, Phpstorm
On my setup I have on my computer there are no issues. The difference is though that I am using gnome on my computer. Does anyone have any idea where the problem could lie?
Kind regards,
Fabio
Please sign in to leave a comment.
Any errors in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)/
Did you ever get this fixed? I have a similar issue. Auto popup doesn't work at all, if I press "ctrl+space" once I get the "No Suggestions" popup, but if I press "ctrl+space" again I get the code completion list, as it should look.
I am on Arch Linux on an i7 ThinkPad. I have check all the settings twice, invalidated cache and restart, checked power save mode and every other trick on google. Any suggestions?
Simon,
Could you please provide idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?
Hi!
Here is the log in a gist. I started intelliJ and reproduced the error by starting to type, got no code completion, then pressed "ctrl+space" twice to trigger code completion manually.
Log file gist
Hi Simon,
Yes, this is me with a different account because I can't remember anything of my old one.
Yes, I did fix the issue I had. Do you by any chance use lemonbar? If so, that's where my issues lay. I don't know why or how. But it ate all the code completion windows.
I hope this helps.
Fabio
Hi!
Oh, well I am not running lemonbar and I can force the code completion window to appear by pressing "ctrl+space" twice. So I guess we have different issues then.
Cheers anyway!
I seem to have found the issue. I had installed intelliJ Ultimate trough the Arch AUR https://aur.archlinux.org/packages/intellij-idea-ultimate-edition/
I now reinstalled using the official tar.gz package and everything seems to be working fine. Thanks anyway!
I also have a problem with this, I am able to force it to show up using the "ctrl space" keys. I don't use lemonbar, I installed the Ultimate version through official installer, and still the auto completion doesn't work.
Searching "completion" in idea.log file shows up only:
com.intellij.codeInsight.completion.CompletionPreloader took XXX ms
Any ideas? Thanks.
EDIT: just found the answer: src directory for your java code has to be marked as Srouces Root (right click -> Mark Directory As -> Sources Root)
Just had same issue right after installing Pycharm Community version 2020.3.3. I fixed it by going to File \ Manage IDE Settings \ Restore Default Settings. I hadn't changed any defaults so not sure why it wasn't working in the first place, but this took care of the problem. Hope that helps anyone else who runs into this. - AC