ananthakumaran / monky

Magit for Hg
http://ananthakumaran.in/monky/index.html
GNU General Public License v3.0
154 stars 30 forks source link

cmdserver doesn't work in Windows #103

Open beetleb opened 5 years ago

beetleb commented 5 years ago

When I try the cmdserver in Windows, I get:

apply: Searching for program: No such file or directory, sh

I'm pretty sure Mercurial does have a cmdserver in Windows. Any tips on how I can fix this?

Thanks.

ncalexan commented 3 years ago

When I try the cmdserver in Windows, I get:

apply: Searching for program: No such file or directory, sh

This is simply because we start the command server with sh -c, which just isn't portable: see https://github.com/ananthakumaran/monky/blob/e04632277ef24acacc029ae29db1fadc458ae83b/monky.el#L481

I'm pretty sure Mercurial does have a cmdserver in Windows. Any tips on how I can fix this?

I imagine we're using the shell here strictly to redirect stderr to /dev/null, and imagine that we can invoke hg --cmdserver ... correctly on Windows using Emacs builtin process primitives and managing stderr "by hand". I don't often work on my Windows box but I want to make #109 better for my own purposes and will try to address this issue at the same time.