Xcode's fixits do not replace text in the correct location

Originator:SaagarJha28
Number:rdar://33982109 Date Originated:20-Aug-2017 01:19 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode Version 9.0 beta 5 (9M202q)/macOS High Sierra 10.13 Beta (17A344b)
Classification:UI/Usability Reproducible:
 
Summary:
Some of Xcode's fixits don't seem to place the text that they're supposed to inset at the correct location. For example, foo[index...]->String(foo[index...]) actually becomes fooString([index]), and @objc is placed in some random spot in the file that is not even close to the actual position.

Steps to Reproduce:
1. Perform one of the fixits above.

Expected Results:
The new text to replace goes in the correct location.

Observed Results:
The text is in the wrong location.

Version:
Xcode Version 9.0 beta 5 (9M202q)/macOS High Sierra 10.13 Beta (17A344b)

Notes:


Configuration:
MacBook Pro (Retina, 13-inch, Early 2015) running macOS High Sierra 10.13 Beta (17A344b)

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!