Sublime Forum

Mercurial (Sublime Text package)

#1

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:

github.com/guillermooo/Mercurial

0 Likes

#2

Just installed your package to give it a try.

To my surprise ST3 prints following error message on the console view:

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

0 Likes

#3

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:

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:

github.com/guillermooo/Mercurial

Cheers,
Guillermo

0 Likes

#4

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.

0 Likes

#5

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

and if i use “kill current server”:

What can be wrong?

0 Likes

#6
  • Is the mercurial binary on your path?
  • Have you opened a file that is already in a mercurial repo?
0 Likes

#7
  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:
0 Likes