Skip to content
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

Fresh macos install using brew shows errors #577

Open
csi-lk opened this issue Nov 19, 2021 · 5 comments
Open

Fresh macos install using brew shows errors #577

csi-lk opened this issue Nov 19, 2021 · 5 comments

Comments

@csi-lk
Copy link

csi-lk commented Nov 19, 2021

Describe the bug
Clean install using brew is throwing errors, I'm probably doing something silly as I don't have a full understanding of what's going on just following the readme

To Reproduce

Install, use instructions

$ brew reinstall zplug
==> Downloading https://ghcr.io/v2/homebrew/core/zplug/manifests/2.4.2
Already downloaded: ~/Library/Caches/Homebrew/downloads/51fe0f48541fcfef0c26996bac2ddbd84843916b8bf1162984b3f7a8b7cfda12--zplug-2.4.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/zplug/blobs/sha256:88f086071ba188267046f170817aee4ad59fcdd9d9b7ad183b639306c5b8ef29
Already downloaded: ~/Library/Caches/Homebrew/downloads/20953c4bdecc7822ca4ba711b64de0b13cb072e8c7c6eee9e2cd463bcef9495e--zplug--2.4.2.all.bottle.tar.gz
==> Reinstalling zplug
==> Pouring zplug--2.4.2.all.bottle.tar.gz
==> Caveats
In order to use zplug, please add the following to your .zshrc:
  export ZPLUG_HOME=/opt/homebrew/opt/zplug
  source $ZPLUG_HOME/init.zsh
==> Summary
🍺  /opt/homebrew/Cellar/zplug/2.4.2: 198 files, 370.0KB

Add to ~/.zshrc

export ZPLUG_HOME=/opt/homebrew/opt/zplug
source $ZPLUG_HOME/init.zsh

Open new terminal window

__zplug::core::load::from_cache:12: no such file or directory: /opt/homebrew/opt/zplug/cache/fpath.zsh
__zplug::core::load::from_cache:source:17: no such file or directory: /opt/homebrew/opt/zplug/cache/plugin.zsh
__zplug::core::load::from_cache:source:18: no such file or directory: /opt/homebrew/opt/zplug/cache/lazy_plugin.zsh
__zplug::core::load::from_cache:source:19: no such file or directory: /opt/homebrew/opt/zplug/cache/theme.zsh
__zplug::core::load::from_cache:source:20: no such file or directory: /opt/homebrew/opt/zplug/cache/command.zsh
__zplug::core::load::from_cache:source:23: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_1_plugin.zsh
__zplug::core::load::from_cache:source:29: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_2_plugin.zsh
__zplug::core::load::from_cache:source:30: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_3_plugin.zsh

Env (please complete the following information):

$ zplug --version
2.4.2
$ zsh --version
zsh 5.8 (x86_64-apple-darwin21.0)
$ uname -a
Darwin [computername] 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000 arm64

Minimal zshrc (with less than 30 lines)

Posted above

Additional context

Am on a M1 macbook pro

@avallete
Copy link

I have a similar issue. I tried to:

  • Uninstall from brew, and reinstall using the curl script. The issue is still here.

My .zshrc config is quite minimal:

# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source plugins and add commands to $PATH
zplug load --verbose

Which give me:

[zplug] Loaded from cache (/opt/homebrew/opt/zplug/cache)
__zplug::core::load::from_cache:12: no such file or directory: /opt/homebrew/opt/zplug/cache/fpath.zsh
__zplug::core::load::from_cache:source:17: no such file or directory: /opt/homebrew/opt/zplug/cache/plugin.zsh
__zplug::core::load::from_cache:source:18: no such file or directory: /opt/homebrew/opt/zplug/cache/lazy_plugin.zsh
__zplug::core::load::from_cache:source:19: no such file or directory: /opt/homebrew/opt/zplug/cache/theme.zsh
__zplug::core::load::from_cache:source:20: no such file or directory: /opt/homebrew/opt/zplug/cache/command.zsh
__zplug::core::load::from_cache:source:23: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_1_plugin.zsh
[zplug] Run compinit
__zplug::core::load::from_cache:source:29: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_2_plugin.zsh
__zplug::core::load::from_cache:source:30: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_3_plugin.zsh

I've also tried to use ZPLUG_USE_CACHE=false but doesn't seems to help:

19:29:21|➜  ~ ZPLUG_USE_CACHE=false zplug load
__zplug::core::load::from_cache:12: no such file or directory: /opt/homebrew/opt/zplug/cache/fpath.zsh
__zplug::core::load::from_cache:source:17: no such file or directory: /opt/homebrew/opt/zplug/cache/plugin.zsh
__zplug::core::load::from_cache:source:18: no such file or directory: /opt/homebrew/opt/zplug/cache/lazy_plugin.zsh
__zplug::core::load::from_cache:source:19: no such file or directory: /opt/homebrew/opt/zplug/cache/theme.zsh
__zplug::core::load::from_cache:source:20: no such file or directory: /opt/homebrew/opt/zplug/cache/command.zsh
__zplug::core::load::from_cache:source:23: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_1_plugin.zsh
__zplug::core::load::from_cache:source:29: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_2_plugin.zsh
__zplug::core::load::from_cache:source:30: no such file or directory: /opt/homebrew/opt/zplug/cache/defer_3_plugin.zsh

@thowimmer
Copy link

Hi @avallete

did you found a fix for this issue ?

@avallete
Copy link

Hi @avallete

did you found a fix for this issue ?

Hey there, sadly no.

@ihatem
Copy link

ihatem commented Apr 25, 2023

I had the exact same issue, I fixed this by running zplug clear (worked with manual and brew install)

@farzadmf
Copy link

farzadmf commented May 9, 2023

Same issue here, happening on a fresh install with brew on an Ubuntu machine (zplug clear didn't fix anything, unfortunately)


EDIT: seems like the issue happens when there's no call to zsplug .....
For example, I had, what I thought, the bare minimum to see if things are working:

export ZPLUG_HOME=/home/linuxbrew/.linuxbrew/opt/zplug
source $ZPLUG_HOME/init.zsh

zplug load --verbose

Once I added at least one plugin:

export ZPLUG_HOME=/home/linuxbrew/.linuxbrew/opt/zplug
source $ZPLUG_HOME/init.zsh

zplug '....'

zplug load --verbose

The error went away

Althought, honestly, I find the error messages to be super misleading!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants