<p>Not sure whether this is a 100% issue of the MacOS build, but I have seen such strange behaviour only on El Capitan by now.</p>
<p>When trying to use Mercurial from GeanyVC I'm getting a backtrace</p>
<pre><code>$ pwd
/Applications/Geany.app/Contents/MacOS
$ ./geany                                                                                                                                           1
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Library/TeX/texbin
2017-02-03 09:31:39.632 geany-bin[40089:622171] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. 

(geany-bin:40089): SpellCheck-WARNING **: Stored language ('en_US') could not be loaded.
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 44, in <module>
    mercurial.util.setbinary(fp)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 152, in __getattribute__
    self._load()
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 100, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/util.py", line 122, in <module>
    statfiles = getattr(osutil, 'statfiles', platform.statfiles)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 152, in __getattribute__
    self._load()
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 100, in _load
    mod = _hgextimport(_import, head, globals, locals, None, level)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/demandimport.py", line 53, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/__init__.py", line 120, in load_module
    mod = imp.load_module(name, *modinfo)
ImportError: dlopen(/usr/local/Cellar/mercurial/4.0.2/lib/python2.7/site-packages/mercurial/osutil.so, 2): Symbol not found: _clock_gettime
  Referenced from: /Applications/Geany.app/Contents/Resources/lib/liblzma.5.dylib (which was built for Mac OS X 10.12)
  Expected in: /usr/lib/libSystem.B.dylib
 in /Applications/Geany.app/Contents/Resources/lib/liblzma.5.dylib

(geany-bin:40089): GeanyVC-CRITICAL **: vcdiff_file_activated: assertion 'vc' failed
</code></pre>
<p>Mercurial is installed via brew and is working from normal shell. As well as e.g. git — also installed via brew — is working.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-osx/issues/5">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ0TbhfPaIe9cRGkwBVxiMNs1pik3ks5rYudagaJpZM4L2E5v">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ18EVBqEaP6sXv-j5fer13byKYRpks5rYudagaJpZM4L2E5v.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-osx/issues/5"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-osx","title":"geany/geany-osx","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-osx"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Cannot execute hg via GeanyVC (#5)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-osx/issues/5"}}}</script>