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

async_job:zpty:2: no such pty command: prompt_pure #135

Closed
pierot opened this issue Jul 2, 2015 · 14 comments
Closed

async_job:zpty:2: no such pty command: prompt_pure #135

pierot opened this issue Jul 2, 2015 · 14 comments

Comments

@pierot
Copy link

pierot commented Jul 2, 2015

New issue for comment: #117 (comment)

(zpty):zpty:2: can't open pseudo terminal: device not configured
async_job:zpty:2: no such pty command: prompt_pure
async_job:zpty:2: no such pty command: prompt_pure

OS: OSX 10.10.3.
zsh: 5.0.8 (installed via Homebrew)
tmux: 2.0
using iTerm 2.1.1

❯ find /usr/share/zsh -newermt "2014-10-22"
/usr/share/zsh/5.0.5/help
/usr/share/zsh/5.0.5/help/autoload
/usr/share/zsh/5.0.5/help/bye
/usr/share/zsh/5.0.5/help/chdir
/usr/share/zsh/5.0.5/help/declare
/usr/share/zsh/5.0.5/help/float
/usr/share/zsh/5.0.5/help/history
/usr/share/zsh/5.0.5/help/integer
/usr/share/zsh/5.0.5/help/local
/usr/share/zsh/5.0.5/help/logout
/usr/share/zsh/5.0.5/help/pushln
/usr/share/zsh/5.0.5/help/r
/usr/share/zsh/5.0.5/help/readonly
/usr/share/zsh/5.0.5/help/rehash
/usr/share/zsh/5.0.5/help/type
/usr/share/zsh/5.0.5/help/unalias
/usr/share/zsh/5.0.5/help/unfunction
/usr/share/zsh/5.0.5/help/where
/usr/share/zsh/5.0.5/help/which
@mafredri
Copy link
Collaborator

mafredri commented Jul 2, 2015

Need to see your zsh configuration.

@pierot
Copy link
Author

pierot commented Jul 2, 2015

I use oh-my-zsh.
This is my .zshrc: https://github.com/pierot/termieter/blob/master/symlinks/zshrc

@mafredri
Copy link
Collaborator

mafredri commented Jul 2, 2015

How have you installed pure, npm? If so, have you also followed the instructions for oh-my-zsh integration in the README? The two methods might conflict with each other.

For example, if you have copied/symlinked ~/.oh-my-zsh/custom/async.zsh you should remove it (assuming npm installation).

@pierot
Copy link
Author

pierot commented Jul 2, 2015

I didn't install it through npm. Just manually copying and symlinking the files.

@mafredri
Copy link
Collaborator

mafredri commented Jul 2, 2015

Where did you symlink them?
On Jul 2, 2015 5:56 PM, "Pieter Michels" [email protected] wrote:

I didn't install it through npm. Just manually copying and symlinking the
files.


Reply to this email directly or view it on GitHub
#135 (comment).

@pierot
Copy link
Author

pierot commented Jul 2, 2015

9iozwii4dgkfpg79qzhgvqyt_iderezmqn8a1agmsmu

@mafredri
Copy link
Collaborator

mafredri commented Jul 2, 2015

Ok, that kind of looks fine but not sure what oh-my-zsh does in the background. So let's start with the basics. Can you get zpty working at all? Try the following commands:

zmodload zsh/zpty
zpty cat cat
zpty -L  # list zpty instances
zpty -w cat hello world
zpty -rt cat

The final command should print hello world.

@pierot
Copy link
Author

pierot commented Jul 2, 2015

➜  tmp  zmodload zsh/zpty
➜  tmp  zpty cat cat
➜  tmp  zpty -L
^Czpty cat cat
➜  tmp  zpty -w cat hello world
➜  tmp  zpty -rt cat
➜  tmp

You can see I had to CTRL+C the zpty -L command as it kept blank for over an hour.
Also, there is no hello world ...

@mafredri
Copy link
Collaborator

mafredri commented Jul 3, 2015

Do you experience the same behavior even if you completely disable your zsh modifications? E.g. rename your .zshrc so that it isn't sourced.

@pierot
Copy link
Author

pierot commented Jul 15, 2015

Strangely enough, all seems well no. I cancelled pure for a couple of days.
Yesterday I tried to re-enable it and see and now everything works as before ..

@pierot pierot closed this as completed Jul 15, 2015
@mafredri
Copy link
Collaborator

Maybe you've rebooted your computer in between? Anyhow, that's great. Love it when things sort themselves out 🎉 !

@raffylopez
Copy link

raffylopez commented Jun 6, 2017

You might have hit the resource limit for processes/open files. This happened to me when I had so many zsh and tmux processes open, up to the point that tmux won't even allow me to create additional panes, and pure would unexplainably give me the same async_job:zpty:2: no such pty command: prompt_pure error at the same time. Check (https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/30)

You can try to forcibly close down your processes (albeit ungracefully):
sudo \ps -ef | awk '{print $1}' | tail -n +2 | awk '{system("pkill -u " $1)}', then check perhaps if the problem still persists.

@scmx
Copy link

scmx commented Oct 4, 2017

I had the same error this morning. It disappeared when I closed my 20+ tmux sessions 🤷‍♂️

@cjayross
Copy link

I'm having this same issue, yet it happens when I am only using a single terminal session. Particularly, it happens when I am working within a git repo.

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

5 participants