Xcode 8 beta 4 - Comment/Uncomment broken

Hi,


Xcode 8 beta 4 release notes say:

"On some systems, the Editor’s Comment/Uncomment Selection command is enabled but does nothing. (27524523)"


"Some systems" includes my brand new retina Macbook Pro running El Capitan obviously.


It's hugely inconvenient.


Has anyone figured out a workaround?


Thanks!

Oh, is that what they mean by enabled? That's weird and doesn't really make sense to me, since the bug does not seem to be in the key binding, but in the menu item itself not being available (which of course also means any shortcut to it won't work).

Aaaaaaaand still a no-go on beta-6. *sigh*


Submitted Apple bug report 27855179.


Open Radar: https://openradar.appspot.com/radar?id=4976322216460288

In Xcode 8 beta 6, the comment / uncomment still gray

El Capitan 10.11.6

In Xcode 8 beta 6, the comment / uncomment still gray.


MacBookAir 2011

El Capitan 10.11.6

Installing OS X 10.11.6 seems to fix this issue

Nope, I'm on 10.11.6 (15G31), but the feature is still broken

No. The resolution is for Apple to fix it. Anything more would be an apology.

Still not fixed, but some dude on Twitter that I shall call a hero found a workaround. Worked for me. I can't type it here because Apple forums keeps giving me "post contains invalid characters". But here's the tweet:


https://twitter.com/kolpanic/status/763323546814844928

God bless Karl Moskowski!

Thanks, but credit goes to Chris Hanson of Apple, who gave the original solution. I just quoted his tweet to fix a typo.


FWIW, I think the problem is more of a documentation issue. The release notes for the Xcode 8 beta mention using xpccachectl to enable source-edition extensions on El Cap. However, they omit the fact that the comment/uncomment menu is now implemented as such an extension.

I just logged rdar://28074719 about adding these instructions to Xcode 8's release notes.

Where do I write this code? in the project directory or the place where Xcode-beta.app is there.

I'm on Xcode 8 Beta 6. The comment/uncomment shortcut was working on this Beta version for me for awhile, but today it is not working for me, and the Moskowski fix didn't work either.

I had this issue with the Xcode 8 GM version. I just moved Xcode 8 into another directory and opened it again. Then it works.

The Xcode 8 GM has a fix for this. From the release notes:


Source Editor Extensions

To use the Editor's Comment/Uncomment Selection and Add Documentation commands—as well as other installed Xcode Extensions—on OS X version 10.11, launch Xcode and install additional system components, then restart your Mac. (26106213)

https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html

Looks like the additional system components installer script does xpccachectl on El Cap.

Xcode 8 beta 4 - Comment/Uncomment broken
 
 
Q