Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial Eclipse Error

I am trying to use mercurial in eclipse. I downloaded mercurial eclipse plugin for this.
But, despite I had reinstalled it many times, it gives the same error, I put the screenshot below.

Mercurial for Eclipse error message

Checking encoding (cp1254)...
Checking extensions...
Checking templates...
Checking patch...
Checking commit editor...
 Can't find editor 'notepad' in PATH
 (specify a commit editor in your configuration file)
Checking username...
1 problems detected, please check your install!. Command line: hg -y debuginstall

I do not know how to handle this. Any help will be appreciated very much, thank you.

like image 916
emre Avatar asked Dec 07 '22 23:12

emre


2 Answers

I encountered the same problem when I tried to run Eclipse x64 on Win 7 x64. The MercurialEclipse seems not able to access C:\windows\system32\ folder, although it has been specified in system PATH. You need to specify the location of editor in the Mercurial.ini file. This file is located at c:\Users\<your_username>\mercurial.ini.

Under the username = ... line, add a line to specify the editor (see following). Remember not to put quotes around the path.

[ui]
username = <username>
editor = c:\Windows\System32\notepad.exe
like image 174
Qinjie Avatar answered Jan 03 '23 12:01

Qinjie


(Note: similar to bug 13505 in Mercurial Eclipse project)

The Eclipse inherits the path from your current session.
Open a DOS session, and check if said session does have notepad in its path (which it should considering notepad is in C:\Windows\system32\notepad.exe). Make sure C:\Windows\system32 (or %SystemRoot%\system32) is in first position in your PATH (in case of side effect with other paths with spaces or special characters in it).
If the path is correct, then launch the eclipse from that command-line DOS windows, and see if the problem persists.


The OP emre reports its %PATH% being:

C:\Program Files\NVIDIA Corporation\PhysX\Common;
C:\Program Files\Java\jdk1.6.0_20\bin;
D:\eclipse-java-helios-sr1-win32\eclipse\android-2.2_r0-windows\android-2.2_r0-windows\tools;
C:\Program Files\Java\jdk1.6.0_20\bin

In other word, no %SystemRoot%\system32.

You need to edit the System variables in the Environment variable settings of Windows, and add in the first place in the PATH variable:

%SystemRoot%\system32

Then you can open a new DOS session, launch eclipse from there and ot should work fine.

like image 37
VonC Avatar answered Jan 03 '23 11:01

VonC