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

pure fails in Zsh on Linux subsystem (beta), Windows 10 #210

Closed
fredrikaverpil opened this issue May 18, 2016 · 6 comments
Closed

pure fails in Zsh on Linux subsystem (beta), Windows 10 #210

fredrikaverpil opened this issue May 18, 2016 · 6 comments

Comments

@fredrikaverpil
Copy link

fredrikaverpil commented May 18, 2016

I realize this is a corner case...

So, I have zsh installed in bash on Windows and all is well so far. I tried to also run pure, but I'm getting errors such as this when I cd into a git repository:

~cd .dotfiles
async_job:zpty:4: no such pty command: prompt_pure
async_job:zpty:4: no such pty command: prompt_pure

~/.dotfiles master
❯

Not sure why. Could it be that I'm missing some prerequisites?

My zsh setup can be seen here. The async and prompt_pure_setup are being created/symlinked by the prompt.zsh script.

@mafredri
Copy link
Collaborator

Would you mind running the following commands and displaying the output?

❯ zpty -b test cat

❯ zpty -w test hi

❯ zpty -r test
hi

❯ zpty -d test

❯ zpty -L
zpty -b prompt_pure _async_worker -p 94857 -u -n

@fredrikaverpil
Copy link
Author

Sure!

zpty -b test cat

zpty: can't open pseudo terminal: exec format error

zpty -w test hi

zpty: no such pty command: test

zpty -r test

zpty: no such pty command: test

zpty -d test

zpty: no such pty command: test

zpty -L

...did not return anything at all.

@mafredri
Copy link
Collaborator

Ok, so the problem is that your version of zsh is not capable of opening up a zpty instance. There have always been problems on Windows, as can be seen in #141. Although the Babun shell did seem to be capable of opening zpty instances, which does not seem to be the case here.

Is this some special version of zsh? I'm afraid I'm not very familiar with the new Bash@Windows stuff.

@fredrikaverpil
Copy link
Author

fredrikaverpil commented May 18, 2016

Aha. No, this is just what you get when you apt-get install zsh, which is what I did. Then I just ran /bin/zsh to enter zsh.

I don't have a good idea on what to do to try to fix this at the moment, but I'll report back if I find anything.

@mafredri
Copy link
Collaborator

Alright, then it seems the Windows environment is incompatible with zsh. I would recommend opening an issue with BashOnWindows and perhaps also reporting it on the zsh mailing list.

Sorry I can't be of more help! And also, if you find there's anything we can do to fix this, feel free to re-open.

@fredrikaverpil
Copy link
Author

@mafredri I'll jump over to BashOnWindows. Thanks for taking the time to look into this!

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