typewritten: Random async error message

Not sure how to reproduce this it happens randomly it seems

❯                                                                                                                          typewritten
async_worker_eval: no such async worker: _worker
async_job: no such async worker: _worker
async_job: no such async worker: _worker
async_job: no such async worker: _worker
❯                                            
```

I have to exist and restart the shell to get it to go away, it will print this error after every command

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Thanks for letting me know @frdrk !

I have a fix in mind right now. I’m pretty sure it’s related to https://github.com/mafredri/zsh-async/issues/42.

I’m not able to reproduce the error, though. So it’s pretty hard for me to debug.

If you would like to help, there is one comment that mentions that a temporary workaround would be to initialize the worker on the precmd hook.

Could you add these lines just after _prompt_precmd() { on line 94? :

async_start_worker _worker -n
async_register_callback _worker _prompt_callback

The file is at ~/.zsh/typewritten/typewritten.zsh

Then reload zsh and see if the error still happens. Thanks!

Just letting you know that I’m getting this same error too. Clean install from a few days ago with oh-my-zsh. Happens consistently after a few minutes of normal terminal use.

here is my zshrc btw

#AutoComplete
zstyle ':completion:*' completer _complete _ignored
zstyle :compinstall filename '/home/grey/.zshrc'
autoload -Uz compinit
compinit
#Typewritten Theme
fpath+=$HOME/.zsh/typewritten
autoload -U promptinit; promptinit
prompt typewritten
#KeyBindings
bindkey "^A" vi-beginning-of-line
bindkey "^E" vi-end-of-line
bindkey -e
bindkey "^[[3~" delete-char

HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
#Opts
setopt autocd
setopt nullglob
#Plugins
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source /home/grey/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

#Other
alias grep='grep --colour=always'
alias ls='ls --color=auto'

eval $(keychain --eval --agents ssh,gpg -q)
#export PATH=/home/grey/.cargo/bin:/home/grey/.local/bin:/home/grey/workspace/go/bin:/home/grey/workspace/Android/SDK/platform-tools:$PATH
export $(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
export GOPATH=/home/grey/workspace/go
export BROWSER=/usr/bin/firefox