Bug 548152 - Coloring of line break indicator is inconsistent/incorrect
Summary: Coloring of line break indicator is inconsistent/incorrect
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.13   Edit
Hardware: PC Mac OS X
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-11 09:18 EDT by Jochen Ulrich CLA
Modified: 2019-12-04 12:01 EST (History)
1 user (show)

See Also:


Attachments
Screenshot showing incorrect and inconsistent coloring (274.57 KB, image/png)
2019-06-11 09:18 EDT, Jochen Ulrich CLA
no flags Details
Screenshot of incorrect and inconsistent color of line break indicators in C++ and XML file in fresh Eclipse 4.13 (242.28 KB, image/png)
2019-12-04 11:56 EST, Jochen Ulrich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Ulrich CLA 2019-06-11 09:18:56 EDT
Created attachment 278896 [details]
Screenshot showing incorrect and inconsistent coloring

The line break indicators are colored incorrectly.

If the first line which is currently visible ends with a comment, all line break characters are colored in the color of that comment (either regular comment or documentation comment).
If I scroll the view, the line break indicators change their color depending on whether the first visible line contains a comment or not.
If I put the cursor on one line, the line break indictor of that line changes its coloring to the default color.
If I select a variable and have "Mark Occurrences" enabled, all lines between the first and the last occurrence of the variable change the color of their line break indicator to the default color.
When I switch the foreground application to another application and back to Eclipse again, all line break indicators are colored according to the first visible line again.

See attached screenshot. I already placed the cursor in a few lines before I took the screenshot.
Comment 1 Jochen Ulrich CLA 2019-06-11 12:00:19 EDT
I just found out that the "AnyEdit" Tools plugin causes this.

It has a "Color trailing whitespace differently" functionality which is enabled by default.
Comment 2 Jochen Ulrich CLA 2019-12-04 11:54:34 EST
Today I installed Eclipse IDE for C/C++ Developers version 2019-09 R (4.13.0) and I realized that this bug is actually *not* triggered by the AnyEdit Tools plugin as I thought before.

I can reproduce this bug in a fresh installation of Eclipse with a fresh workspace.

It also seems to happen in every text editor (I tried a C++, Python and an XML file).

I'm running on MacOS 10.14.6.
Comment 3 Jochen Ulrich CLA 2019-12-04 11:56:38 EST
Created attachment 280864 [details]
Screenshot of incorrect and inconsistent color of line break indicators in C++ and XML file in fresh Eclipse 4.13
Comment 4 Jochen Ulrich CLA 2019-12-04 12:01:51 EST
> I can reproduce this bug in a fresh installation of Eclipse with a fresh workspace.

With "a fresh workspace" I mean I only added one project with two example files, changed the preferences to show the whitespace characters and changed the syntax coloring of comments to make it more visible.