Broken terminal (ERRCWD invalid cwd)
Describe the bug
Hi!
I have installed Zim and when making ‘source .zshrc’ I get an error. error: ERRCWD invalid cwd '/Users/xxxx/.mshell/rcfiles/41e154ee-a44f-4404-ae0d-92ccbaccd70a' for command: stat /Users/xxxx/.mshell/rcfiles/41e154ee-a44f-4404-ae0d-92ccbaccd70a: no such file or directory
I navigated to the folder that says the environment variable $ZDOTDIR and Wave crashes everything, I can't write anything. With another terminal not crashed.
To Reproduce Steps to reproduce the behavior:
- Use this code from Zim:
# ------------------
# Initialize modules
# ------------------
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Download zimfw plugin manager if missing.
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
if (( ${+commands[curl]} )); then
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
else
mkdir -p ${ZIM_HOME} && wget -nv -O ${ZIM_HOME}/zimfw.zsh \
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
fi
fi
# Install missing modules, and update ${ZIM_HOME}/init.zsh if missing or outdated.
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
source ${ZIM_HOME}/zimfw.zsh init -q
fi
# Initialize modules.
source ${ZIM_HOME}/init.zsh
- Reload the config with
source .zshrc - See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Using another Terminal
Desktop (please complete the following information):
- OS: macOS M2 14.4.1
- Version: 0.7.5 (20240502-224736)
Additional context Add any other context about the problem here.
Hi! It's happening again
Is it possible that if you are inside the folder and it is deleted, everything is broken?
I've got the same issue. It is as you speculated. when a directory you are in got deleted, then the terminal broke.
In my case I have to create a directory from outside the Wave terminal, from then you can continue on the wave terminal.