Version Editor in Xcode does not correctly highlight a changed line

Originator:dr.eric.roller
Number:rdar://35669148 Date Originated:11/22/2017
Status:Open Resolved:
Product:Xcode Product Version:9.1 (9B55)
Classification:Bug Reproducible:Rarely
 
Summary:
This is sometimes seen when looking at changes in the XML source view of large storyboard files, e.g. when reviewing changes before them checking in. The Version Editor may highlight a line where no changes are visible. The line that should have been highlighted appears one or two lines above the highlighted one.

See enclosed screen shot where the change is visible two lines above the highlight (height 44 -> 48).

When multiple lines have been changed, then this effect is not seen on all lines. Highlighting may be correct for earlier changes, but incorrect for changes further down in the file.

Steps to Reproduce:
Not easily reproducible, sorry. It is not clear under which condition this problem arises. Presumably, this is seen more in very large storyboard files, rather than small ones.

Expected Results:
The highlight should be on the line that contains the change.

Actual Results:
The highlight is on a later line, typically two lines down from the changed line.

Version/Build:
Xcode Version 9.1 (9B55)
macOS 10.13.1 (17B48)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!