Eclipse dot does not auto suggest - eclipse

I am using Eclipse 3.7.1 classic.
When I type a class, it does not show the auto suggest. I dont know why, before it can pop up the function.
I have not changed any configuration of the eclipse.
For example, when I type System, it does not pop up the auto suggest, like out.println.

Go to Preferences->Java->Editor->Content Assist.
Make sure you have "Enable Auto activation" Checked
If it doesn't work, go to Advanced section: Java->Editor->Content Assist->Advanced
In the "Select the proposal kinds contained in the 'default' content assist list",
have "Java Proposals" Checked
OR
Restore Defaults, Apply and it should work.

Start eclipse with the -clean parameter to delete old stored values.
If you installed new plugins you should disabled them in the prefrences-> workspace and see if one is blocking the GUI.

This can happen if you have a syntax error that you have not noticed higher up in the class, such as forgetting to close a method with a } or missing a terminating ";".
Try the same in a new project. If you still have the problem I'd try the suggestion by "Udo Fholl".

Related

Eclipse auto suggesting and filling in variable names

Okay, so my issue is when I am creating a variable, lets say for example "Object o" while I am typing "o" it'll suggest something like "object". Which is okay but when I press space it auto fills in the new name. Basically I don't want to turn off auto completion I just want to disable space auto filling the suggestion in. Even to disable variable naming suggestions would work.
I'm using Eclipse Juno Service Release 1.
I know it's an old question but since non of the answers here worked for me, and this problem was really annoying me too, I am adding solution that helped me.
In your Eclipse go to:
Window/Preferences/Java/Editor/Content Assist
and enable:
Disable insertion triggers except 'Enter'
screen/shotted
Hopefully that will work for everyone!)
As there isn't any definitive solution for this yet, what I find works best is to disable the alphabetic characters from triggers:
Windows > Prefereces > Java > Editor > Content Assist > Auto activation triggers for Java
This will mean no class name / type completion, but method name completion will still be suggested when you pressed dot, however at least Eclipse stop messing with my variable name
Go to Window/Preferences/Java/Editor/Content Assist and choose settings that works for you.
I realize this is a 3 year old post, but...
From what I can gather, there isn't an option to disable this, it was hard coded into the content assist feature. But there is a plugin that you can download from the answer to this stack overflow question that will disable this feature
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
I turned off Java Type Proposals and made sure Java Proposals is turned on. By the way this is in Spring Tool Suite I haven't checked using eclipse.

Method listings when typing '.' after an object

Normally when you put the '.' after an object and wait you get a list of methods/fields/classes that one can access. My eclipse no longer does this for me. I spent 10-15 minutes searching for a way to turn it back on and I came up empty. How can I turn this back on?
You can try mucking around in
Preferences > Java > Editor > Content Assist
and see what you get. I've had this once before; eclipse got into a bad state and wouldn't code complete for a given project. Reverting changes in the project got rid of some errors and it started working again.
Assuming you're using Java you need to look at setting Java -> Editor -> Content Assist. You want to make sure that "Enable auto activation" is checked and the other options are set to your taste. The auto activation trigger should be the period.
It may not work if you have an error in your code.

Eclipse problem

In Eclipse, I no longer have the function that would sort of auto complete my statement. Such as if I typed in "Integer." and then a list of available methods would show up and I would be able to pick it. How do you activate this function?
Active your code assist option in Windows/Preferences/ and just type code assist..
In your preferences, (Window->Preferences->Java->Editor-Content Assist) have you enabled "Auto activation"? If so, what is the delay set there? Also look into the Advanced section and see whether there are any proposals checked.
window/preference, type content assist, click Java/Editor/Content Assist.then check the checkbox under Auto Activation in the bottom,right side of the preference window.and you may also set the Aoto Activation triggers.
hope it's useful.
If it was before and just gone, then try to clean your project.
Had this problem after installing eclipse 4.2.2.
It looks like the Preferences->Java->Editor->Content Assist->Advanced tab no longer has "Java Proposals (Task Focussed)" in version 4.2.2 of eclipse, which is the one I previously had checked.
Version 4.2.2 does have a "Java Proposals" checkbox (unchecked in my fresh installation, using a previous workspace), checking that box restores the auto completion popup.

Can we set a timeout for the Eclipse function hint list?

is it possible to set a timeout for the Eclipse function hint list?
Waiting for the full function list to load simply pisses me off...:(
First, you can trigger the content assist immediately by hitting Ctrl-Space.
Second, you can set the delay under Window->Preferences->Java->Editor->Content Assist->Auto-Activation. Non-Java editors may have separate settings. You can type search terms on top of the prefence window to see all related settings.
I would like to add on this by pointing out that I was facing the same kind of issue in Eclipse Mars Version 4.5.0 M1.
I got this error :
I managed to solve it by disabling the following setting "Code Recommenders proposals" from Window\preferences\Java\Editor\Content Assist\Advanced
Disable it from both Default proposal kind and Content cycling . Restart eclipse , and the error is gone.
I don't know why this happens, or what the addon does. Maybe someone can elaborate on it.

Eclipse Search Menus disabled randomly

I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl+H, I am able to access the search functionality. Does anyone know why this happens? Has it been fixed in Eclipse 3.4?
window > close all perspective works for me.
Using Eclipse 4.3(!) this happened to me after doing a case-sensitive search.
Window -> Close All Perspectives didn't fix it and neither did restarting Eclipse using -clean. While messing with the search box, I discovered that simply clicking to a previous search entry allowed me to edit it and search again! Clicking back to the case-sensitive search grayed the option out again.
So before you reset anything in your workspace, try pulling up an older search entry using the Down Arrow.
I think this answer is what you all need to solve the issue on all versions.
I am using RAD 8 and I have also faced this problem than I removed org.eclipse.search directory in (workspace currently using) workspace/metadata/plugins folder then restart the eclipse.
That's all.
I don't have an exact answer. I will recommend that you try to correlate the disablement with which perspective is active. Likewise, which view is active. I have been using 3.4 and not experienced this issue.
Darn! I have that problem too -- in Eclipse 3.4.2.
Seems to be related to Navigator and Project Explorer views:
- Switch to Debug perspective: Search menu items are there.
- Switch to Java or Java EE perspective: Search menu items still there.
- Click on a project in Navigator or Project Explorer: Search menu items all DISABLED.
(Curse! I use search in Selected Resources a lot! )-:
Hmmm... It may slso depend on the file type currently open in the editor. (Like Java vs xml.)
Still present in Eclipse 3.5.2 -- and for the first time really sticky.
I checked out the "close all opened files and open any other file afterwards" answer and that brought back the Search menu items. Additionally, if you were lucky and have the Search result view open, than indeed there is this little link "Open search dialog".
By the way, additionally lots of other project-related menu items seem to be greyed out also together with this, and they did not reanimate :-( But I did not really check out if these are only items for which it is useful and planned to be greyed out in this situation.
I'm using RAD 7.5.1 which runs on Eclipse 3.4 and I get this problem frustratingly often. It doesn't matter which perspective or view I'm in, or which editor I have open.
Restarting RAD usually clears it up, but because that's such a colossal pain, I found that you can get around it in the Search View, there is a link; "Start a search from the search dialog" which will bring up the search dialog.
This isn't a great workaround because the link only shows if you have no search history. To do another search, you'll have to clear your search history in the view.
A late comment for anyone getting bitten by this, but I found "eclipse -clean" fixed it => this does a cleanup of the workspace before starting
Thanks http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ for the tip, after I guessed my workspace might be corrupt.
Before search, check you may choose scope in empty Working set. Most Search menu disables Search button when you choose it. And mine, too :)
window > close all perspectives worked for me too.
But if you are just looking for a text search in the project you could press Ctrl+Alt+G on a marked text
I couldn't get it to work even when restarting Eclipse.
Here's what worked for me: Closing all open files and opening a different file. The different file happened to be .java, but not sure if that had anything to do with it.
I get this problem from time to time.
In the past I've fixed by starting eclipse with the -clean option.
Once when that didn't work I created a new workspace.
I followed these instructions for those two solutions.
The clean option didn't work for me today and I found this thread because I didn't want to create a new workspace. The closing all files and reopening one file did work however.
I had this issue also in eclipse 3.6.2: Helios Service Release 1.
Closed all the editor windows, and the search has been enabled.
Switching to another perspective, then back, works quickly for me.
I've faced similar issue in Ctrl+H "File Search" tab. The "Search" and "Replace" button was grayed out (disabled). The solution is fill the "File name patterns" text box (for eg, *.py). May be this is by design!
I have this problem with MyEclipse 7 (eclipse 3.4) under Debian Lenny. Perspective doesn't seem to matter. I get around it with the shortcut Ctrl+H but I was hoping for a better way.
Just had this problem in Eclipse Neon 3. It is a very common problem in RAD. I could find using in the console, then switch back to the source and search. RAD would disable the find/search options per source file open. This is very frustrating.
I had this problem too. It appeared when I installed the m2eclipse plugin.
I had not found a solution, but you can use Ctrl+H shortcut instead.
And you can navigate between tabs with Ctrl+PgDown or Ctrl+PgUp keys.
I've uninstalled the following pluings and it worked.
Maven integration
PMD
eclipse checkstyle plugin
EclEmma (coverage)
I don't know which of those cause the problem. To uninstall a plugin: Help -> Software Updates...-> "Installed Software" tab.