Something in my Preferences file breaks auto-complete - java

There's something in my preferences file that is causing Eclipse's auto-complete feature (for Java) to not work.
What do I mean? Well, I work on multiple computers, and I like a very specific color scheme. So, I exported my preferences file from Eclipse on one computer, and I import it to Eclipse on my other computers. The colors look great and everything is nice.
The problem is, something about the importing of the preferences file is causing auto-complete to stop working. This has happened several times, but to figure it out I did the following: I got a fresh copy of Eclipse 3.6. Auto-complete works. Then I import the preferences file, and auto-complete stops working. The suggestion contains no entries.
Here's a picture to make it all real for you:
(source: nelsbeckman.com)
This is kind of annoying. Any ideas what could be causing this? I really only care about my font and the colors in the preferences file... If you want to look at the file, I keep it here on Google Code.
Thanks,
Nels

In my experience Eclipse preferences only work well within the same minor version (3.4, 3.5, 3.6 etc) and you go from 3.5 to 3.6.
I would take the time to rebuild your preference setup and generate a new preferences file for using with 3.6.

You might have the "Java Proposals" unchecked in Preferences -> Java -> Editor -> Content Assist -> Advanced.
I think it happened to me once because of Mylyn, which activates it's own "Java Proposals (Tasks-Focused)" instead. When I imported the preferences into a new Eclipse installation that didn't have Mylyn installed, I no longer had any completions.

Related

An error opening a new project in Eclipse

I've downloaded the JDK and Eclipse and started learning how to code in Java.
All of a sudden when I try to open a new project, I get this screen saying "select a wizard" with nothing to select. It won't let me continue.
I uninstalled and re-installed the software (although it worked fine before) but the problem remained.
What can I do?
I may be wrong but ... I'd say it is just a problem of the window size. Try resizing the "New Project" dialog to show its actual content :-)
Use another perspective, for example Java, JAVA EE
go to in menu Window -> Show View -> Other and select the perspective you like
Or access menu File New Project and select one time of the project
You have downloaded a wrong version of Eclipse. You can find the right one here
https://www.eclipse.org/downloads/

IntelliJ IDEA 14.1.0 becomes non editable and requires restart

IntelliJ IDEA 14.1.0 (Ultimate edition)
Java 1.8, 1.6
Scala 2.11
We are working on a project which has several modules most of them are Java and one of the modules is in scala.
For some odd reason IDE becomes non editable (i.e) I can't modify any files, though I can click and navigate between files.
Its so annoying that we've to restart the whole IDE or mutilple IDEs in case we have multiple projects opened on different IDE windows.
I have seen this, I think its due to accidentally changing the edit mode,
at the bottom right corner there is a small lock icon, if you click that it will toggle readonly and editable.
For me, it was the accidentally turned on Vim emulator (found the answer here). Untick Tools -> Vim Emulator.
Here's the image from the original thread:

Other Java Proposals Missing From Eclipse

The "other java proposals" that allows you to use the Ctrl+Space shortcut is missing from my Kempler install. I have redownloaded and reinstalled fresh from Eclipse and still do not have access to the shortcut from "other java proposals".
When searching here it's been suggested it should be checked in the advanced section of the editor preferences for Java. I can't find anything about how to enable to disable it here or in the Eclipse help files so I thought I would ask.
Thanks,
Omega
Kepler doesn't have "Other java proposals" but just Java Proposals.
This option (or Java Proposals (Task-Focused)) is sometimes left unchecked when importing the project to Kepler from a workspace on an older version of eclipse. Hence, your problem might be with workspace than the eclipse dist you are using.
I just thought I would "answer" this question incase someone else had the same problem.
It turns out that Synergy+ uses the same keystroke to lock screens. Even when it's closed, and the service is still running it holds on to key binds.
So, how I fixed it was to go through task manager and kill processes one at a time until I was able to use the shortcut, then went in to Synergy and changed the keybind.

Android Cocos2DX using C++ in Eclipse Helios

I have used Eclipse Helios 3.6.1 for Java development. I wanted to start C++ development in the same IDE so I installed Autotools Support For CDT, C/C++ Development Tools, C/C++ Library API Documentation Hover Help plugins.I have included #include "cocos2d.h" in my HelloWorldScene.h file now when writing the below statement cocos2d::CCSprite * ccSprite; I am not getting auto completion bar(template proposals) on writing like coco and pressing Ctrl + Space from my keyboard. What can be the problem?This might help you solve my problem. Please check here. This is what I got after clicking Right Click Project -> Index -> Search for Unresolved Index. But I have added all includes check here. I think this is causing problem in Content Assist. What should I do in this case? Inclusion seems proper.
Can you check if you have included the path to Cocos2d-x headers folder in your project properties? If not right click on your project > Properties > C/C++ General > Paths and Symbols > Includes tab > Add > $PATH_TO_YOUR_COCOS2DX/cocos2dx/include where you must replace $PATH_TO_YOUR_COCOS2DX by the actual absolute path to where you downloaded the cocos2dx framework.
PS: You should upgrade your eclipse to Juno as well, Helios is a bit old now :)
Sorry dont download eclipse juno actually. It comes with a new tool for discovery options (huge joke) that results in a lot of "type could not be resolved". Many people have problems with that including myself as you can see there Eclipse Juno's "Preprocessor Include Paths, Macros etc." symbol scanner for CDT It messes all my includes, therefore im going back to indigo.

How to get IntelliJ From making annoying blue popups?

On Mac OSX running the latest JDK, my IntelliJ 9.0.3 pops up these incredibly annoying and persistent windows:
This stuff compiles and runs fine, the JDK is definitely operational on this machine. It should be a java.util.string, not some other apache string.
what is this supposed to be, and how do i get rid of it? Thanks!
Found it!
In intellij idea 14, go to
settings -> editor -> general -> auto import, and untick 'show import popup', under the java/kotlin/xml/... section.
That will fix it.
My guess is that you have not configured the Java SDK that your project is using.
File -> Project Structure -> Project -> Project SDK, choose one, make sure it doesn't show in red.
You can ignore certain packages & classes from the import-popup.
See the answer here: Limiting IntelliJ IDEA import suggestions on completion

Categories