Swift 2: option-clicking a generic type with a space before the bracket crashes SourceKit

Originator:jp
Number:rdar://22394418 Date Originated:23-Aug-2015 09:57 AM
Status:Closed Resolved:24-Aug-2015 09:57 AM
Product:Developer Tools Product Version:Xcode-7 (7A176x)
Classification:Other Bug Reproducible:Always
 
Summary:
option-clicking a generic type with a space before the bracket crashes SourceKit.

Steps to Reproduce:
1. Type the following in a playground:

```swift
/// Some documentation.
func someFunc <A>() -> A {
    fatalError()
}
```

2. Option-Click the “A” in `<A>`.

Expected Results:
QuickHelp popover should display presenting “Some documentation.”.

Actual Results:
SourceKit either crashes or displays the popover presenting “No Quick Help”.

If SourceKit doesn’t crash on the first try, usually it does after another few tries.

Comments

Fixed in Xcode 7 Beta 6

The day after I filed this, Xcode 7 Beta 6 came out and this was no longer an issue.


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!