NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans and Mercurial
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
David Smith
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:18 pm    Post subject: NetBeans and Mercurial Reply with quote

Hi,

It seems as if NetBeans is specifically looking for an hg.exe file to
execute Mercurial. For various reasons I have had to build Mercurial
from sources and so I have both an hg.bat file and an hg.py file rather
than hg.exe.

When I point NetBeans at the directory containing these it still
complains that "Mercurial could not be found. No Mercurial commands can
be executed. Please check Mercurial is installed and on your PATH."

If I do "hg version" from a command prompt I get:

Quote:
C:\development\BUILD>hg version
Mercurial Distributed SCM (version 1.2.1)

Copyright (C) 2005-2009 Matt Mackall <address-removed> and others
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.

So Mercurial is installed and it is on my PATH.

Is this a bug or by design? Should I raise an issue about it?

Finally, is there anything I can do in the short term to get around the
problem? Installing Mercurial twice is not really an acceptable option.

David

--
Back to top
Ondrej Vrabec
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:36 pm    Post subject: NetBeans and Mercurial Reply with quote

Hi,
please specify the complete path to the executable in Tools > Options >
Versioning > Mercurial > Mercurial Executable Path.
This should instruct the plugin to use this exact path.

Ondra

David Smith wrote:
Quote:
Hi,

It seems as if NetBeans is specifically looking for an hg.exe file to
execute Mercurial. For various reasons I have had to build Mercurial
from sources and so I have both an hg.bat file and an hg.py file rather
than hg.exe.

When I point NetBeans at the directory containing these it still
complains that "Mercurial could not be found. No Mercurial commands can
be executed. Please check Mercurial is installed and on your PATH."

If I do "hg version" from a command prompt I get:


Quote:
C:\development\BUILD>hg version
Mercurial Distributed SCM (version 1.2.1)

Copyright (C) 2005-2009 Matt Mackall <address-removed> and others
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.


So Mercurial is installed and it is on my PATH.

Is this a bug or by design? Should I raise an issue about it?

Finally, is there anything I can do in the short term to get around the
problem? Installing Mercurial twice is not really an acceptable option.

David

Back to top
Daoud AbdelMonem Faleh
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:37 pm    Post subject: NetBeans and Mercurial Reply with quote

Hi David,

Try installing windows package from here [1]

[1] http://mercurial.berkwood.com/

HTH,
Daoud AbdelMonem Faleh.

David Smith a
Back to top
David Smith
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:40 pm    Post subject: NetBeans and Mercurial Reply with quote

Ondrej Vrabec wrote:
Quote:
Hi,
please specify the complete path to the executable in Tools > Options >
Versioning > Mercurial > Mercurial Executable Path.
This should instruct the plugin to use this exact path.


Thanks but I have already tried that. The error messages are with the
correct path in place. I think it would be better if you specified the
actual file to execute *not* just the path.

David

--
Back to top
David Smith
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:43 pm    Post subject: NetBeans and Mercurial Reply with quote

Daoud AbdelMonem Faleh wrote:
Quote:
Try installing windows package from here [1]
[1] http://mercurial.berkwood.com/

Thanks, but as I said:
Quote:
David Smith a
Back to top
Daoud AbdelMonem Faleh
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 12:56 pm    Post subject: NetBeans and Mercurial Reply with quote

That's how I got it to work under windows.

David Smith a
Back to top
David Smith
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 1:35 pm    Post subject: NetBeans and Mercurial Reply with quote

David Smith wrote:
Quote:
Is this a bug or by design? Should I raise an issue about it?

A quick (!) look at the source code shows that NetBeans is indeed
looking *only* for hg.exe. There is a constant defined in HgCommand
called HG_WINDOWS_CMD which is a string with the value of ".cmd", but
this is never used as far as I can tell.

I think it's worth raising an issue about this.

Quote:
Finally, is there anything I can do in the short term to get around the
problem? Installing Mercurial twice is not really an acceptable option.

Other than installing 2 versions of Mercurial I can see no way round the
problem.

David

--
Back to top
David Smith
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 1:45 pm    Post subject: NetBeans and Mercurial Reply with quote

David Smith wrote:
Quote:
David Smith wrote:
I think it's worth raising an issue about this.

Someone beat me to it:
http://www.netbeans.org/issues/show_bug.cgi?id=146089

Should have checked there first, sorry.

David
--
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 7:07 pm    Post subject: NetBeans and Mercurial Reply with quote

Daoud,

I was reading your signature and I was wondering; shouldn't it be:

"Le dieu n'est pas a craindre ; la mort ne donne pas de souci ; et
tandis que le bien est facile a obtenir, le mal est difficile a supporter."

Let me know. I just find a contraction in it, the way it's formulated right now....


From: Daoud AbdelMonem Faleh <address-removed>
To: address-removed
Sent: Thursday, April 16, 2009 7:55:23 AM
Subject: Re: [nbusers] NetBeans and Mercurial

That's how I got it to work under windows.

David Smith a
Back to top
Daoud AbdelMonem Faleh
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 7:17 pm    Post subject: NetBeans and Mercurial Reply with quote

Melongo,

This is out of topic but let's go on Smile
Well there is a condition in the sentence "*tandis que* le bien est
facile a obtenir" witch mean as long as we can get goodness we can pass
throw the bad things. In fact this one of Epicureanism precepts.

