eendroroy / alien

An asynchronous zsh prompt
https://eendroroy.github.io/alien
MIT License
307 stars 45 forks source link

stderr disappears #32

Closed zcutlip closed 4 years ago

zcutlip commented 4 years ago

Occasionally (a few times per day) stderr output disappears. I have to quit the terminal session and restart for it to come back. This happens both on the zsh command line, and even in applications such as lldb.

To Reproduce Not sure how to repro this. It just seems to happen randomly

Environment:

Additional context This definitely seems to be related to the Alien theme. It doesn't happen with other themes. I'm not sure how to diagnose the issue. I'm happy to try anything that might help.

eendroroy commented 4 years ago

Did you get any similar error like below??

async_start_worker:zpty:25: pty command name already used: right_prompt

eendroroy commented 4 years ago

Could you please try with development branch?

zcutlip commented 4 years ago

I've never seen that error on the console. I'll give it a try on the development branch.

zcutlip commented 4 years ago

Okay, I switched to the development branch and have been running on that all day.

I just now got the error described above, and now stderr has disappeared.

I'll leave this terminal open in case there's something you need me to investigate.

 zach  ~                                                                                         03:02:09 PM  •100
❱ cd src/Scr
cd: no such file or directory: src/Scr
 1  zach  ~                                                                                       03:02:15 PM  •100
❱ cd src/scripts
async_start_worker:zpty:25: pty command name already used: right_prompt_19378
 zach  ~/src/scripts                                                                             03:02:18 PM  •100
❱ ls /barbarbar
 1  zach  ~/src/scripts                                                                          03:02:50 PM  •100
❱
eendroroy commented 4 years ago

Could you please try now? If the error still occurs, try uncommenting Line 6 and Line 27 in modules/async.zsh

https://github.com/eendroroy/alien/blob/1cdd8479f6b202be740c4af628f37b2648c379f9/modules/async.zsh#L6 https://github.com/eendroroy/alien/blob/1cdd8479f6b202be740c4af628f37b2648c379f9/modules/async.zsh#L27

Let me know if it improves the situation.

zcutlip commented 4 years ago

I've been using it for the past few days with no troubles. I think we can close this issue now. I'll open a new one if it comes back.

Thanks for your help!

zcutlip commented 4 years ago

The problem hasn't occurred since uncommitted lines 6 & 27 in async.zsh a couple weeks ago.

eendroroy commented 4 years ago

Let's just observer for few more days.

eendroroy commented 4 years ago

Did it occurred again?

zcutlip commented 4 years ago

No problems as long as I keep the lines uncommented as described: https://github.com/eendroroy/alien/issues/32#issuecomment-578031239

On other systems where I haven't made those modifications, yes it still happens regularly.

betaboon commented 4 years ago

so this has happened to me now pretty often.

i looked into it a little and noticed that stderr is mapped to /dev/null when the problem occured. digging a little deeper it seems to stem from zsh-async. so i found this issue: https://github.com/mafredri/zsh-async/issues/35

fd0 commented 4 years ago

I also observe the issue, although with a different prompt (sorin), which also uses zsh-async. I'll be over at https://github.com/mafredri/zsh-async/issues/35 :)

rgouicem commented 4 years ago

Hi everyone. A fix working for me was pushed for https://github.com/mafredri/zsh-async/issues/35.

It is available in the 1.8.1 version of zsh-async. I tried the fix and it seems to work for me. You might want to update the version of zsh-async to see if it solves it for other people.

eendroroy commented 4 years ago

Since the fix mafredri/zsh-async#35, I have not yet faced the issue again. Please let me know if you see the issue again.

zcutlip commented 4 years ago

Thanks. I updated my local checkout and will update in a few days.