This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Issue reported by Joe Wölfel System Mac Mini (x86 dual core - also reported on PPC) Mac OSX 10.4.9 NetBeans 6.0 m9 preview Mercurial Plugin 1.0.0.42.1 Mercurial 0.9.3 Python 2.4.3. http://mercurial.berkwood.com/ http://www.python.org/ftp/python/2.4.3/Universal-MacPython-2.4.3-2006-04-07.dmg http://mercurial.berkwood.com/binaries/Mercurial-0.9.3-py2.4-macosx10.4.zip I installed terminPython and Mercurial - confirmed mercurial was working by typing hg version. I then started NB IDE, installed the plugin, restarted the IDE and do see the top level Versioning/Mercurial menu with nothing in it. The version check code is failing for some reason. Output on mac: $ hg version Mercurial Distributed SCM (version 0.9.3) Copyright (C) 2005, 2006 Matt Mackall <mpm@selenic.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have reproduce this problem. It looks like the mercurial binary is not on the path when NetBeans is running. When I installed mercurial, hg was installed into /Library/Frameworks/Python.framework/Versions/Current/bin. To work around this problem I su'd to root and in /usr/bin ln -s /Library/Frameworks/Python.framework/Versions/Current/bin/hg . Then after restarting NetBeans the mercurial menu options were available. The next version of the mercurial plugin will have a mercurial options dialog available from "Tools", "Options", "Miscallaneous" which allows one to specify where the path to the mercurial executable.
Padraig - can you detect the OS and for Mac set the default exe path to /Library/Frameworks/Python.framework/Versions/Current/bin/hg which will be what's displayed in the Tools/ Options/ Miscellaneous/ Mercurial section. Would be good to confirm what it needs to be set to on the otehr OS's and special case them as well if necessary.
Created attachment 42878 [details] Proposed patch
Patch applied to head