Background
The first time I run magit-status
after starting Emacs, I get a series of 7 alert dialogs popping up. Each one just says "emacsclient 25.1" and has an OK button. They don't seem to do anything at all.
Nothing in the *Messages*
buffer seems to relate to this.
I saw some reference in the Magit manual about needing to locate emacsclient, so I did put C:\Emacs\bin
into my path.
This only happens the first time. After that, magit-status
works fine without any popups at all.
Edit More information... It looks like this is coming from within Magit's with-editor-locate-emacsclient
.
I just tried running that function directly. Got the same bunch of dialogs. After confirming them all (they only have "OK" buttons, so confirm it is, I guess!) I get something in *Warnings*
:
Warning (with-editor): Cannot determine a suitable Emacsclient
Determining an Emacsclient executable suitable for the current Emacs instance failed. For more information please see https://github.com/magit/magit/wiki/Emacsclient. Warning (with-editor): Cannot determine a suitable Emacsclient
Determining an Emacsclient executable suitable for the current Emacs instance failed. For more information please see https://github.com/magit/magit/wiki/Emacsclient.
It looks a lot like a path problem, even though the directory that has emacsclient.exe is on my path.
System Config
- Magit 2.10.2
- Windows 10
- Emacs 25.1.1