Mercurial Eclipse Error

I am trying to use mercury in an eclipse. I downloaded the mercury eclipse plugin for this.
But, despite the fact that I 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 would be greatly appreciated, thanks.

+4
source share
5 answers

(Note: similar to error 13505 in the Mercurial Eclipse project)

Eclipse inherits the path from your current session.
Open a DOS session and check if the specified notepad session has in its path (which should take into account notepad in C:\Windows\system32\notepad.exe ). Make sure that C: \ Windows \ system32 (or %SystemRoot%\system32 ) is in the first position of your PATH (in case of a side effect with other paths with spaces or special characters in it). If the path is correct, start the eclipse from these DOS windows with the command line and check if the problem persists.


OP emre reports <<24>:

 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 words, no %SystemRoot%\system32 .

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

 %SystemRoot%\system32 

Then you can open a new DOS session by running eclipse and ot should work fine.

+6
source

I ran into the same problem when I tried to run Eclipse x64 on Win 7 x64. It seems that MercurialEclipse does not have access to the C: \ windows \ system32 \ folder, although it was listed in the system PATH. You need to specify the location of the editor in the Mercurial.ini file. This file is located in c:\Users\<your_username>\mercurial.ini .

In the username = ... line, add a line to indicate the editor (see below). Remember to put quotation marks around the path.

 [ui] username = <username> editor = c:\Windows\System32\notepad.exe 
+6
source

I had the same problem and searched the clock until I tried to avoid a backslash in the path for the editor. so I edited mercurial.ini (on my win7 ), for example:

 [ui] username = <username> editor = c:\\Windows\\System32\\notepad.exe 

and he worked.

+2
source

Three additions:

  • It seems that the Tortoise HG 3.3 configuration utility added my editor in the [tortoisehg] section, and not in the [ui] mercurial.ini section. For Eclipse Mercurial to work, the editor path should also be in the [ui] section. Otherwise, eclipse will have this error.
  • using a slash suitable for a hidden backslash
  • In Windows 8.1, notepad runs easily from the command line (on the system path), and yet the error above still occurs. In my hands, the general advice on the system path given above seems targeted.
0
source

Another thing to look out for is the HGEDITOR environment variable, which overrides the editor setting in mercurial.ini. I installed HGEDITOR in C: \ Windows \ System32 \ notepad.exe which did not work (due to captive backslashes), and all my changes to mercurial.ini were ignored. Changing HGEDITOR to C: \\ Windows \\ System32 \\ notepad.exe finally got rid of Mercurial Eclipse errors.

0
source

Source: https://habr.com/ru/post/947227/


All Articles