Kind Regards,
Daoud AbdelMonem Faleh.

Melongo Annabel a
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Thu Apr 16, 2009 7:23 pm    Post subject: NetBeans and Mercurial Reply with quote

Thanks Daoud for the clarification. Nice thought.


From: Daoud AbdelMonem Faleh <address-removed>
To: address-removed
Sent: Thursday, April 16, 2009 2:17:23 PM
Subject: Re: [nbusers] NetBeans and Mercurial

Melongo,

This is out of topic but let's go on Smile
Well there is a condition in the sentence "*tandis que* le bien est
facile a obtenir" witch mean as long as we can get goodness we can pass
throw the bad things. In fact this one of Epicureanism precepts.

Kind Regards,
Daoud AbdelMonem Faleh.

Melongo Annabel a
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Mon Apr 20, 2009 11:14 pm    Post subject: NetBeans and Mercurial Reply with quote

Even though it gives you that error, it would still allow you to setup Mercurial http://netbeanside61.blogspot.com/2008/04/mercurial-in-netbeans-using-mercurial.html


From: tjrush <address-removed>
To: address-removed
Sent: Monday, April 20, 2009 4:30:47 PM
Subject: [nbusers] NetBeans and Mercurial

I used the windows installer for TortoiseHg. I do have an hg.exe. If I enter "hg.exe version" on the command line, I get the appropriate version and copyright notice. I have also entered the path to the hg.exe file under the Netbeans 6.5 tools option. However, if I attempt a commit, I get the Mercurial can't be found message mentioned in Dave's original post.



Does Mercurial work under any conditions?



Product Version: NetBeans IDE 6.5 (Build 200811100001)

Java: 1.6.0_12; Java HotSpot(TM) Client VM 11.2-b01

System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

Userdir: C:\Users\Tom\.netbeans\6.5



Tom
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Tue Apr 21, 2009 1:41 am    Post subject: NetBeans and Mercurial Reply with quote

Add the mercurial to your environment variables' path. Here's how mine look:

C:\Tcl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\apache-ant-1.7.1\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\python26;C:\MinGW\bin;C:\Program Files\KDiff3 ;C:\Program Files\Mercurial;C:\Program Files\TortoiseHg;C:\Mercurial_src

Thanks.


From: tjrush <address-removed>
To: address-removed
Sent: Monday, April 20, 2009 7:02:20 PM
Subject: [nbusers] NetBeans and Mercurial


Melongo Annabel wrote:
Quote:
Even though it gives you that error, it would still allow you to setup Mercurial http://netbeanside61.blogspot.com/2008/04/mercurial-in-netbeans-using-mercurial.html (http://netbeanside61.blogspot.com/2008/04/mercurial-in-netbeans-using-mercurial.html)




Melango,



If the above was a reply to my post, I don't understand. I can set up a project and initialize Mercurial. However, when I try to commit I get the message that either Mercurial is not installed or not in the path. I don't see that the article you referenced applies to my problem.



Tom
Back to top
Peter B. West
Posted via mailing list.





PostPosted: Tue Apr 21, 2009 3:41 am    Post subject: NetBeans and Mercurial Reply with quote

tjrush wrote:
Quote:
Melongo Annabel wrote:
Quote:
Add the mercurial to your environment variables' path. Here's how mine look:


Quote:
C:\Tcl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Intel\Wireless\Bin\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\apache-ant-1.7.1\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\python26;C:\MinGW\bin;C:\Program Files\KDiff3 ;C:\Program Files\Mercurial;C:\Program Files\TortoiseHg;C:\Mercurial_src




Melongo,



The TortoiseHg installation added the directory to my path. It now looks like this:

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\jEdit;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\TortoiseHg;



As mentioned in my original post entering "hg.exe version" on the command line (while in C:\Users\Tom) will generate the proper version and copyright information.

Sorry if I missed this earlier, but do you have any path set on
Tools->Options->Miscellaneous->Versioning->Mercurial->Mercurial
Executable Path?



--
Peter B. West <http://cv.pbw.id.au/>
Folio <http://defoe.sourceforge.net/folio/folio.html>
Back to top
David Smith
Posted via mailing list.





PostPosted: Tue Apr 21, 2009 7:16 am    Post subject: NetBeans and Mercurial Reply with quote

Tom,

tjrush wrote:
Quote:
I used the windows installer for TortoiseHg. I do have an hg.exe. If I enter "hg.exe version" on the command line, I get the appropriate version and copyright notice. I have also entered the path to the hg.exe file under the Netbeans 6.5 tools option. However, if I attempt a commit, I get the Mercurial can't be found message mentioned in Dave's original post.
Does Mercurial work under any conditions?

I can confirm that Mercurial from the "official" installer package works
fine for me. I haven't tried TortoiseHG myself so can't comment about
that specific installer, but I can't see why it wouldn't. Looking at the
source code it is specifically looking for hg.exe on your path or in the
directory you specify, so from what you have said it *should* work.

I *have* got TortoiseSVN on my machine and that puts executables in
TortoiseSVN\bin, could that be the issue for you as you seem to have
TortoiseHG only in your path? But then you say "hg version" from the
command line works.

If I have time today I will install TortoiseHG and point NetBeans at it
to see what I get and report back. Hey, what's another version of
mercurial on my machine! :)

David

--
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo