Xcode 6: SourceKitService crashes if a Swift file includes a lazy variable
| Originator: | adrian.kashivskyy | ||
| Number: | rdar://17968740 | Date Originated: | 09-Aug-2014 12:53 PM |
| Status: | Dupe/17918143/Closed | Resolved: | Yes |
| Product: | Developer Tools | Product Version: | Xcode 6.0 Beta 5 (6A279r) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary:
SourceKitService crashes if a currently open Swift file includes a lazy variable declaration.
Steps to Reproduce:
1. Install Xcode 6.0 Beta 5 (6A279r)
2. Create a new Swift playground file.
3. Start typing the following code:
class foo {
lazy var bar: String = {
return "baz"
}
}
Note that copying & pasting the code won't necessarily trigger the bug, one has to type it character-by-character to see the crash.
Expected Results:
No interruption during the typing, no crashes, whatsoever.
Actual Results:
Editor "crashes" with a HUD message: "SourceKitService Terminated. Editor functionality temporarily limited". A crash report file is attached.
Version:
Xcode 6.0 Beta 5 (6A279r)
OS X 10.9.4 (13E28)
MacPro5,1
Notes:
Configuration:
Issue occurs both in playgrouds and in project files, regardless of the SDK. Even if a file already includes a lazy variable declaration, SourceKitService tends to crash from time to time after the editor receives a keyboard input.
Attachments:
'SourceKitService_2014-08-09-123927.crash' was successfully uploaded.
--- 12-Aug-2014 05:23 AM / ADR
Engineering has determined that your bug report is a duplicate of another issue and will be closed.
17918143
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!
Attachments
http://cl.ly/0j2F1O3L1l3J/download/rdar-17968740.zip