zinit-module
zinit-module copied to clipboard
Failed to load with zsh 5.8.1
After update to zsh 5.8.1, I get the following error:
/home/klaus/.zsh/zshrc/10_zshplugin:26: failed to load module `zdharma_continuum/zinit': /home/klaus/.zinit/module/Src/zdharma_continuum/zinit.so: undefined symbol: bshin
A simple fix is available here: https://github.com/Aloxaf/zinit-module/commit/ee6b59e61e781a784be5a3413ec0f2e673dd918c, but I am not sure how to make a full PR because it will introduce breaking changes.
I have the following ideas:
- Create a patch and apply it when zsh version
is-at-least
5.8.1. See https://github.com/Aloxaf/zinit-module/commit/f7c4c272cfa777b1ca83d4c6dfb6484a05dea1b2, this is a very simple solution. - Create different branch for each zsh version which has breaking changes. In this case, we can also update the whole code base to 5.8.1 so that we can have the best compatibility.
Should probably also use a versioned name at this point, so that can be easy to share the home when it's used by different zsh versions (for example you use your home folder / dotfiles in multiple distros)
After applying @Aloxaf's patch, I'm getting the following error on load:
(eval):ZinitModule_:1: can't write zwc file: /proc/self/fd/14.zwc
Using zsh 5.8.1 on Arch Linux. Please advise.
How would one apply this patch?
It seems that the Aloxaf fixed branches (fix_zsh_5.8.1 AND zsh_5.8.1_patch) are a commit behind the main zdharma-continuum/zinit-module. Specifically, the Aloxaf mod-install.sh
refers to zdharma-continuum/zinit module
but needs to be updated to zdharma-continuum/zinit-module
.
Any progress with this? I'm having the same error on Fedora 39 with ZSH 5.9.