spaceship-prompt: `async_worker_eval: no such async worker: spaceship` Error
Is there an existing issue for this?
- Yes, I have searched the existing issues
- Yes, I have checked troubleshooting page
The problem
Updated spaceship via antigen, and received the following error:
async_worker_eval: no such async worker: spaceship
So either the async worker is crashing or prompt cannot find it.
Previously mistakenly reported this error as to being under #1193 , but clearly it is a different issue.
Lastly, after reviewing the source code and discovering async is borrowed from a different repo. Will probably open an issue up there as well.
Relevant Zsh configuration
#ZSH_THEME="spaceship"
# Install and use the spaceship prompt
# antigen bundle spaceship-prompt/spaceship-prompt
antigen theme spaceship-prompt/spaceship-prompt
###########################################
# ___ ___ _ _ #
# / __|_ __ __ _ __ ___/ __| |_ (_)_ __ #
# \__ \ '_ \/ _` / _/ -_)__ \ ' \| | '_ \ #
# |___/ .__/\__,_\__\___|___/_||_|_| .__/ #
# |_| |_| #
###########################################
# Show Time in Prompt
SPACESHIP_TIME_SHOW=true
# Enable Async (Default is True)
# SPACESHIP_PROMPT_ASYNC=false
# Display username always
SPACESHIP_USER_SHOW=true
# Do not truncate path in repos
SPACESHIP_DIR_TRUNC_REPO=true
# Spaceshipt Prompt and Order
SPACESHIP_PROMPT_ORDER=(
# user # Username section
dir # Current directory section
host # Hostname section
# git # Git section (git_branch + git_status)
# hg # Mercurial section (hg_branch + hg_status)
# package # Package version
# node # Node.js section
# ruby # Ruby section
python # Python section
# elm # Elm section
# elixir # Elixir section
# xcode # Xcode section
# swift # Swift section
# golang # Go section
# php # PHP section
# rust # Rust section
# haskell # Haskell Stack section
# java # Java section
# julia # Julia section
# docker # Docker section
# aws # Amazon Web Services section
# gcloud # Google Cloud Platform section
# venv # virtualenv section
# conda # conda virtualenv section
# dotnet # .NET section
# kubectl # Kubectl context section
# terraform # Terraform workspace section
# ibmcloud # IBM Cloud section
exec_time # Execution time
# async # Async jobs indicator < --- notice not enabled.
#line_sep # Line break
# battery # Battery level and status
jobs # Background jobs indicator
exit_code # Exit code section
# time # Time stampts section
char # Prompt character
)
SPACESHIP_HOST_SHOW=true
What is version of Spaceship are you using?
4.2.6
What is version of Zsh are you using?
5.9
What operation system are you running?
OpenBSD
Do you use any Zsh framework or plugin manager?
antigen
Which terminal emulator do you use?
kitty
Additional information
Disabling async in the config seems to have solved the issue.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 25 (4 by maintainers)
Can confirm this issue persists on v4.8.0; I re-enabled async in .zshrc, and the issue is still there. This is Ubuntu 20.04 inside WSL2 on Windows 11. Async works perfectly fine in iTerm2 on my M1 MacBook Pro, for the record.
I am also encountering this error after updating Spaceship. Oh-My-Zsh, Ubuntu 22.04 on WSL2 on Windows 10.
Can confirm that adding
SPACESHIP_PROMPT_ASYNC=falseto .zshrc removes the error, but also disables the async behavior.@anoduck Yeah, most of my plugins are managed by OMZ. I followed the instructions from the README.md to install spaceship using OMZ.
I got the same error when installing the latest version of spaceship thru Homebrew. When I cloned it directly into OMZ’s custom theme folder, it worked asynchronously without any errors.
Hey @denysdovhan , unfortunately I still get
async_worker_eval: no such async worker: spaceshipusing the latest pull from github.No, @anoduck , I haven’t seen that error. However, I have disabled async for the time being.