Bug 574585 - [macOS] Screen cheese when using braces of any kind
Summary: [macOS] Screen cheese when using braces of any kind
Status: CLOSED DUPLICATE of bug 574351
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.20   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-01 05:41 EDT by Oliver Drotbohm CLA
Modified: 2021-08-03 02:56 EDT (History)
8 users (show)

See Also:


Attachments
Screeenrecording of the (correct) behavior in E4.19 (238.04 KB, video/quicktime)
2021-07-01 05:41 EDT, Oliver Drotbohm CLA
no flags Details
Screen recording of the (erroneous) behavior in E4.20 (356.77 KB, video/quicktime)
2021-07-01 05:42 EDT, Oliver Drotbohm CLA
no flags Details
Screeen recording of parenthesis eating characters on E4.20 (247.13 KB, video/quicktime)
2021-07-01 05:48 EDT, Oliver Drotbohm CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Drotbohm CLA 2021-07-01 05:41:59 EDT
Created attachment 286709 [details]
Screeenrecording of the (correct) behavior in E4.19

In a naked Eclipse SDK 4.20, when typing closing braces of any kind, they "eat" trailing characters as long as they have matching open ones before. As the phenomenon is a bit hard to describe, I created a screen recording of how the Java editor behaves on 4.20 VS. 4.19.

Editing the same content in other editors works fine. Same for other file types.
Comment 1 Oliver Drotbohm CLA 2021-07-01 05:42:37 EDT
Created attachment 286710 [details]
Screen recording of the (erroneous) behavior in E4.20
Comment 2 Oliver Drotbohm CLA 2021-07-01 05:48:52 EDT
Created attachment 286711 [details]
Screeen recording of parenthesis eating characters on E4.20

I probably should've mentioned that this behavior also shows in non-String areas. E.g. if you try a couple of opening parentheses after String.format, even if you wait for a couple of second, you're stuck in "character eating mode" until you've typed as many closing parentheses, as you have opening ones. I've created another screen recording for this one.
Comment 3 Thomas Wolf CLA 2021-07-01 05:56:58 EDT
This looks very much like bug 574351?
Comment 4 Oliver Drotbohm CLA 2021-07-01 06:02:58 EDT
Good catch, Thomas! It certainly looks related, albeit triggered by a different starting point. Very well possible that the effect is caused by the same underlying issue.
Comment 5 Martin Lippert CLA 2021-07-05 04:41:52 EDT
Quick side note here:

I worked with Oliver Drotbohm on reproducing bug 574585, we used the same Eclipse SDK 2021-06, the same JDK, empty workspace, exactly same steps (creating a new Java project, typing the same, etc.) and I wasn't able to reproduce the problem on my side while he could reproduce this reliably every time.

So creating an environment that reproduces this might not be as easy as creating a sample project and trying that. One thing that we noticed was a different in the macOS version. I was running Big Sur, while he was running an older version.
Comment 6 Kalyan Prasad Tatavarthi CLA 2021-07-06 06:06:50 EDT
Is this issue Mac specific?

@Noopur, Can you check if you can reproduce this issue?
Comment 7 Noopur Gupta CLA 2021-07-06 06:30:33 EDT
(In reply to Kalyan Prasad Tatavarthi from comment #6)
> Is this issue Mac specific?

> @Noopur, Can you check if you can reproduce this issue?
I haven't seen this and I couldn't reproduce it on Big Sur. As mentioned in other bugs/comments, it could be specific to macOS 10.14.

Moving to SWT.
Comment 8 Christopher Erlanger CLA 2021-07-28 03:51:47 EDT
in Eclipse Version: 2021-06 (4.20.0) on macOS it happened very often that a newline in code overwrite the next line in code. After refreshing the display via cursor or scrolling in the code the code is ok. This issue is very anoing so that developing on macOS in eclispe in this version is very restricted.
Comment 9 Phil Beauvoir CLA 2021-07-29 03:38:05 EDT
(In reply to Christopher Erlanger from comment #8)
> in Eclipse Version: 2021-06 (4.20.0) on macOS it happened very often that a
> newline in code overwrite the next line in code. After refreshing the
> display via cursor or scrolling in the code the code is ok. This issue is
> very anoing so that developing on macOS in eclispe in this version is very
> restricted.

Sounds like Bug 574896
Comment 10 Niraj Modi CLA 2021-08-03 02:56:20 EDT
Root cause addressed via fix for bug 574351.

*** This bug has been marked as a duplicate of bug 574351 ***