zinit-module icon indicating copy to clipboard operation
zinit-module copied to clipboard

Failed to load with zsh 5.8.1

Open mowgli opened this issue 3 years ago • 6 comments

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

mowgli avatar Feb 13 '22 09:02 mowgli

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.

Aloxaf avatar Feb 14 '22 07:02 Aloxaf

I have the following ideas:

  1. 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.
  2. 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.

Aloxaf avatar Feb 14 '22 08:02 Aloxaf

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)

3v1n0 avatar Feb 16 '22 16:02 3v1n0

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.

mindbound avatar Apr 05 '22 09:04 mindbound

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.

mojolo avatar Aug 19 '22 17:08 mojolo

Any progress with this? I'm having the same error on Fedora 39 with ZSH 5.9.

jimeh avatar Feb 19 '24 00:02 jimeh