Community
Participate
Working Groups
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.
I just found out that the "AnyEdit" Tools plugin causes this. It has a "Color trailing whitespace differently" functionality which is enabled by default.
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.
Created attachment 280864 [details] Screenshot of incorrect and inconsistent color of line break indicators in C++ and XML file in fresh Eclipse 4.13
> 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.