25

A few days ago I was using autocomplete features and Ctrl-click without any problem.

But now those features don't work anymore: the autocomplete shows up but is always empty, and Ctrl-click doesn't work because Eclipse doesn't recognize the classes anymore.

This doesn't even work for a class or function or variable in the same file, so I guess this is not a configuration problem, but maybe a cache that is corrupted?

slhck
  • 223,558
  • 70
  • 607
  • 592
Matthieu Napoli
  • 765
  • 2
  • 7
  • 18

3 Answers3

46

Try this:

  • Go to Preferences » Java » Editor » Content Assist » Advanced.
  • Make sure Other Java Proposals is ticked/checked

If that does not work simply "close" the project and reopen it.

slhck
  • 223,558
  • 70
  • 607
  • 592
Sahil
  • 2,387
  • 2
  • 16
  • 10
5

This was a tough one for me to solve (running Juno Version: 4.2.1 Build id: M20120914-1800 on Mac OSX 10.6.8).

The steps I had to take were:

  1. Run Help » Check for updates and then restart to get to the most recent version
  2. As noted above, Go to Preferences » Java » Editor » Content Assist » Advanced
  3. Click everything Java related in both sections
  4. Restart again
slhck
  • 223,558
  • 70
  • 607
  • 592
Chuck Mosher
  • 151
  • 1
  • 2
3

On ubuntu studio the ctrl-space was assigned at the operating system level to change the keyboard input method. I had to change the Next Input Method in Settings Manager–>Keyboard Input Methods–>Next Input Method field.

I changed it from ctrl-space to ctrl-alt-shift-space.

Kevin Panko
  • 7,346
  • 22
  • 44
  • 53
Bob
  • 131
  • 2
  • Thank you. I don't know who designed this but the choice of ctrl+space to change the keyboard input method is really dumb. – benji Aug 15 '16 at 23:29
  • this is solution is also applicable for Mac Os. go to System Preferences > Keyboard > Input Sources and untick that stupid control-space binding. – Kerem Baydoğan Apr 02 '18 at 22:46