Type:
zplug --version: 2.4.2
zsh --version: zsh 5.5 (x86_64-apple-darwin16.7.0)uname -a: Darwin hostname 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64Minimal zshrc (with less than 30 lines)
Create a minimal reproducing set of configurations for this issue. Please remove all unnecessary parts!
brew install zplug
source /usr/local/opt/zplug/init.zsh
Error
% source /usr/local/opt/zplug/init.zsh
/usr/local/Cellar/zplug/2.4.2/autoload/init.zsh:16: colors: function definition file not found
polling.zsh:17: add-zsh-hook: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::get_interfaces:49: regexp-replace: function definition file not found
__zplug::core::core::prepare:67: compinit: function definition file not found
[zplug] ERROR: The loading of zplug was discontinued.
I'm on Fedora 28 and I had the same problem after upgrading from ZSH to version 5.5, I guess it's related to an incompatibility because when I downgraded, zplug was working again.
I'm on Mac High Sierra, and I actually started seeing this only in the VSCode embedded terminal, which I assume must use the built in Mac terminal application. I actually don't see this issue in iTerm2 even with the same version of zsh (5.5).
I have something similar to what @sdost has: the problem only happens when I launch tmux. Otherwise, with just iterm2, zplug loads without errors.
zsh --version: zsh 5.3 (x86_64-apple-darwin17.0)
tmux -V: tmux 2.7
zplug --version: 2.4.2
uname -a: Darwin macbook.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
This error does not happen anymore to me. Can't say what changed really, maybe a plugin.
I started getting this message after I upgraded to zsh 5.6 today. It only happens inside tmux.
zsh --version: zsh 5.6 (x86_64-apple-darwin17.7.0)
tmux -V: tmux 2.7
zplug --version: 2.4.2
uname -a: Darwin Fenrir.orion 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
This happened to me, and all I had to do is to exit all tmux sessions.
Outside tmux sessions there were no issues, only inside tmux.
This can happen when upgrading Zsh. Zsh relies on $FPATH to know where to look up functions. The clue is in where it fails to load the colors function.
/usr/local/Cellar/zplug/2.4.2/autoload/init.zsh:16: colors: function definition file not found
The bulk of the paths in $FPATH will point to something like /usr/share/zsh/5.6.2/ where 5.6.2 is the version of Zsh you are using. So if you upgrade from say, 5.5.1 to 5.6.2 (like I did), the paths in $FPATH will continue to point to 5.5.1 until you exit all shells and start a new one.
On Mac OS this means exiting all shells and tmux. On Linux it means exiting all shells, including the one you used to log into your display server, if you do that.
Once you've done that, your $FPATH should point to the right paths. Alternatively, you could also manually update $FPATH, I'm not sure if there is a better workaround.
I think this issue can be closed as it's not related to zplug at all, but will be handy for those arriving from google. There's further information on this issue on superuser.
FWIW, I just logged out and logged in and the error message was successfully resolved.
Can confirm @heidar comment fixed my problem here (thanks!). Agree this issue should be closed
Encountered something similar. Just restarted iTerm (and tmux), and all resolved.
For posterity, my issue was (on macOS Catalina, with master install) :
โฏ zplug load
__zplug::core::core::run_interfaces:14: __load__: function definition file not found
Most helpful comment
This can happen when upgrading Zsh. Zsh relies on
$FPATHto know where to look up functions. The clue is in where it fails to load thecolorsfunction.The bulk of the paths in
$FPATHwill point to something like/usr/share/zsh/5.6.2/where 5.6.2 is the version of Zsh you are using. So if you upgrade from say, 5.5.1 to 5.6.2 (like I did), the paths in$FPATHwill continue to point to 5.5.1 until you exit all shells and start a new one.On Mac OS this means exiting all shells and tmux. On Linux it means exiting all shells, including the one you used to log into your display server, if you do that.
Once you've done that, your
$FPATHshould point to the right paths. Alternatively, you could also manually update$FPATH, I'm not sure if there is a better workaround.I think this issue can be closed as it's not related to zplug at all, but will be handy for those arriving from google. There's further information on this issue on superuser.