johnno1962 / GitDiff

Highlights deltas against git repo in Xcode
MIT License
891 stars 54 forks source link

Xcode 6.2 and Alcatraz issue #31

Closed tobihagemann closed 9 years ago

tobihagemann commented 9 years ago

I'm getting this alert for GitDiff Plugin installed with Alcatraz on Xcode 6.2:

Could not load colors interface. This is a problem when using Alcatraz since Xcode6. If problems persist, please download and build from the sources on GitHub.

And Xcode is crashing frequently when installed with GitDiff. So... is there any way to make it work again? Everything was fine with Xcode 6.1.1.

johnno1962 commented 9 years ago

You have to build the plugin from github in reality. For some reason it does not work with Alcatraz. I’m not getting any crashes on Xcode 6.2. Can you build from github and past in any crash dumps you are getting?

kevintuhumury commented 9 years ago

I've got the same problem after upgrading Xcode to version 6.2.

johnno1962 commented 9 years ago

Oh dear. I’ve not had any problems myself since the upgrade. When Xcode crashes and you get the report to Apple window it would be a big help if you could cut and paste the crashlog here so I can see what’s going on. Also, I’d suggest downloading the zip of the source for GitDiff. Opening the project and building is enough to install the plugin manually.

tobihagemann commented 9 years ago

This should be the most important part:

Process:               Xcode [11949]
Path:                  /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier:            com.apple.dt.Xcode
Version:               6.2 (6776)
Build Info:            IDEFrameworks-6776000000000000~11
App Item ID:           497799835
App External ID:       811890240
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           Xcode [11949]
User ID:               501

Date/Time:             2015-03-11 10:29:05.394 +0100
OS Version:            Mac OS X 10.10.2 (14C1510)
Report Version:        11
Anonymous UUID:        4DCFB1E1-C9FC-9E24-1DB6-5DB00529E799

Sleep/Wake UUID:       FEEC01F0-AC58-47E6-BEA2-5CD6647BE344

Time Awake Since Boot: 49000 seconds
Time Since Wake:       3300 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 6C131e
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
UserInfo: (null)
Hints: None
Backtrace:
  0  0x00007fff92f43654 __exceptionPreprocess (in CoreFoundation)
  1  0x000000010e25a764 DVTFailureHintExceptionPreprocessor (in DVTFoundation)
  2  0x00007fff927cb76e objc_exception_throw (in libobjc.A.dylib)
  3  0x00007fff92e30a4f -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] (in CoreFoundation)
  4  0x00007fff92e466cb +[NSDictionary dictionaryWithObjects:forKeys:count:] (in CoreFoundation)
  5  0x00000001202a2115 -[NSRulerView(GitDiff) gitdiff_annotationAtSidebarPoint:] at /Users/saibot/Library/Application Support/Alcatraz/Plug-ins/GitDiff/Classes/GitDiff.mm:382 (in GitDiff)
  6  0x000000010e6e9cf5 -[DVTTextSidebarView _updateCurrentAnnotationRolloverStatusWithEvent:] (in DVTKit)
  7  0x000000010e6ea55c -[DVTTextSidebarView mouseEntered:] (in DVTKit)
  8  0x00007fff918eae19 -[NSTrackingArea _dispatchMouseEntered:] (in AppKit)
  9  0x00007fff912b41e2 -[NSApplication sendEvent:] (in AppKit)
 10  0x000000010f26fdd4 -[IDEApplication sendEvent:] (in IDEKit)
 11  0x00007fff91140608 -[NSApplication run] (in AppKit)
 12  0x00007fff9112ba14 NSApplicationMain (in AppKit)
 13  0x00007fff90a655c9 start (in libdyld.dylib)
tobihagemann commented 9 years ago

Seems to work with manually installing GitDiff... thanks! At least I'm not getting the alert anymore and the colors are now working (before that it was all black on the scrollbar). But still... pretty weird. :D

johnno1962 commented 9 years ago

Thanks for the log! Thats pointed out the problem straight away. I’ve pushed a change to make a second check for the nib not loading which should stop the crashing and improved the message explaining you must instal from source to get GitDiff to work if the nib doesn’t load when intalling from Alcatraz

johnno1962 commented 9 years ago

I’ve made a pull request to Alcatraz that should put this problem to bed for good

https://github.com/supermarin/Alcatraz/pull/233