travisjeffery / ClangFormat-Xcode

Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
https://twitter.com/travisjeffery
MIT License
2.89k stars 288 forks source link

Crash on XCode 6.1 - OSX 10.10 #59

Closed huy-le closed 8 years ago

huy-le commented 9 years ago

I use on that flatform and it always crash when format.

skaramicke commented 9 years ago

I have the same problem! Here's a crash log. I've reinstalled several times, built manually, switched back to Alcatraz version – to no avail.

gitferry commented 9 years ago

I also have the same problem! @skaramicke crash log

skaramicke commented 9 years ago

@gitferry: I solved mine by switching "Use System ClangFormat" on and off a couple of times! Try that. Bottom of the menu. I used to get the crash in both settings, but no longer. Can't recreate the problem. Also; a warning when system ClangFormat isn't present could be a good idea.

gitferry commented 9 years ago

@skaramicke

I solved too. i workaround the source code.

https://github.com/travisjeffery/ClangFormat-Xcode/blob/master/ClangFormat/TRVSFormatter.m#L216

replace shellString with @"/bin/bash" force.