Pure: Cannot exit pure

Created on 16 Oct 2018  路  11Comments  路  Source: sindresorhus/pure

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:

  • [x] 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

Most helpful comment

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 馃槃.

All 11 comments

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

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: https://github.com/mafredri/zsh-async/issues/26, #141 and #146.

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

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 馃槃.

@mafredri I think this solves the mentioned problems 馃槻

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.

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

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

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.

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

@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.

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

opticalgenesis picture opticalgenesis  路  9Comments

mattrixman picture mattrixman  路  5Comments

Hotschke picture Hotschke  路  8Comments

bigH picture bigH  路  8Comments

tyrollins picture tyrollins  路  4Comments