Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmdserver doesn't work in Windows #103

Open
beetleb opened this issue May 28, 2019 · 1 comment
Open

cmdserver doesn't work in Windows #103

beetleb opened this issue May 28, 2019 · 1 comment

Comments

@beetleb
Copy link

beetleb commented May 28, 2019

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
Copy link
Contributor

ncalexan commented Jan 24, 2021

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

monky/monky.el

Line 481 in e046322

"monky-hg" buf "sh" "-c"

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.

ncalexan added a commit to ncalexan/monky that referenced this issue Jan 29, 2021
This allows to redirect stderr to a buffer from within Emacs rather
than using a shell to redirect.  This works even under Windows.
ncalexan added a commit to ncalexan/monky that referenced this issue Feb 5, 2021
This allows to redirect stderr to a buffer from within Emacs rather
than using a shell to redirect.  This works even under Windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants