HgSccHelper.Hg threw an exception

Issue #17 resolved
Anonymous created an issue

After installing hgscc and attempting to use it for the first time by adding a single file within Visual Studio 2008 I get "The type initializer for 'HgSccHelper.Hg' threw an exception. I have TortoiseHG installed and am able to add files and use Mercurial without issue. At a command prompt hg.exe is located.

Comments (4)

  1. Sergey Antonov repo owner

    Looks like it can't find an hg executable for some reason.

    Can you please check, that your PATH environment variable does not contain invalid characters: '<' (less than), '>' (greater than), '|' (pipe), '"' (quote) and (tab) ? You can do this in Control Panel -> System -> Advanced -> Environment variables. Also note, that there is global PATH environment variable for all users and optional additional PATH variable for current user.

    If this doesn't help, then I can send you a developer version of plugin with logs to find out the problem. Drop me a email at sergant_@mail.ru

  2. Sergey Antonov repo owner

    Without additional info I can not fix the issue.

    I guess it is because you have a quoted directory in your PATH environment variable. If so, remove the quotes.

    I'll include a handling of quoted directories in the PATH in the next version of HgSccPackage.

  3. Log in to comment