Packer - Failed to install - git timeout, and no post install hook #69
Comments
Hmm, I wonder if this is because I'm including binaries in the repo. Might have a pretty fat |
Yeah that might help with the first part. I imagine it's pretty easy to do a fresh |
I'm currently seeing the "Failed to install" error and subsequent "module |
Hmm, I'm really curious if it has to do with the download size. Maybe we can make it so the binaries aren't stored in the repo, but are instead downloaded from Github Releases as part of I wonder if there's a better way. |
Frustrating that I can't reproduce this on my machine. It's difficult to diagnose the issue. |
I don't think it's a repo size thing for me. It's not timing out or anything over here. Is there a way to get more verbose output from |
#!/usr/bin/env bash
rm -rf ./lua/libdash_nvim.so ./lua/deps/
if [[ "$(uname -m)" == "arm64" ]]; then
cp ./bin/arm/libdash_nvim.so ./lua/
mkdir -p ./lua/deps/
cp -r ./bin/arm/deps/ ./lua/deps/
else
cp ./bin/x86/libdash_nvim.so ./lua/
mkdir -p ./lua/deps/
cp -r ./bin/x86/deps/ ./lua/deps/
fi I wonder if this line is the issue since these won't exist on initial install: but that doesn't explain why it would work when run manually. |
Yeah, I wouldn't expect that to be a problem unless you put Maybe another option would be for the Lua plugin to decide where to look for the binary rather than copy a specific binary to a known location? |
Yeah, @knpwrs that was another option I had in mind when coming up with the install flow. I can try doing that instead of the |
@knpwrs @bmulholland Is this the error you were getting?
If so, that's my own check, and I probably just need to tweak that and how it's run. |
That's the error I get when starting Neovim, but I'm also getting a "failed to install" from Packer (when it runs |
Right @knpwrs I think you're getting "Failed to install" from packer because it's running my startup check before I need to figure out how to not error if it's during a packer install, or maybe move the error checking to happen the first time you try to load the module, or something like that. |
Simply using |
@knpwrs @bmulholland it should be fixed now. |
Nice, that fixed it! Thank you! |
Installing with packer with
use({ 'mrjones2014/dash.nvim', requires = { 'nvim-telescope/telescope.nvim' }, run = 'make install' })
, I get a "Failed to install" when running a PackerSync. Thereafter, I get "module "libdash_nvim" not found, did you set up Dash.nvim withmake install
as a post-install hook?"Debugging a bit, I found two things:
...m/site/pack/packer/start/packer.nvim/lua/packer/jobs.lua:87: Killing git due to timeout!
. Now, the connection I'm on is a little weak, but it still downloaded from github at ~500kb/s. I worked around this for now by increasing timeout to 120s (from 60s). None of my other plugins needed this, though...make install
as a post-install hook? See :h dash-install". So maybe that failing is preventing the hook from executing?I solved the problem for now by
cd
ing to the dash dir and runningmake install
manually.The text was updated successfully, but these errors were encountered: