Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable's value. Instead, hover behaves as if I were in normal Java perspective:
alt text http://michaelzanussi.com/wp-content/uploads/2009/11/debug_hover.png
I've tried cleaning the project, re-importing it, etc., all to no avail. Anything I'm missing here?
I went to Window - Preferences - Java - Editor - Hovers, hit "Restore Defaults" and "Apply" and that fixed it for me, even though nothing actually changed in the settings...
Go to Window - Preferences - Java - Editor - Hovers.
Is "Combined Hover" selected? Uncheck it; apply; close the window; restart debugging session; go back; check it again; apply.
If the above doesn't help, you can check "Variable Values" option and specify a modifier key for it. Not as convenient as "combined", but should work.
I had this problem too once, I "just" had to restart eclipse, after that the hover mechanism worked again.
The problem was "fixed" by renaming the package.
For whatever reason, this refactoring triggered something in Eclipse, and immediately I was able to view variable values during debugging. Also, when I go back into Preferences under Hovers, I can now see the "Variable Values" option.
I had a similar issue and when I came across this question. My problem was that windows hover time was set to 20s or so (you can test if this is your problem by putting the mouse on a mistake and waiting for a min or so). The registry key "MouseHoverTime" was set to a large value of 200000 ms (normally 400). Fix it by going to start -> run -> "regedit" -> HKEY_CURRENT_USER\Control Panel\Mouse double click "MouseHoverTime" and setting it back to 400.
I think this had been done on my computer a while back to prevent hover popups in another program. Anyway, sorry that my answer doesn't directly apply to this question, but I'm hoping it'll help somebody like me that comes across this thread with a similar issue.
For C++ project, please add -ggdb -0g to the compiler option. Hope this solution can help eveyry C++ programer face with the same issue.
Related
eclipse isn't making import suggestions anymore. I don't know why it stopped. Here is an example.
First check to see if it is enabled to automatically do it. Go to Preferences > Java > Editor > Content Assist and make sure Enable auto activation is checked.
If that doesn't fix anything, you can try to manually get it to show up by pressing CTRL + SPACE.
You should also check Content Assist > Advanced and make sure that at the very least Java Proposals is checked.
Reopen eclipse.Thats the only case i make it work again each time it happen.Cleaning up project doesnt help.I found this really annoying.Bud im sorry to tell that i have no idea why this happens. Seems like a bug in eclipse https://bugs.eclipse.org/bugs/show_bug.cgi?id=75582
It can happen when you have some brackets missing in your source code, and the suggestion system just cannot figure out how to do suggestions anymore.
just a dumb question but its hard to search because there are so many topics about eclipse auto complete and its hard to find something matching to my problem.
so there problem is:
If i write :
"MyClass MyVarName" and then hit space, (to add the " = new MyClass()")
Eclipse automatically adds : "MyClass MyVarName_MyClass " or something like that to the variable-name..... (just without underscore.... stackoverflow just wont to mark as bold else...)
That is really annoying, and because i imported the eclipse configuration of a co-worker... I really don't know how to disable....
thanks in advance
//EDIT:
It seems to be the same effect as i type "MyC" and then press space, it also completes the "MyClass" and not add just the space... its like hitting enter. but i dont want to automplete on space...
i also didn't found a custom key option on space or else.... :(
In Window->Preferences->Java->Editor->Content Assist:
check the box at "Disable Insertion triggers except 'Enter' ".
I've found all other answers to also disable the auto-suggestion features of Eclipse, which are rather useful in my opinion.
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced: In the top list box, uncheck "Java Non-Type Proposals", "Java Proposals" and "Java Proposals (Task-Focused)".
I cannot find a way to solve it decently.
So, just, press Esc before press Space.
Look into
Window -> Preferences -> Java -> Code Style
There you can see Conventions for variable names. Make sure all prefixes and suffixes are empty. Also check in
Window -> Preferences -> Java -> Editor -> Content Assist
Looks to me that you might have the Control key pressed without knowing it. Happens sometimes on laptops with Fn key that Fn+Ctrl kind of "locks" the Ctrl. I conclude this because Eclipse auto-complete feature should not work on pressing Spacebar only. Normally you should get the effect you describe only by pressing CTRL+Spacebar. Thus, try pressing Fn+Ctrl to unlock the "pressed down" Ctrl key and then you should be fine.
In Window -> Preferences -> Java -> Editor -> Content Assist, there is the option "Auto Activation". If you have it checked, it will activate even if you don't press ctrl and you'll see that behaviour. Uncheck it and you'll only get content assist when you use ctrl+space.
S!
My suggestion, and what I do, is similar to GreenEyed's approach but instead of disabling auto activation put it to a reasonable value for the delay, like 3000 (3 seconds).
I had plain Eclipse IDE for Java EE Developers and installed the Spring plugin to try it out. I didn't like it and didn't use it so I uninstalled it. After uninstalling, it still had the setting that you describe. So annoying!
After search for hours, I finally found out how to disable it.
Windows > Preferences > Java > Editor > Content Assist
Set Auto activation triggers for Java to: .
That's all that's necessary.
If you want to restore other Eclipse defaults regarding content assist:
Set Auto activation delay to 200.
I had previously disabled Java Proposals, Java Proposals (Task-Focused), and Java Type Proposals, as others recommended, but these should actually stay checked, so I re-enabled them.
I am very new to Eclipse, java programming and well all "programming" in general and I have recently been learning how to use Eclipse. I've been using it for about a week now and it has been going decent so far. Apart from some errors,(mostly on my part) that has been fixable by restarting the program itself.
However when I started using it today I could no longer see the suggestions made from the Quick Fix command, for example if I type findVi and then press CTRL+1, it shows "No suggestions available" instead of "findViewById()" or something similar.
I know it's the correct binding, I even reset the keys to default to be sure. It still finds the ID if i type it manually but I would like to able to finish words faster that way.
If you guys got any suggestions that can help me out, please let me know.
Thanks.
- First of all if you are new with Java, and want to practice Java, you should NEVER USE ANY IDE, that way you learn the proper syntax, and it helps your error finding skills.
- But as you wrote "findViewById()" it seems that you are doing Android, Now this happens sometimes that Eclipse behaves weirdly with Android. Thats the reason when you make any changes into your Eclipse GUI while working with Android, its always better to see if those changes have taken effect.
- This problem usually goes off after closing and re-opening the Eclipse once or twice.
- Ok try this....
Type findVie then press Ctrl + Space-Bar See if the suggestion pops up...
You can access the Content Assist preferences from Window > Preferences > Java > Editor > Content Assist... perhaps something got messed up.
I used long time Eclipse. In Eclipse it possible to press F2 and hints (e.g. about error) don't disappears and I can also copy the message directly from hint.
But in IntelliJ Idea (start to using now) hints are displayed for few milliseconds.
Does it possible fix by settings or changes in config file?
Thanks.
Look at Help > Default Keymap Reference in the IntelliJ menu. Perhaps Ctrl-q or Ctrl-F1 are what you're looking for?
You can always remap keys in IDEA and not all functions have a keystroke by default, but they can be added.
When I press Ctrl-S to save my Java file in Eclipse it's jumping to the function name. This is very annoying. Someone know what to do about this?
Go to Window->Preferences->General->Keys (you can also search for Keys in the main Preferences window). You most likely have added a binding which makes eclipse jump to the function name when you press ctrl+s.
Another place to look is Window->Preferences->Java->Code Style->Clean Up and Window->Preferences->Java->Editor->Save Actions. That is where all actions are defined which happen when you save/clean up a document.
Try looking at your keyboard bindings. I certainly don't have this problem on either of my Eclipse installs. You might have Ctrl-S assigned to two different actions?
This was really annoying problem for me also.
Solved it by going to Preferences->General->Workspace and unchecking "Refresh on access" checkbox.
I had a similar problem with Ctrl+C malfunctioning in Eclipse.
Here is a similar question regarding it.
Maybe try upgrading to the latest version if the above solutions do not work.