Mercurial for Sublime errors

Issue #10 resolved
Peter Daly-Dickson
created an issue

Thanks for a great plugin!

My challenge is I'm unable to view Branch/Tag/Changeset on the status bar. I guess that's Mercurial for Sublime being unable to find hg on my Mac.

FixMacPath via http://plested.wordpress.com/2014/03/14/sublime-text-and-mercurial/ didn't solve the issue.

And I get two consistent errors in the Sublime console...

  File "cmds_status in /Users/peter/Library/Application Support/Sublime Text 3/Installed Packages/Mercurial for Sublime.sublime-package", line 26, in run
  File "lib.mercurial in /Users/peter/Library/Application Support/Sublime Text 3/Installed Packages/Mercurial for Sublime.sublime-package", line 12, in __init__
Exception: The given path is not valid!

I've attempted to change the user setting for...

    // Path to the mercurial binary.
    // Get it by calling ```which hg```.
    "bin": "hg"

but have no idea of the correct syntax!

Can you help?

cheers

Pete

Comments (5)

  1. Daniel Siepmann repo owner

    Did you try to call

    which hg
    

    inside your terminal? The result should be the full absolute path to the hg binary. On Mac OS X you need to install Mercurial. E.g. using Homebrew. The syntax is like:

    "bin": "hg"
    

    For example

    "bin": "/usr/local/bin/hg"
    

    I don't use Sublime Text any longer, but if the issue still exists I'll investigate into it and try to fix it.

    Thanks for using my plugin :)

  2. Peter Daly-Dickson reporter

    Yes. Very much! (though I only came across your email over the weekend)

    When I used which hg and then ran hg, I got...

    [image: Inline images 1]

    Guess I need to fix my hg installation!

    I normally just use sourcetree, and that's configured to use it's own hg.

    Thanks for your help.

    cheers

    Pete

    P.S. How come no more Sublime Text?!

  3. Log in to comment