Deleting a quotation mark from a malformed println causes Xcode to crash
| Originator: | fosterbass | ||
| Number: | rdar://17197286 | Date Originated: | 06-JUN-2014 |
| Status: | Closed | Resolved: | |
| Product: | Xcode 6 | Product Version: | 6.0 (6A215I) |
| Classification: | Crash | Reproducible: | Always |
Summary:
If a user types a println statement with an extra quotation mark before a string, then deletes one of the extra marks, Xcode crashes.
Steps to Reproduce:
1. Lauch Xcode 6 beta
2. Create a new playground
3. Type (or paste) the following two lines of code:
var aValue = 0
println(aValue, " "some string" )
4. Remove the first or second quotation mark from the string.
5. crash.
Expected Results:
When removing the first quotation mark (") from the string:
println(aValue, " "some string" )
I expect to be left with a resulting string:
println(aValue, "some string" )
Actual Results:
Xcode 6 beta crashes with the error "SourceKitService Terminated Editor functionality temporarily limited.
Version:
Xcode 6.0 (6A215I)
Notes:
I know the code sample above is not valid code, but it probably still shouldn't crash Xcode.
Configuration:
MacBook Pro Retina, 15-inch, Late 2013
16 GB 1600 MHz DDR3
NVIDIA GeForce GT 750M 2048 MB
OS X 10.9.3 (13D65)
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!