ClangFormat-Xcode icon indicating copy to clipboard operation
ClangFormat-Xcode copied to clipboard

XCode 9 support

Open iharkh opened this issue 7 years ago • 17 comments

Please update this plugin to support XCode 9. I resigned XCode 9, ClangFormat plugin loaded, its menu appeared, but it's not working - nothing happens when I try to format code. Maybe it's because of new editor in XCode 9?

iharkh avatar Jun 10 '17 19:06 iharkh

Me too.There is something different in Xcode9

jobsLee-lcj avatar Aug 03 '17 04:08 jobsLee-lcj

It's not working for me either but on 8.3.3, text flashes but no format is applied.

leg10nMX avatar Aug 09 '17 22:08 leg10nMX

Yeah, it cannot work in Xcode 9

xilin avatar Sep 21 '17 06:09 xilin

how can i fix this

DemonJ1992 avatar Oct 09 '17 03:10 DemonJ1992

Does someone want to make a PR adding support for Xcode 9?

travisjeffery avatar Oct 26 '17 18:10 travisjeffery

come one man. we all need

SoolyChristy avatar Nov 23 '17 06:11 SoolyChristy

Yeah, go please update it to support Xcode9 :(

p0fi avatar Nov 23 '17 15:11 p0fi

XCode 9, please!

mdzoba avatar Nov 30 '17 19:11 mdzoba

+1

rosskidson avatar Jan 11 '18 04:01 rosskidson

I updated from Xcode 7 to 9.2 and as suggested on the front page of this github project I unsigned my Xcode with update_xcode_plugins script. Alcatraz works again, all plug ins work again except this ClangFormat plugin. Unfortunately this single plug is the most important one for me as it increases my productivity a lot. Without it I am feeling like writing code with broken fingers.

I now have to care about every single d*** white space.

Can you please answer why ClangFormat is not working although I unsigned Xcode successfully?

visorz avatar Jan 26 '18 10:01 visorz

I change to use https://github.com/mapbox/XcodeClangFormat

xilin avatar Feb 02 '18 07:02 xilin

@iharkh why was this issue closed? it is still not working.

dollar2048 avatar Apr 03 '18 08:04 dollar2048

As @xilin wrote there is a good alternative which works: https://github.com/mapbox/XcodeClangFormat

iharkh avatar Apr 04 '18 07:04 iharkh

@iharkh The alternative is not so good as this one. What is the point to close the bug if it is still reproducible? This issue will be created again later by somebody else.

dollar2048 avatar Apr 04 '18 08:04 dollar2048

@dollar2048 ok, I understand your point of view. Reopen it.

iharkh avatar Apr 04 '18 10:04 iharkh

I've written an alternative, works with latest Xcode and doesn't require building a plugin. https://github.com/sean-parent/tools/

sean-parent avatar Apr 30 '18 20:04 sean-parent

我重写了这个工具,目前xcode10可使用,git地址:https://github.com/V5zhou/ZZClang-format.git ,双击一键安装,后续我会补充个使用教程。

V5zhou avatar Nov 23 '18 14:11 V5zhou