zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.89k stars 125 forks source link

[bug]: Failed to load module #443

Open KyleJKC opened 1 year ago

KyleJKC commented 1 year ago

What happened?

After I built the module using zinit module build command and restarted the terminal, an error occurred:

/Users/kylejin/.zshrc:3: failed to load module `zdharma_continuum/zinit': dlopen(/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle, 0x0009): tried: '/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file), '/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file)

Tried to rebuild the module, but the problem is still there.

Steps to reproduce

  1. Build module using zinit module build
  2. Add module_path+=( "/Users/kylejin/.local/share/zinit/module/Src" ) zmodload zdharma_continuum/zinit to my .zshrc
  3. Error occur

Relevant output

/Users/kylejin/.zshrc:3: failed to load module `zdharma_continuum/zinit': dlopen(/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle, 0x0009): tried: '/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file), '/Users/kylejin/.local/share/zinit/module/Src/zdharma_continuum/zinit.bundle' (no such file)

Screenshots and recordings

Screenshot 2022-12-20 at 3 04 22 PM

Operating System & Version

OS: darwin22.1.0 | Vendor: apple | Machine: arm | CPU: arm64 | Processor: arm | Hardware: arm64

Zsh version

zsh 5.9 (arm-apple-darwin22.1.0)

Terminal emulator

xterm-256color

If using WSL on Windows, which version of WSL

None

Additional context

No response

Code of Conduct

HeroCC commented 10 months ago

Looks like another instance of https://github.com/zdharma-continuum/zinit-module/issues/3