Home Download Buy Blog Forum Support

Mercurial (Sublime Text package)

Mercurial (Sublime Text package)

Postby guillermooo on Fri Aug 23, 2013 6:40 pm

I've ported my S2 Mercurial package (formerly known as SublimeHg) to S3 and I have renamed it to Mercurial.

If you want to try it out, you can find a working version here:

https://github.com/guillermooo/Mercurial
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Mercurial (Sublime Text package)

Postby tgkeul on Sun Sep 08, 2013 8:11 pm

Just installed your package to give it a try.

To my surprise ST3 prints following error message on the console view:
Code: Select all
reloading plugin Mercurial.actions
reloading plugin Mercurial.builder
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
    m = importlib.import_module(modulename)
  File "X/importlib/__init__.py", line 88, in import_module
  File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 671, in load_module
    exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "builder in C:\Users\Thomas\AppData\Roaming\Sublime Text 3\Installed Packages\Mercurial.sublime-package", line 16, in <module>
  File "X/argparse.py", line 1598, in __init__
AttributeError: 'module' object has no attribute 'argv'
reloading plugin Mercurial.mercurial
reloading plugin Mercurial.mercurial_cli
reloading plugin Mercurial.test_harness


I'm running ST3 Build 3053 von Win7 64

May be you can provide a hint how to address this issue?

thanks in advance
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: Mercurial (Sublime Text package)

Postby guillermooo on Sun Sep 08, 2013 8:50 pm

It isn't an issue with the package. You're installing the development version, which includes utilities not meant to be included in the .sublime-package for end users.

The error is harmless anyway, but if you don't want to see the traceback, you can install the pre-built .sublime-package:

https://bitbucket.org/guillermooo/mercurial/downloads

I suppose you've installed this via Package Control. If you use the link above, you won't get updates automatically, etc. You'll have to install new versions manually.

In any case, this annoyance can be solved, so if you open an issue in the GitHub repo I might get around to fixing it at some point:

https://github.com/guillermooo/Mercurial

Cheers,
Guillermo
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Mercurial (Sublime Text package)

Postby tgkeul on Mon Sep 09, 2013 8:23 am

Thank you,
the pre-built is the better choice for me.

Also, I got a little confused not to find any Mercurial command in the command palette. It took a while to realise, they are named SublimeHg.
Maybe you can adjust this some day.
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: Mercurial (Sublime Text package)

Postby WoW-rotfl on Tue Feb 25, 2014 8:00 pm

Hi, i have a problem in OSX, installed sublime 3 latest build, mercurial from official source (v2.9) and sublimehg plugin via package control, but when can't use it, its always write error

Cannot start server (Your Mercurial version might be too old)


and if i use "kill current server":

Flie doens't exist. Aborting


What can be wrong?
WoW-rotfl
 
Posts: 2
Joined: Tue Feb 25, 2014 7:52 pm

Re: Mercurial (Sublime Text package)

Postby guillermooo on Wed Feb 26, 2014 8:07 am

* Is the mercurial binary on your path?
* Have you opened a file that is already in a mercurial repo?
guillermooo
 
Posts: 725
Joined: Thu Jul 23, 2009 9:06 am

Re: Mercurial (Sublime Text package)

Postby WoW-rotfl on Wed Feb 26, 2014 10:15 am

1. Should I input a path to binary? where i can input path? hg is located by default path "usr/local/bin"
2. Yep tried write this message:
Errno2 no such file or directory 'hg'
WoW-rotfl
 
Posts: 2
Joined: Tue Feb 25, 2014 7:52 pm


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests