Community
Participate
Working Groups
Created attachment 270180 [details] Screenshot, showing that no whitespace characters are seen for the left-side of the compare When the "Show Whitespace Characters" option is used in a Compare, the characters are only visible for the left side of the compare. See attached screenshot for an example. Note that "Swap Left and Right View" will change where the characters are seen, after the Compare is re-opened. Using the option on an open Compare has no effect (until a new Compare is opened).
Comparing with previous revision in git shows whitespaces only on one side, for the Java comparison. Text comparison seems to always work.
Seems "Comparing with Index" from the Git staging view, editor, or comparing with index from project explorer causes the behavior. Comparing with previous revision, head revision, or local history shows whitespace characters on both sides of the compare.
We see this in latest EGit nightly too.
This does not occur with plain text files. Looks like an issue with the JDT's org.eclipse.compare.contentMergeViewers contributions?
New Gerrit change created: https://git.eclipse.org/r/134955
Gerrit change https://git.eclipse.org/r/134955 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=c73325de7b0236dd4c9cf87ba0f63ff00d2d42c4
New Gerrit change created: https://git.eclipse.org/r/135157
Gerrit change https://git.eclipse.org/r/135157 was merged to [master]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=c8496534cbb51db58b5e73b45c0e6003f82f2622