Xcode Playground Crashes on entering array of dictionaries

Originator:tassinari
Number:rdar://17700955 Date Originated:7/16/14
Status:Dupe of 17264572 Resolved:NO
Product:Xcode Product Version:Xcode 6 beta 3
Classification: Reproducible:YES
 
Summary:
While making an array of dictionaries in the playground Xcode crashes.  If there is a syntax error, it is not highlighted. There is just a  crash.

Steps to Reproduce:
1.  Start making an array of dictionaries in a playground:

let streams = [
    ["integer" : 0, "integer2" : 0, "string" : "", "integer3" : 35992, "title" : "test2", "array" : [
        ["id" : 4872, "url" : "http://example.com", "url2" : "http://test.com", "title" : "Title"],
        ["id" : 4873, "url" : "http://example.com", "url2" : "http://test.com", "title" : "Title"],
        ["id" : 4874, "url" : "http://example.com", "url2" : "http://test.com", "title" : "Title"],
        
        ]
    ]
    
]

2. Add a comma after the second to last brace to insert another dictionary.
3. Copy the first dictionary and paste on the next line below the comma
4. Crash

 

Expected Results:
Not a crash, if there is a syntax error, point it out

Actual Results:
Crashes xcode

Version:
Version 6.0 (6A254o) 
Beta 3

Notes:
This same thing happens in a project of mine but instead of crashing, Xcode grinds to a halt and the SourceKitService process memory grows to over 1 GB

Configuration:
Happens in a new playground

Attachments:

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!