Compiler crash: is this a bug in Swift or Xcode?


#1

When I put these two lines in a Swift file in Xcode (8.1), I get both
“SourceKitService quit unexpectedly” and “lldb-rpc-server quit
unexpectedly”:

func f(_ a: Int, _ b: Int) { }
func f(_ ab: (Int, Int)) { }

Where should I file a bug report?

Nevin


(Joe Groff) #2

SourceKit crashes are usually the compiler's fault. SourceKit is also part of the open-source Swift project, so you can file bugs to bugs.swift.org <http://bugs.swift.org/>.

-Joe

···

On Nov 10, 2016, at 10:48 AM, Nevin Brackett-Rozinsky via swift-dev <swift-dev@swift.org> wrote:

When I put these two lines in a Swift file in Xcode (8.1), I get both “SourceKitService quit unexpectedly” and “lldb-rpc-server quit unexpectedly”:

func f(_ a: Int, _ b: Int) { }
func f(_ ab: (Int, Int)) { }

Where should I file a bug report?

Nevin


(Jordan Rose) #3

This particular bug is known, though, so no need for another one. SR-1795 <https://bugs.swift.org/browse/SR-1795>

Jordan

···

On Nov 10, 2016, at 11:19, Joe Groff via swift-dev <swift-dev@swift.org> wrote:

On Nov 10, 2016, at 10:48 AM, Nevin Brackett-Rozinsky via swift-dev <swift-dev@swift.org <mailto:swift-dev@swift.org>> wrote:

When I put these two lines in a Swift file in Xcode (8.1), I get both “SourceKitService quit unexpectedly” and “lldb-rpc-server quit unexpectedly”:

func f(_ a: Int, _ b: Int) { }
func f(_ ab: (Int, Int)) { }

Where should I file a bug report?

Nevin

SourceKit crashes are usually the compiler's fault. SourceKit is also part of the open-source Swift project, so you can file bugs to bugs.swift.org <http://bugs.swift.org/>.


#4

Thank you both.

Nevin

···

On Thu, Nov 10, 2016 at 6:57 PM, Jordan Rose <jordan_rose@apple.com> wrote:

On Nov 10, 2016, at 11:19, Joe Groff via swift-dev <swift-dev@swift.org> > wrote:

On Nov 10, 2016, at 10:48 AM, Nevin Brackett-Rozinsky via swift-dev < > swift-dev@swift.org> wrote:

When I put these two lines in a Swift file in Xcode (8.1), I get both
“SourceKitService quit unexpectedly” and “lldb-rpc-server quit
unexpectedly”:

func f(_ a: Int, _ b: Int) { }
func f(_ ab: (Int, Int)) { }

Where should I file a bug report?

Nevin

SourceKit crashes are usually the compiler's fault. SourceKit is also part
of the open-source Swift project, so you can file bugs to bugs.swift.org.

This particular bug is known, though, so no need for another one. SR-1795
<https://bugs.swift.org/browse/SR-1795>

Jordan