• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems with SourceKit crashing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with SourceKit crashing


  • Subject: Problems with SourceKit crashing
  • From: William Squires <email@hidden>
  • Date: Sun, 14 Jun 2015 09:14:39 -0500

  Is anyone else having a problem with SourceKit crashing during editing of Swift source? It seems to happen most often if I'm in the middle of typing a line that's not syntactically correct (yet). For example, I was typing in this:

class FontSizesViewController: UITableViewController
{
  var font: UIFont!
  private var pointSizes: [CGFloat]
    {
    struct Constants
      {
      static let pointSizes: [CGFloat] = [9, 10, 11, 12, 13, 14, 18, 24, 36, <- and it would usually crash right about here

  The remainder of the line was:

72, 96, 144]

but continued typing kept popping up the "SourceKit has crashed" dialog. I kept having to save, exit Xcode, relaunch Xcode, and type some more until it crashed again (usually after only 1 or 2 more characters typed in.) Once I managed to type in the closing ']', it stopped crashing.
  It would be more helpful if you (as the Xcode user) could set a programmatic delay between typing the last character and Xcode trying to syntax check the source. Then I could set it for 5-10 seconds or so and see if that helped. Hopefully this will be a feature in Xcode 7...




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems with SourceKit crashing
      • From: Roland King <email@hidden>
  • Prev by Date: Re: import autocomplete not working since upgrade to 6.3
  • Next by Date: Re: Problems with SourceKit crashing
  • Previous by thread: Re: Displaying errors generated by an external build tool
  • Next by thread: Re: Problems with SourceKit crashing
  • Index(es):
    • Date
    • Thread