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

Cannot exit pure #439

Open
1 task done
sbmueller opened this issue Oct 16, 2018 · 12 comments
Open
1 task done

Cannot exit pure #439

sbmueller opened this issue Oct 16, 2018 · 12 comments

Comments

@sbmueller
Copy link
Contributor

General information

  • Pure version: 1.8.0
  • ZSH version: 5.5.1
  • Terminal program & version: mintty 2.9.0
  • Operating system: Windows 10
  • ZSH framework: oh-my-zsh

I have:

  • Followed the Integration instructions for my framework

Problem description

I cannot exit pure once I start zsh. exit or logout command seem not to finish. After pressing enter, I'm just in a new line where I can continue to write (with a high latency).

Reproduction steps

  1. Install pure
  2. Start zsh
  3. Type exit and press enter
  4. Zsh does not exit and seems to hang

My .zshrc:

ZSH_THEME = ""
plugins = ( gitfast )
source $ZSH/oh-my-zsh.sh
autoload -U promptinit; promptinit
prompt pure
@sbmueller
Copy link
Contributor Author

The zsh processes seem to never get killed, even when killing the tmux window:
image

@mafredri
Copy link
Collaborator

Hi, unfortunately this is a Zsh on Windows bug which is related to using zpty's. There's some more information on this available here: mafredri/zsh-async#26, #141 and #146.

Something like mafredri/zsh-async#24 could help, but no work has been done on it yet nor has this assumption been validated.

@mafredri
Copy link
Collaborator

Hey @sbmueller, would you be able to try out the no-zpty branch of zsh-async? I'm curious if that method might work for you.

But please keep in mind that it was a super quick hack to test how zsh-async would behave without zpty 😄.

@sbmueller
Copy link
Contributor Author

@mafredri I think this solves the mentioned problems 😲

@mafredri
Copy link
Collaborator

That's great news, thanks for testing 😄! Going to be off on vacation for a week but after that I'll try to wrap it up into something useable.

@oryband
Copy link

oryband commented Feb 13, 2019

Hey @sbmueller, would you be able to try out the no-zpty branch of zsh-async? I'm curious if that method might work for you.

But please keep in mind that it was a super quick hack to test how zsh-async would behave without zpty smile.

this needs to be added to the readme or wiki

@mafredri
Copy link
Collaborator

@oryband I'd prefer not, until I've had more time to work on the no-zpty branch.

@otterpro
Copy link

otterpro commented Jul 26, 2019

I was also having the issue on Cygwin/mintty, as I couldn't exit out of the zsh shell. Fortunately, no-zpty branch seems to fix the problem. thank you.

@lminer
Copy link

lminer commented Sep 19, 2019

What happened to the no-zpty branch? I'm having this issue on cygwin

@mafredri
Copy link
Collaborator

@lminer It's still there, I just haven't worked on it since. It does work, but not fully featured, which can cause race conditions. I was actually using it on macOS for a month or two without realizing 😂... Hoping to get around to finishing it soon, but no promises.

@mafredri
Copy link
Collaborator

There's a small chance that the async refactor and improvements in #543 might have fixed these issues. It'd be super if someone could test it out!

@mafredri
Copy link
Collaborator

mafredri commented Jun 5, 2022

I haven't had time to work on this, so I've added the help wanted label. If someone is interested in working on this, continuing on the no-zpty work in zsh-async may be the best approach. Open to alternative solutions too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants