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.

Bug 104793 - Mercurial menu blank on Mac
Summary: Mercurial menu blank on Mac
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-25 01:54 UTC by John Rice
Modified: 2008-01-03 09:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (1.23 KB, patch)
2007-05-29 09:12 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Rice 2007-05-25 01:54:56 UTC
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.
Comment 1 Padraig Obriain 2007-05-28 15:06:25 UTC
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.
Comment 2 John Rice 2007-05-29 03:06:23 UTC
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.
Comment 3 Padraig Obriain 2007-05-29 09:12:30 UTC
Created attachment 42878 [details]
Proposed patch
Comment 4 John Rice 2007-08-28 18:16:23 UTC
Patch applied to head