Xcode crashes when refactor > rename a classname while the class contains a placeholder
| Originator: | michaelhochs | ||
| Number: | rdar://33587026 | Date Originated: | 28-Jul-2017 11:23 AM |
| Status: | Closed | Resolved: | fixed |
| Product: | Developer Tools | Product Version: | 9b4 |
| Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Summary: Xcode 9 has been awesome. The new source editor is so great and everything is much snappier and faster. Thanks for all the new things! There is one easily reproducible freeze though: When currently having a placeholder in your code in the source code editor (the ones that show up for the parameter if you autocomplete a method name), and then right click on the class name > refactor > rename, Xcode freezes. Steps to Reproduce: - Inside a class, add a method with a parameter through autocompletion - Don’t fill out the parameters but leave the placeholders untouched - Right click the class name - refactor > rename Expected Results: The new awesome refactoring UI opens. Actual Results: Xcode freezes. Version: 9b4 Notes: In the attached zip is a sample project and a screencast showing the issue.
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!
Sample Code
https://github.com/PSPDFKit-labs/radar.apple.com/tree/master/33587026%20-%20RefactorWithPlaceholder