Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 2021-09 code completion not showing all methods and classes

Hi some days before I updated my eclipse 2021-06 to 2021-09 and after that its code completion will not show all the methods and classes. For example if I type frame.setS, then it is showing no default proposals.

enter image description here

But At the same time when I type frame.setC and press ctrl+space, it is working This is the

enter image description here

Also in my settings everything is checked.

enter image description here

What I have tried

  1. I searched the web and found many stack overflow questions and I tried the answers. But it didn't work

  2. I deleted the .metedata folder and uninstalled and reinstalled eclipse for 5 times.

  3. I tried installing eclipse from installer and zip.

Is this a bug or something.

I have also installed the java 17 plugin from eclipse marketplace.

Edit

In eclipse 2021-12 (4.22) which released yesterday (08-12-21), java.awt.* is not filtered out. So no problem. Also it has Java-17 support..

like image 776
JFan Avatar asked Sep 28 '21 07:09

JFan


People also ask

How do I enable code completion 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 see the code line in Eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

What's new in Eclipse installer 2021‑09 R?

The Eclipse Installer 2021‑09 R now includes a JRE for macOS, Windows and Linux. The easiest way to install and update your Eclipse Development Environment. The essential tools for any Java developer, including a Java IDE, a Git client, XML Editor, Maven and Gradle integration

When will eclipse 2021-12 be released?

I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2): Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.

Does eclipse 2021-12 have java-17 support?

In eclipse 2021-12 (4.22) which released yesterday (08-12-21), java.awt.* is not filtered out. So no problem. Also it has Java-17 support.. Never ever delete the .metadata folder, that's a hoax spread on Stack Overflow. When you cannot restore it, use a fresh workspace. The Java 17 plugin is a preview/BETA, not the official release.

How do I disable the content assist in Eclipse 2021?

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default. To disable this default filter, go to the preferences ( Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.


1 Answers

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default.

To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.

I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2):

  • Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.
like image 197
howlger Avatar answered Oct 21 '22 09:10

howlger