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

Packer.nvim installation problem - git-submodules without URL #33

Open
jonasrogert opened this issue Mar 7, 2021 · 2 comments
Open

Comments

@jonasrogert
Copy link

I have an issue where vim-coiled-snake cannot be installed using neovim nightly and Packer.nvim

Error when trying to update using packer:

✗ Failed to update kalekundert/vim-coiled-snake
  Errors:
    Already up to date.
    fatal: No url found for submodule path 'tests/issues/dummy_home_16/.vim/pack/dev/start/vim-gitgutter' in .gitmodules
    431d705

Same error when running git submodule update --init --recursive which is what packer is using.

% git submodule update --init --recursive
fatal: No url found for submodule path 'tests/issues/dummy_home_16/.vim/pack/dev/start/vim-gitgutter' in .gitmodules

Result is that it wont install.

@jonasrogert
Copy link
Author

jonasrogert commented Mar 7, 2021

I did a fast temporary fix for it by removing the vim-gitgutter directory. I can't actually find any submodule reference to the vim-gitgutter folder so im not sure really how this happend. It might be only my setup...

https://github.com/jonasrogert/vim-coiled-snake/tree/submodules-no-url

It will probably break tests, not sure how tests and so works in vim.

@WANDEX
Copy link

WANDEX commented Sep 30, 2021

I confirm, plugin cannot be installed or even updated using Packer.nvim.

Temporary solution without modifying the source code is to clone plugin manually into your packer/opt dir:
and add lock=true option into your nvim config, to not try updating it during sync/update of all other packages.

This is what i used (+lazy-load it by file type) (path is just example):

git clone https://github.com/kalekundert/vim-coiled-snake.git ~/.local/share/nvim/site/pack/packer/opt/
local use = require('packer').use
-- FIXME: locked -> to not try updating it. Till fix arrive (kalekundert/vim-coiled-snake/issues/33)
use {'kalekundert/vim-coiled-snake', lock=true, ft='python'} -- python code folding

:PackerSync after all

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

2 participants