8

I just installed a mercurial plugin for eclipse. The installation process went well. But after installing when I restarted eclipse an error was shown.

The error says:

Multiple Mercurial errors have occurred. Please check the Error Log view for detailed information. . Command line: hg -y debuginstall

I can't find any possible solution for this.

Yurii
  • 4,811
  • 7
  • 32
  • 41
Naddy
  • 2,664
  • 6
  • 25
  • 38

4 Answers4

10

Try running hg -y debuginstall from the command line. It should show something like that:

Checking encoding (cp1252)...
Checking installed modules (D:\Kazan\mercurial\library.zip\mercurial)...
Checking templates...
Checking commit editor...
Checking username...
No problems detected

If it doesn't, it should give you an indication on what's the problem. If the command is not found, install mercurial from https://www.mercurial-scm.org/wiki/Download or install tortoise-hg from http://tortoisehg.bitbucket.io/

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Serge Farny
  • 932
  • 10
  • 22
  • Use "Window + R" to open the run dialog, run "cmd.exe" to open a terminal, and write the command there. – Serge Farny Jun 14 '13 at 07:56
  • 5
    After installing tortoisehg, I still had to go to Window->Preferences->Team->Mercurial and browse to the hg.exe executable that was installed with tortoisehg. – Rick Nov 21 '13 at 14:35
  • @scawf your approach requires installation of an extra Mercurial client (tortoisehg) which is not required for the plugin to work, just the core mercurial installation that comes bundled with it is needed. Just installing Mercurial alone from [here](https://www.mercurial-scm.org/wiki/Download) would have done the trick. – Ahmed Akhtar Oct 23 '15 at 04:33
  • After having specified the hg.exe path in Window->Preferences->Team->Mercurial (as suggested by Rick) I had to *reimport* my Mercurial project in the workspace. – Pino Jul 09 '21 at 08:40
3

The plugin, is just a user interface and uses the underlying Mercurial installation.

This error occurs primarily when Mercurial Plugin for Eclipse is installed without actually installing Mercurial earlier on your system.

To solve this problem, first:

  1. Install Mercurial on your system using one of the installers that best suits you from here.
  2. Go to Window->Preferences->Team->Mercurial and in mercurial executable field, browse to the:

hg.exe

executable that was installed with the mercurial installation above.

Mercurial Plugin for Eclipse will work just fine now.

Community
  • 1
  • 1
Ahmed Akhtar
  • 1,444
  • 1
  • 16
  • 28
  • @scawf This approach does not require installation of TortoiseHG which adds an extraneous Mercurial Client to the system in addition to the Mercurial install which is not needed to solve the problem. – Ahmed Akhtar Oct 19 '15 at 18:00
1

i have found the same problem... seems my update of the Nvidia driver deletes all my variables environments and Mercurial can find the notepad.exe i found the solution adding in the mercurial.ini locate in Users folder adding the path to notepad.exe directly.

[ui]
username=myusername
editor = c:\\Windows\\System32\\notepad.exe
ignore=....

i have found the solution here

i hope helps somebody

Community
  • 1
  • 1
chiperortiz
  • 4,751
  • 9
  • 45
  • 79
0

Best solution which I found:

  1. Install eclipse Juno.

  2. Goto: help -> eclipse marketplace -> enter 'mercurial' and do a search, select first option of mercurial.

  3. Then go to Windows -> Preferences -> Team -> Mercurial select and copy path from Mercurial Executable. Now open your previous eclipse (Luna or mars).

  4. Go to same path. Windows -> Preferences -> Team -> Mercurialand paste that path in Mercurial Executable. Now it will work.

Martin
  • 21,314
  • 2
  • 24
  • 20