-
Notifications
You must be signed in to change notification settings - Fork 423
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
read-only variable: status #634
Comments
I can not reproduce this. source ~/.zinit/bin/zinit.zsh
zinit load nojhan/liquidprompt I see my normal prompt with no errors. Could you post your |
This is how I load it. |
I have several prompts and this was an addaptation to previous version, and it worked fine, only since the upgrade this message occured. |
I have tried your loading command and it works correctly for me. If you remove the liquidprompt line does the error go away? What other plugins are you loading? What zsh options do you have set? The only variable by the name of |
https://github.com/zdharma/zinit-configs/blob/master/psprint/zshrc.zsh this is the zshrc model I use, ofcourse i have changed it since just not on terms of plugins modules much to affect this behaviour. What is best way to edit the config in latest release? I used to have another config some time ago, havent been using this in some time. |
I have changed the status, and followed the config, added the .liquid...rc file into ~/.config/. Its still the same, or should i place it directly in ~/.liquid..rc ? I managed, it seems only ~/.liquidpromptrc loccation is read, the onne mentioed in docs with .config is not working. Disabling its gone the message. There is still one last thing, not sure how to make the format of the prompt to be available at first opening terminal, now everytime I open it, I must first do some action and only then will activate the visible see printscreen. |
The config file location has not changed. See the Config docs.
I also see that behaviour when using the But now that you have confirmed it is that variable, I can reproduce this:
And it happens without zinit. According to this helpful answer: https://unix.stackexchange.com/a/407179/421569
Thanks zsh. But this is confirmed a bug introduced in v2.0.0-beta.1: f3f20ec |
Some zsh variable names just can not be used, even when declaring them as local. 'status' and 'path' are such vars. For some reason, declaring 'path' as a local seems to work, but 'status' does not. The command: for p in $parameters[(I)*]; do print $p $parameters[$p]; done | grep special | sort will print all zsh special variables. Rename them to prevent any possible issues. Fixes liquidprompt#634
Shell: ZSH 5.8
Operating system: Darwin Revenger.local 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_64
Liquidprompt version: v2.0.0-beta.1: 6e7f4c7
Steps to Reproduce
Expected Behavior
No errors.
Current Behavior
Each prompt displays this error:
read-only variable: status
The text was updated successfully, but these errors were encountered: