Playground hangs frequently

Am I the only one for whom the playground frequently freezes? Sometimes beachball happens; sometimes the hang is without beachball. In either case Force Quit is the only option. I am spending more than twice as much time filing/updating bug reports as I am working Chapter 2.

OS X 10.10.1 (14B25)
Xcode 6.3.1 (6D1002)

I get the occasional crash, though I have to admit, it is usually when it can’t follow the bad code I have typed - not always though! Xcode 6.3.1 (which I see you’re using) was released to fix some playground bugs but as it is still a relatively new technology I suppose it still has quite a few teething problems to be worked out.

I’m not sure if this is related but I ‘think’ I’ve had less crashes since I deleted a second beta copy of Xcode that I had hanging around.

One crash was due to my bad code; several crashes have happened randomly. Beachball happens with the random crashes and Force Quit complains that Xcode is not responding; the syntax error crash froze Xcode without a beachball and Force Quit listed Xcode nominally.

When I tried to reproduce the bad code crash by re-entering my bad code, Xcode reflagged the bad code without crashing. Two lines later, beachball happened with a blank line.

The hanging without beachball syntax error was

I had just updated to Xcode 6.3.1 just before beginning this book. Just FYI…I had no hangups at all…this must have improved things.

Since derrellgore and I are both using Xcode 6.3.1 and derrellgore reports no crashes, something exists for me that does not exist for derrellgore.

A few days ago, I started a new playground to continue where I left off; no crashes. There is something in my earlier playground that causes Xcode to choke. Certainly, Xcode should be more robust and handle my bad code with more grace.

Right now I am more interested in moving forward than dwelling in the past, but I will try to isolate this when I find the time and report back. In the meantime, I did include the first playground in my bug report to Apple, so maybe the Xcode team will sort it out.

Just curious, derrellgore, which OS X are you using?

A playground introduces another layer of complexity. Instead, you can simply create a toy project and use that as your playground.

…the primary difference, of course, being the immediate feedback of the playground versus the edit/compile/execute cycle of the toy project.