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
Post install hook issue #83
Comments
I was able to reproduce this. I got this error message:
I changed line 124 in if pcall(plugin.run(plugin)) then to this: if pcall(plugin.run, plugin) then And it seemed to fix the problem |
@nanotee Thanks, nice catch! Interestingly, when I tried to repro this, I was getting a different error. I've pushed 6f9efb2 adding your fix to Thank you! |
Yes, this seems fixed now. Thank you very much @nanotee and @wbthomason . Closing the issue. |
I am still getting this related error:
plugin_utils.lua:49:
|
@ilAYAli: Thanks for your report! I'm a little confused by the state of your That line is currently packer.nvim/lua/packer/plugin_utils.lua Line 49 in 30313aa
and the packer.nvim/lua/packer/plugin_utils.lua Lines 73 to 74 in 30313aa
Could you please make sure that (1) your |
@wbthomason you are absolutely correct. It seems that I had a combination of repos, both in |
Great, glad it's working now! |
Good job, and nice progress with luarocks btw! |
First of all, thank you for your work on this plugin. Am quite liking it's UX so to speak.
Neovim version: NVIM v0.5.0-789-gca7449db4
Currently, trying to use the post install hook does not seem to work for plugins like
fzf
which usefuncrefs
. Infzf
, the post install hook isfzf#install
. Having this in packer's post install hook for thefzf
plugin,does not work.
I do not see an error as such for this. The expected behavior is that even if on host distribution,
fzf
is not installed or up to date or available in path, the above hook takes care of making the latest binary available without necessarily installing it globally. Withvim-plug
, even if my hostfzf
binary is not up to date which is what latestfzf.vim
requires, the hook takes care of the issue.Even if vim
funcrefs
are a problem, I was thinking./install --all
would work. But, that does not seem to be the case either. It does not create a~/.fzf
which is what the install script infzf
would do, if it was run manually. I do not have any other plugins requiring post install hook, so not sure if the issue is for some idiosyncrasy offzf
or an issue in packer.For now, I bypass the issue in my case, by manually putting the latest
fzf
binary in~/.local/bin
.The text was updated successfully, but these errors were encountered: