Bug 576557 - autocomplete/intellisens/proposals/content assist changed in some way
Summary: autocomplete/intellisens/proposals/content assist changed in some way
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo, regression
Depends on:
Blocks:
 
Reported: 2021-10-11 06:25 EDT by Al Bundy CLA
Modified: 2023-10-15 13:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Al Bundy CLA 2021-10-11 06:25:05 EDT
Since latest update something changed how methods and parameters are completed.

For exmaple:
String str = "";
str.replace("foo", "bar");

In previous version I could place the cursor before "bar", hit ctrl+space and got the list of all "replace"-methods with the current one selected.
I think this list was also filterd according to the parameter-position and displayed only methods with "enough" parameters.
-> in 4.21 there are only variables and parameters in the list.

There are for sure more changes but unfortunately I don't have examples yet - I can only say that it sometimes "feels wrong" what is shown in the proposals. :-)
Comment 1 Andrey Loskutov CLA 2021-10-20 02:16:59 EDT
Please provide self contained example to reproduce. See bug 575919 related issues for possible duplicates.
Comment 2 Al Bundy CLA 2021-10-20 04:37:57 EDT
I'm not 100% sure but I think that my report is different from the others.
But glad to hear, that I'm not the only one having difficulties to explain what has changed. :D

Here is another example
String str = "";
str.lastIndexOf("");

then set the cursor to between ( and " and hit ctrl+space
result: all lastIndexOf-methods with different arguments displayed

now set the cursor between " and ) and hit ctrl+space
result: method-list is empty

here is another example
public class XYZ
{
  int getX() { return 0; }
  int getY() { return 0; }
  int getZ() { return 0; }
  void foobar()
  {
    final String str = "";
    // if you hit ctrl+space after the method and select for example lastIndexOf(int, int)
    // getY() and getX() are automatically used as arguments which is in most cases wrong....
    str.lastIndexOf
  }
}
Comment 3 Al Bundy CLA 2021-10-22 10:14:51 EDT
ad least my XYZ-problem could be solved by configuration
Preferences -> Java -> Editor -> Content Assist
Set "Fill method arguments and show guessed arguments" to "Insert parameter names"
Comment 4 Eclipse Genie CLA 2023-10-15 13:27:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Al Bundy CLA 2023-10-15 13:50:21 EDT
this is still an issue