Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete does not work since 2024-06 with "Completion Overwrites" #1804

Open
Bestsoft101 opened this issue Nov 20, 2024 · 1 comment
Open
Labels
bug Something isn't working regression Regression defect

Comments

@Bestsoft101
Copy link

Bestsoft101 commented Nov 20, 2024

I recently upgraded from Eclipse 2020-06 to 2024-06 and noticed an issue.

Let's start with the following class:

public class Block {
	
	public static Block stone = new Block(0);
	public static Block dirt = new Block(1);
	public static Block wood = new Block(2);
	public static Block sand = new Block(3);
	
	public int id;
	
	public Block(int id) {
		this.id = id;
	}
	
}

And now I'm going to put some of the IDs into an array:

	public static void main(String[] args) {
		int[] ids = new int[] {
				Block.stone.id,
				Block.dirt.id,
				Block.sand.id
		};
	}

Everything fine here, but now I want to change one of the blocks.
Here's what happens in Eclipse 2020-06:

2024-11-20.19-29-20.mp4

I remove the old name, I choose the new name in the menu, and I press Enter to auto-complete it.

Here's what happens in Eclipse 2024-06:

2024-11-20.19-30-03.mp4

When I type woo to filter the list, it auto-completes to wwood, which I then have to manually fix.
If I don't type anything and scroll down the list, it doesn't autocomplete anything.

Do note that I am using Completion Inserts instead of Completion Overwrites in both cases, which is the default setting in 2020-06 but not in 2024-06. But even when using the default Completion Overwrites in 2024-06, it doesn't work properly
image

@iloveeclipse iloveeclipse transferred this issue from eclipse-jdt/eclipse.jdt Nov 20, 2024
@jukzi jukzi added bug Something isn't working regression Regression defect labels Nov 21, 2024
@jukzi jukzi changed the title Autocomplete Issue Autocomplete does not work since 2024-12 with "Completion Overwrites" Nov 21, 2024
@Bestsoft101
Copy link
Author

I just realized i got the version number wrong, its 2024-06 not 2024-12

@Bestsoft101 Bestsoft101 changed the title Autocomplete does not work since 2024-12 with "Completion Overwrites" Autocomplete does not work since 2024-06 with "Completion Overwrites" Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

No branches or pull requests

2 participants