mafredri / zsh-async

Because your terminal should be able to perform tasks asynchronously without external tools!
MIT License
756 stars 37 forks source link

Support with Spaceship Prompt #58

Open denysdovhan opened 1 year ago

denysdovhan commented 1 year ago

Starting v4.0 Spaceship Prompt has adopted zsh-async as a library for async rendering.

However, our users (primarily on Linux) are facing some issues related with async rendering. Here are two major ones:

Sometimes jobs are stuck

We run each section of the prompt to be run as an async job. Sometimes these jobs just stuck, hanging without finishing.

See for discussion: https://github.com/spaceship-prompt/spaceship-prompt/issues/1193

Worker dies unexpectedly

When starting up, Spaceship creates a new worker. Sometimes this often just dies.

See for discussion: https://github.com/spaceship-prompt/spaceship-prompt/issues/1207

How do we use zsh-async?

We encapsulate all of the methods we use within a worker.zsh file: https://github.com/spaceship-prompt/spaceship-prompt/blob/master/lib/worker.zsh

I would be grateful for help with debugging this issues. Other users would be deeply grateful as well. I will gladly provide any additional info you might require.

Thanks in advance!