Issue #127 resolved

error after upgrade to Mercurial 1.5

Anonymous created an issue

I just upgraded to Mercurial 1.5 and now I am gettin this error: Uncaught exception: NSRangeException *** -[NSCFArray objectAtIndex:]: index (3) beyond bounds (1)

_NSArrayRaiseBoundException (in Foundation) + 121
-[NSCFArray objectAtIndex:] (in Foundation) + 63
-[HgRepository _checkRevisions] (in Murky) + 1258
-[HgRepository revisions] (in Murky) + 76
-[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation) + 413
-[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation) + 204
-[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation) + 405
-[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] (in AppKit) + 841
-[NSBinder valueForBinding:resolveMarkersToPlaceholders:] (in AppKit) + 188
-[NSArrayDetailBinder _refreshDetailContentInBackground:] (in AppKit) + 428
-[NSBinder _performConnectionEstablishedRefresh] (in AppKit) + 85
-[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] (in AppKit) + 721

Comments (12)

  1. vincenth

    I too am having the same error:

    Uncaught exception: NSRangeException
    *** -[NSCFArray objectAtIndex:]: index (17) beyond bounds (1)
    
        _NSArrayRaiseBoundException (in Foundation) + 121
        -[NSCFArray objectAtIndex:] (in Foundation) + 63
        -[HgRepository _checkRevisions] (in Murky) + 1258
        -[HgRepository revisions] (in Murky) + 76
        -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation) + 413
        -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation) + 204
        -[NSObject(NSKeyValueCoding) valueForKeyPath:] (in Foundation) + 405
        -[NSBinder _valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] (in AppKit) + 841
        -[NSBinder valueForBinding:resolveMarkersToPlaceholders:] (in AppKit) + 188
        -[NSArrayDetailBinder _refreshDetailContentInBackground:] (in AppKit) + 428
        -[NSBinder _performConnectionEstablishedRefresh] (in AppKit) + 85
        -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] (in AppKit) + 721
    
  2. Anonymous

    Same here. I initialized my repository with mercurial version: 1.3.1. Murky was using mercurial 1.5 and i could not clone via ssh, nor import project. I reversed back to mercurial 1.3.1 version and it solved the problem!

  3. Anonymous

    I just figured out and found the issue in Murky 0.7.1 which prevents it to work correctly with Mercurial 1.5. The problem is in HgLogOperation.m at line 293, which adds extra closing tag </repository> to the end of final XML output generated by Mercurial command and then Murky failed in parsing this XML. This has been most likely implemented due to the issue with older versions of Mercurial, which didn't add footer to the output.

    At this time there is one workaround how you can fix this issue without need to recompile Murky:

    • in Finder right click Murky.app and select Show package content
    • go to Resources directory
    • in files xml.style and xmlminimal.style on second line remove the text </repository> (between the apostostrophes), so this line should look like following:
    footer = ''
    

    Enjoy :)

  4. Jens Alfke repo owner
    • changed status to open

    Sorry for not noticing this sooner! I've been moving house and somewhat distracted from Murky. I'll come up with a good workaround (that retains compatibility with earlier versions of hg) and get a new release out ASAP.

  5. Log in to comment