-
Notifications
You must be signed in to change notification settings - Fork 863
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 🙂 |
@romkatv Has this been resolved? Or we just accept that it is a bug in the OS and there's no way to go around it? |
I don't know whether the bug in the OS has been fixed or not. You could try to figure this out by clicking on linked issues and digging through them. This one looks fruitful: #11739 I haven't implemented any workarounds for this bug in powerlevel10k. Even if I did, all other software you might be running can easily be affected by this bug. I personally would not use an OS with a bug as severe as this. |
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: