Eclipse Mars: Content Assistant does not populate when point is clicked

When I enter the first part of the local variable name and press Ctrl + Space to display the content helper, then it displays the full name of the variable and pre-selects it.

In the Eclipse Luna release, the full name will be inserted if you click . on the keyboard, and the content assistant displays all available members of this instance of the variable.

With Eclipse Mars, it inserts a dot immediately after the name of an incomplete variable.

How can I switch this behavior back to Eclipse Luna?

 public class A { public int member; public void possiblyAll(){ } } public class Test { private A aMemberNameWhichIsLong_1; private A aMemberNameWhichIsLong_2; private A aMemberNameWhichIsLong_3; public static void main(String[] args) { Test t = new Test(); t.amem } } 

In this example, the carriage is after t.amem . Ctrl + Space displays the full name. Clicking closes the content helper and creates this code: t.amem.

On the moon it was: t.aMemberNameWhichIsLong_1.

+8
java eclipse code-completion eclipse-mars
source share
2 answers

This was a bug introduced by the Code Recommenders plugin (see @ Johannes Dorn answer for a fix).

You can (temporarily) disable the "Code" using Window> Settings> Recommendations for the composition of the code> Completion> [x] End of code entry.

+9
source share

We fixed this bug as part of Code 2.2.1 Recommendations

You can update it using our stable update site: http://download.eclipse.org/recommenders/updates/stable/

+6
source share

All Articles