Thursday, September 22, 2011

Eclipse Mercurial plugin uses executable with version different than locally installed executable

I encountered the following issue:

1. Cloned a Mercurial repository from the command line.
2. In Eclipse, went to File -> New -> Other... -> "Create New Mercurial Repository"
3. Browsed for the newly cloned local repository and clicked the "Finish" button.
4. G0t this error in Eclipse: "abort: requirement 'dotencode' not supported!"

This was happening due to a version mismatch between the Mercurial executable used by Eclipse and the Mercurial executable installed locally. To fix this:

1. Went to Windows -> Preferences -> Team -> Mercurial in Eclipse.
2. Unchecked the "Use default (built-in) Mercurial executable" check-box.
3. Browsed for local Mercurial executable in the "Mercurial Executable" field.
4. Clicked the "OK" button on the dialog.

1 comment:

Copter said...

Impossible to found this checkbox to use an another default hg executable!!

Eclipse SDK
Version: 3.7.0
Build id: I20110613-1736

Mercurial
1.8.2.v201107291920