monky
monky copied to clipboard
cmdserver doesn't work in Windows
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.
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.