No completions available, strange Eclipse behavior

五迷三道 提交于 2019-12-03 09:36:23
Benoit Alvarez

I had the same. Windows -> Preferences -> Java -> Editor -> Content Assist -> Advanced. Make sure "Java Proposals" checkbox is ticked at default content assist list (1st panel of the pop up).

By clicking "Restore Defaults" button at the bottom "Java Proposals" could be checked automatically.

Go back to the Advanced Content Assist preference page and Restore Defaults. Close the dialog using the OK button.

I had the same problem. Actually I had the content assist pop up, but that was smaller than a couple of pixels.(Who shrunk this and why was it shrunk no idea whatsoever...) But if you see something strange(in my case, that was the letters 'Rp', but I guess it can be anything) where normally the content assist should appear, try to expand it, and you might get it back. Good luck.

None of these answers helped me: Java Proposals was ticked, and restoring defaults didn't do anything. It started working only after I restarted Eclipse.

What worked for me was to create a new workspace and copy all the projects to that workspace. The issue now only occurs on the previous workspace.

I think you are running into a known defect in 3.6. see here

try to download a newer release- it is fixed since 3.7

[edit] I just realized that you've wrote 'Juno'- are you using the latest (4.2.2)?

I just fixed the same problem in Juno switching workspace and then switching back. Other solutions didn't work.

I had the same problem but in only one particular file in my project (completion worked fine on other files). I'm also using Eclipse Juno.

I fixed the problem by removing some warnings due to unused imports in the file where completion failed... and it started working again!

This checkbox "java proposals" will be ticked until I have failed and got "No completions available". After that, it will show as unticked the next time I am opening the settings.

Go to Eclipse → Preferences → Java → Editor → Content Assist → Restore Defaults

and then Project → Clean

I couldn't expand sysout this morning. After a couple of wasted hours, I found that I was trying to put System.out.println() outside a method. When I did it inside a method, it all worked perfectly.

Windows -> Preferences -> Java -> Editor -> Content Assist -> Advanced ( Java Proposals) need to be choosen.

I had the same issue just now with Eclipse version 2019-06 (4.12). For me a Project clean solved the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!