-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitstatus failed to initialize. Can't open file /tmp/* #8441
Comments
Some of the comments in romkatv/gitstatus#234 might be correct, but if you look at If you source |
Can you reproduce it with source ~/gitstatus/gitstatus.plugin.zsh
gitstatus_start MY You'll need to run this command once beforehand: git -C ~ clone --depth=1 https://github.com/romkatv/gitstatus.git && ~/gitstatus/install -f |
Or do you mean only with these two lines in .zshrc? |
Yes, that's what I meant. This is the whole rm -f -- ~/.zshrc.zwc ~/{.zshenv,.zprofile,.zlogin,.zlogout}{,.zwc} |
It's expected that the theme is gone. We just want to trigger the error. Please try this source ~/gitstatus/gitstatus.plugin.zsh
gitstatus_start -a MY
sleep 1.0
gitstatus_start MY If this doesn't produce the error, try replacing My current theory is that all files under |
Let's try this >/tmp/foo <<<''
sleep 1.0
[[ -e /tmp/foo ]] || print -ru2 error Once again, try different values instead of |
@s0updev Thanks for your help debugging this. At this point the test case is simple and has no dependencies on my code. I'm bowing out 😄 |
@romkatv You're welcome 🙂 |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.19044.1706]
WSL Version
Kernel Version
5.10.16.3
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
wsl -t Ubuntu
Expected Behavior
No errors on load
Actual Behavior
Getting an error:
Diagnostic Logs
WslLogs-2022-05-24_20-41-47.zip
As the gitstatus creator states:
This happens only on load of Ubuntu, if I open it again there's no error:
So you need to terminate the Ubuntu WSL and open it again to get this error
The text was updated successfully, but these errors were encountered: