Xcode 9 beta 5: Swift editing hangs

Hi, the problem we had previously with editing property comments in Swift files (editor hanging after typing a couple words or chars within a comment, requiring force quitting Xcode) now seems to also affect editing of regular code as well, not just comments. Is there a workaround, for instance forcing the old code editor in Xcode 9 through env var or something similar? Thanks!

Started happening to me too in beta 5:


Open Xcode > make 10-20 changes in file > Ram usage goes up to 10-30 GB > everything becomes unusably slow until I close it. 😠

Ditto here. Makes editing in Xcode unworkable.


Funny was working in emacs, and Xcode started to respond again after awhile. Editing/debugging performance is now back to where it was in beta 4 in my current session (since last Xcode restart). Sorry I'm not able to isolate this enough to issue a bug, but will update if I see anything obvious.


Looks like any serious new edits (to an existing project), with their requisit temporary errors causes SourceKitService (guessing here), issues which in turn incurs Xcode 9.0 beta 5 delays. These delays can look to be almost indefinite. My only workaround is to execute my main work in another external editor until the number of errors diminish. I thought kill (SIGINT, HUP, or SIGTERM) of SourceKitService would possible fix this, but I got mixed results. Regardless, in my opinion this beta, without the use of an external editor, is not very usuable.

Me too

Same problem here, ram usage goes up to 30GB so Xcode is unusable..

Xcode 9 Beta 5.

Same here, but seems to only happen when typing a comment on the same line as code. I'll take note on future beachballs to confirm.

Looks like Xcode 9b6 fixed that issue

I see this issue in Xcode 9 GM seed.

My symptoms are similar in Xcode 9 GM. I'll be working with Swift 3 files and then all of a sudden SourceKitService RAM usage starts spiking towards 8-9 GB. At that point the Xcode UI starts freezing. Once I force quit SourceKitService, things come back to normal.

Xcode 9 beta 5: Swift editing hangs
 
 
Q