Note that there are some explanatory texts on larger screens.

plurals
  1. POMercurial Editor: "abort: The system cannot find the file specified"
    primarykey
    data
    text
    <p>I have a problem getting Mercurial to recognise my editor. I have a file, <code>c:\windows\notepad.exe</code> and typing "notepad" at the command prompt works. I can commit by using the "<code>-m</code>" argument to supply the commit title. But a simple "<code>hg commit</code>" brings up the error.</p> <p>A call to "<code>hg --traceback commit</code>" brings up:</p> <pre><code>Traceback (most recent call last): File "mercurial\dispatch.pyc", line 47, in _runcatch File "mercurial\dispatch.pyc", line 466, in _dispatch File "mercurial\dispatch.pyc", line 336, in runcommand File "mercurial\dispatch.pyc", line 517, in _runcommand File "mercurial\dispatch.pyc", line 471, in checkargs File "mercurial\dispatch.pyc", line 465, in &lt;lambda&gt; File "mercurial\util.pyc", line 401, in check File "mercurial\commands.pyc", line 708, in commit File "mercurial\cmdutil.pyc", line 1150, in commit File "mercurial\commands.pyc", line 706, in commitfunc File "mercurial\localrepo.pyc", line 836, in commit File "mercurial\cmdutil.pyc", line 1155, in commiteditor File "mercurial\cmdutil.pyc", line 1184, in commitforceeditor File "mercurial\ui.pyc", line 361, in edit File "mercurial\util.pyc", line 383, in system File "subprocess.pyc", line 470, in call File "subprocess.pyc", line 621, in __init__ File "subprocess.pyc", line 830, in _execute_child WindowsError: [Error 2] The system cannot find the file specified abort: The system cannot find the file specified </code></pre> <p>I've tried setting the HGEDITOR environment variable, setting "<code>visual =</code>" and "<code>editor =</code>" in the <code>Mercurial.ini</code> file. I tried full path as well as command only. I also tried copying the notepad.exe file into both the current folder as well as the mercurial folder.</p> <p>Ideally I would like to use the editor at this location "<code>C:\PortableApps\Notepad++Portable\Notepad++Portable.exe</code>", but at this stage I would be happy with any editor!</p> <p>HG debugconfig output:</p> <pre><code>c:\wamp\www\SiteAB.com\web&gt;hg debugconfig bundle.mainreporoot=c:\wamp\www\SiteAB.com\web ui.username=killroy ui.shell=true ui.verbose=true ui.visual="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe" ui.editor="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe" </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload