Bug 553441 - [content assist] Syntax highlighting breaks on triggering multiple code completions
Summary: [content assist] Syntax highlighting breaks on triggering multiple code compl...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-25 13:33 EST by Roland Grunberg CLA
Modified: 2023-11-06 02:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Grunberg CLA 2019-11-25 13:33:12 EST
This was discovered while fixing Bug 553279.

* Make sure you have the fix to Bug 553279 in your checkout, or that Postfix Completion is disabled under Advanced Content Assist so that you don't run into the issue (which has been fixed from there)
* Window -> Preferences, under Java -> Editor -> Content Assist, make sure 'Fill method arguments and show guessed arguments' is enabled, and also set to 'Insert best guessed arguments'.

* consider the following file (note the unused import):
import java.nio.file.Files;

public class Main {
    public static void main(String[] args) {
        Paths.
    }
}

* put your cursor at the end of the Paths. statement.
* trigger autocomplete.
* select the first option that appears, get(URI uri); this should give you Paths.get(null) with an additional 'java.nio.file.Paths' import.
* select all of get(null).
* trigger autocomplete.
* undo (Ctrl + Z or appropriate shortcut).
* the syntax highlighting should broken now
Comment 1 Eclipse Genie CLA 2021-11-15 01:32:31 EST
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 2 Eclipse Genie CLA 2023-11-06 02:39:07 EST
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.