Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse auto complete doesn't work with lambda and types

I use Eclipse Oxygen.2 Release (4.7.2)

I try some lambda expressions and have the following problem:

I write the lambda parameters without types, Eclipse auto complete works fine:

If I write lambda parameters with types, no auto complete:

But I can write this on my own and all works fine:

Is this a bug in Eclipse? Can someone explain this behavior?

like image 648
pL4Gu33 Avatar asked Jan 04 '18 12:01

pL4Gu33


People also ask

How do I turn on autocomplete in eclipse?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

How do I autocomplete variables in Eclipse?

you type the first letter/letters and when you click ctrl + space you get a list of all the variables that start with that letter/letters. it's an auto-complete tool...

Why methods are not showing in eclipse?

The following fixed it: Open Eclipse Preferences. Go to Preferences > Java > Editor > Content Assist > Advanced. Make sure that Other Java Proposals is selected in the list of proposal kinds.


1 Answers

Yes, this is a known bug of Eclipse, which has not yet been fixed: Eclipse bug 460921.

Eclipse is open source and contributions to fix this bug are welcome.

like image 186
howlger Avatar answered Oct 02 '22 18:10

howlger