Xcode9b1 - Indenting objective-C code moves it to column zero

Originator:markd
Number:rdar://32834386 Date Originated:6/17/2017
Status:Open Resolved:
Product:Developer Tools Product Version:Version 9.0 beta (9M136h)
Classification:Serious Bug Reproducible:Always
 
Summary:
Whenever I try to indent objective-C code via control-I / Structure-Reindent, the code doesn't indent - instead it shifts to column zero.

See movie at this drobox link:

(obtw my code colorization is all-black due to my eyeglasses)

Steps to Reproduce: https://www.dropbox.com/s/[redacted]/bad-completion.mp4?dl=0
(same as in the linked video)

0 Make a new objective-C project
1 put cursor on an indented line of code
2 press control-I or do structure->reindent
3 select-all
4 press control-I or do structure->reindent

Expected Results:
everything is left-justified.

Observed Results:
2, 4 - the code indents properly

Version:
Version 9.0 beta (9M136h)
10.12.5 (16F73)

Notes:


Configuration:
Works fine in Xcode 8

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!