Open HeroCC opened 9 months ago
Zinit by default attempts to compile a plugin before the atclone
ice runs. In your original command, you used the ice nocompile'!'
, which forces compilation to occur after your atclone
ice.
When using zdharma-continuum/null, Zinit throws that error by default due to no files being available to compile, this may be a bug/feature introduced at some point as I believe Zinit used to not throw this error when using zdharma-continuum/null
The cache generation in z-a-eval runs during the atclone
process of loading a plugin and thus when used with zdharma-continuum/null Zinit attempts to compile the plugin before z-a-eval creates the cache. To avoid this error message for now, you can add nocompile'!'
as you used in your first example.
zinit lucid wait has'pyenv-virtualenv-init' eval'pyenv virtualenv-init -' nocompile'!' id-as'pyenv-venv1' for @zdharma-continuum/null
Regardless the message is harmless as the cache is still being sourced during a plugin load and Zsh always uses the compiled version when it is available. I'll do some research to see if there is anything I can do about the error but the above should solve your problem if you care about hiding that error message.
Great, thank you! I'll leave the ticket open for your investigation, but your workaround worked successfully.
I notice the "No files for compilation found" warning when using the
eval
ice. However, thezwc
file does exist:Is there a way to make sure zinit loaded the complied version? Is this error benign / can it be fixed?