Refactor Rename stuck when being executed using shortcut

Originator:ffittschen
Number:rdar://34568670 Date Originated:21-Sep-2017 10:57 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.0 (9A235)
Classification:Serious Bug Reproducible:Always
 
Summary:
Trying to rename variables, methods, classes etc. gets stuck in the view that shows all occurrences without allowing to edit any code, when “Refactor > Rename…” is being executed using a keyboard shortcut. It shows a never ending spinning wheel in the top right corner next to the “Cancel” button.

Steps to Reproduce:
0. Assign a keyboard shortcut to “Refactor > Rename…” (e.g. Alt+Shift+R)
1. Select/highlight the variable to rename using the keyboard
2. Press the keyboard shortcut and acknowledge the alert to open the refactoring in the primary editor by pressing the return key

Expected Results:
The selected variable is highlighted and editable in the refactoring view. 
It is possible to cancel the operation with the escape key. 
It is possible to execute and finish the operation using the return key.

Actual Results:
Nothing is highlighted, nothing is editable. 
The refactoring view shows a never ending spinning wheel in the top right corner. 
It is not possible to cancel using the escape key. 
It is not possible to execute and finish the operation using the return key.

Version:
Xcode 9.0 (9A235)

Notes:
In the attached zip is a sample project and screenshots showing the issue.

Duplicates

Number Status Originator Product Title
rdar://34768562 Closed/Duplicate/34568670 jthomascarey Xcode Refactor -> Rename via shortcut key opens Assistant editor for refactoring

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!