Skip to main content



      Home
Home » Newcomers » Newcomers » Bug: Auto-complete doesn't work for Java in eclipse 2021-03(Bug: Auto-complete doesn't work for Java in eclipse 2021-03)
Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840857] Mon, 26 April 2021 22:15 Go to next message
Eclipse UserFriend
SOLUTION- CREATED A NEW WORKSPACE and REIMPORTED PROJECTS

After upgrading killed eclipse, I installed a new version of eclipse 2021-03 (4.19.0).

Since I use a Mac provided by NASA, I only have Java 1.8. So I fixed the ini file.

But autocomplete doesn't work. The first time I try it I get a popup that has just 1 line, "No Default Proposals."

In my preferences, Auto Activation is enabled with a delay of 0ms, a trigger of '.' (period). I tried changing the 0 to 1ms - it didn't help, even after a restart...

I really don't want to use IntelliJ....

[Updated on: Fri, 07 May 2021 19:37] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840858 is a reply to message #1840857] Tue, 27 April 2021 01:22 Go to previous messageGo to next message
Eclipse UserFriend
Of course proposals are context sensitive so it really depends on where you did this whether it's a bug or not, and if it's a bug, someone else will need to reproduce it and in that case too, more details are needed.
Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840875 is a reply to message #1840858] Tue, 27 April 2021 16:39 Go to previous messageGo to next message
Eclipse UserFriend
I got a jdk11 (or 14?) using brew, fixed the ini file, fixed my project properties, quit and restarted.
I still have the same problem...

Attached is a zip of a new, small project with the following java file:
=======

package com.ment;

public class Fubar {
static final double TWO = 2.0;
final double THREE = 3.0;

double getOne() {
return 1.0;
}

void doSomething() {
double value = this.; // type "this." and no suggestions are given
}
}

========
  • Attachment: fubar.zip
    (Size: 4.46KB, Downloaded 421 times)
Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840876 is a reply to message #1840858] Tue, 27 April 2021 16:41 Go to previous messageGo to next message
Eclipse UserFriend
I submitted an example.
Here's an image of the error log (see below for the text log)

http://randy.strausses.net/misc/eclipse-no-complete-log.jpg

[Updated on: Tue, 27 April 2021 18:41] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840877 is a reply to message #1840876] Tue, 27 April 2021 17:49 Go to previous messageGo to next message
Eclipse UserFriend
index.php/fa/40411/0/I found the "Error log view"
I attached a log and a screenshot.



The UI doesn't make it easy to search for conflicting bindings...
Open Type was conflicting with Go To Symbol in Workspace

Deleting the "Open Type" resolved the conflict, but I still have the other errors in the log,
and Auto-Complete is still broken.

If I close eclipse and restart it,
on the first .
it says "No default proposals"
if I hit ^space, "No template proposals"
if I hit ^space, "No template SWT proposals"
if I hit ^space, it DOES find a bunch of "chain template proposals", through getClass() and toString()...

I can also repeat this by just typing ^space after a period...
Attached is a screen capture of the non-empty chain template proposals...

[Updated on: Tue, 27 April 2021 18:47] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840878 is a reply to message #1840877] Tue, 27 April 2021 17:50 Go to previous messageGo to next message
Eclipse UserFriend
(blank)

[Updated on: Tue, 27 April 2021 22:43] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840879 is a reply to message #1840878] Tue, 27 April 2021 17:59 Go to previous messageGo to next message
Eclipse UserFriend
I reinstalled eclipse- same result...
I put the log
(after nuking the error log, closing eclipse, re-opening it, and typing a period after "this", then exporting the log) in a reply above.
Too bad there's no way to delete one's reply...

[Updated on: Tue, 27 April 2021 18:43] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1840885 is a reply to message #1840879] Wed, 28 April 2021 03:32 Go to previous messageGo to next message
Eclipse UserFriend
It works for me:

index.php/fa/40414/0/

It looks like you used the same workspace with different Eclipse installations that have perspective not in the Java IDE you are currently using. This leads to some of the things in the error log.

The key binding conflict is something I've complained about but no one fixes. I'm not sure you can make it go away manually, but it doesn't generally cause problems. The Mylyn thing is also annoying and an old problem.

I don't see anything in the log that explains your Java problem...
Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1841253 is a reply to message #1840885] Fri, 07 May 2021 19:38 Go to previous messageGo to next message
Eclipse UserFriend
The problem was old stuff in the workspace.
When I created a new workspace and re-imported the projects, it now works...
Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1849828 is a reply to message #1840857] Thu, 03 February 2022 11:41 Go to previous messageGo to next message
Eclipse UserFriend
I had a similar problem. Installed Eclipse 4.22 and tried to use it with an old workspace from version 4.8. Got an empty autocomplete window, without any java types or methods listed. Problem solution was to check the entry "Java Proposals" in Content Assist Advanced configuration dialog:

index.php/fa/41627/0/

After checking both like showed in picture many entries in autocomplete were duplicated.

After the fix I took a look to version 4.8 configuration. A "Java Proposals (Code Recommenders)" was enabled in old workspace which is absent in new version 4.22. Therefore Java autocomplete was disabled after upgrade.

[Updated on: Fri, 04 February 2022 09:15] by Moderator

Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1853724 is a reply to message #1849828] Thu, 14 July 2022 18:05 Go to previous messageGo to next message
Eclipse UserFriend
Gediminas M wrote on Thu, 03 February 2022 16:41
Problem solution was to check the entry "Java Proposals" in Content Assist

YES. Same applies to upgrade from 4.23 to 4.24. Thank you for saving my day!!
Re: Bug: Auto-complete doesn't work for Java in eclipse 2021-03 [message #1854971 is a reply to message #1849828] Wed, 21 September 2022 01:05 Go to previous message
Eclipse UserFriend
The same applied to upgrading from older versions to 4.25. Thank you!
Previous Topic:Request access to the rest of the forums
Next Topic:Graphics issue with Eclipse 2022-09
Goto Forum:
  


Current Time: Sat Apr 26 21:24:13 EDT 2025

Powered by FUDForum. Page generated in 0.08976 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top