vim-plug icon indicating copy to clipboard operation
vim-plug copied to clipboard

`:PlugUpdate`/`:PlugInstall` freezes NeoVim

Open hood opened this issue 1 year ago • 6 comments

Basically running :PlugUpdate/:PlugInstall hangs my NeoVim instance. :PlugClean, :PlugStatus and :PlugDiff run fine. When NV hangs, the only way for me to get out of it is by killing the process. I’ve tried removing plugins and loading only one of them (rotating the one left, to avoid picking the offending one, if any) but the problem persists. I’ve tried building NeoVim from an older commit (all the way back to versions from ~6 months ago), but the problem is still there. Even running nvim --headless -c ‘PlugUpdate’ makes the process freeze.


local Plug = vim.fn['plug#']

vim.call('plug#begin')

Plug('github/copilot.vim')
Plug('ckipp01/stylua-nvim')
Plug('mg979/vim-visual-multi')
Plug('phaazon/hop.nvim')
Plug('windwp/nvim-autopairs')
Plug('nvim-tree/nvim-tree.lua', { ['on'] = {'NvimTreeToggle', 'NvimTreeOpen', 'NvimTreeFindFile'} })
Plug('akinsho/bufferline.nvim')
Plug('tpope/vim-commentary')
Plug('machakann/vim-sandwich')
Plug('junegunn/fzf' )
Plug('junegunn/fzf.vim')
Plug('coreyja/fzf.devicon.vim')
Plug('sbdchd/neoformat', { ['on'] = 'Neoformat' })
Plug('vim-airline/vim-airline')
Plug('vim-airline/vim-airline-themes')
Plug('lukas-reineke/indent-blankline.nvim')
Plug('APZelos/blamer.nvim', { ['on'] = 'BlamerShow' })
Plug('onsails/lspkind-nvim')
Plug('neovim/nvim-lspconfig')
Plug('nvim-treesitter/nvim-treesitter', { ['do'] = ':TSUpdate' })
Plug('nvim-treesitter/nvim-treesitter-textobjects')
Plug('JoosepAlviste/nvim-ts-context-commentstring')
Plug('nvim-treesitter/playground', { ['on'] = 'TSPlaygroundToggle' })
Plug('SmiteshP/nvim-navic')
Plug('hrsh7th/cmp-nvim-lsp')
Plug('hrsh7th/cmp-buffer')
Plug('hrsh7th/nvim-cmp')
Plug('hrsh7th/cmp-nvim-lsp-signature-help')
Plug('jose-elias-alvarez/null-ls.nvim')
Plug('MunifTanjim/eslint.nvim')
Plug('L3MON4D3/LuaSnip')
Plug('saadparwaiz1/cmp_luasnip')
Plug('nvim-lua/plenary.nvim')
Plug('folke/todo-comments.nvim')
Plug('tpope/vim-fugitive')
Plug('mikesmithgh/diffview.nvim')
Plug('junegunn/gv.vim')
Plug('ryanoasis/vim-devicons')
Plug('kyazdani42/nvim-web-devicons')
Plug('voldikss/vim-floaterm', { ['on'] = 'FloatermNew' })
Plug('mbbill/undotree', { ['on'] = 'UndotreeShow' })
Plug('folke/trouble.nvim')
Plug('laytan/cloak.nvim')

vim.call("plug#end")
NVIM v0.11.0-dev-636+ga8fbe1d40
Build type: RelWithDebInfo
LuaJIT 2.1.1724081603
  • Type:
    • [x] Bug
    • [ ] Enhancement
    • [ ] Feature Request
    • [ ] Question
  • OS:
    • [ ] All/Other
    • [ ] Linux
    • [x] macOS
    • [ ] Windows
  • Vim:
    • [ ] Terminal Vim
    • [ ] GVim
    • [x] Neovim

hood avatar Aug 20 '24 07:08 hood

Is this the first time you use vim-plug, or did this happen suddenly after using it for a while?

junegunn avatar Aug 20 '24 10:08 junegunn

Is this the first time you use vim-plug, or did this happen suddenly after using it for a while?

I've been using the plugin for years. Nothing major that I can recall changed in my setup when the issue started occurring.

hood avatar Aug 20 '24 10:08 hood

I have the same bug when running :PlugUpdate, after minutes I received the error Couldn´t connect to server. I'm using, Linux Ubuntu 24.04 LTS, Neovim v0.10.0, Build type: Release, LuaJIT 2.1.1713484068

Updated. Elapsed time: 134.278718 sec.
[=============xxxxxxxxxx]

- Finishing ... Done!
- cmp-buffer: Already up to date.
- cmp-path: Already up to date.
- cmp-cmdline: Already up to date.
- lsp-status.nvim: Already up to date.
- markdown-preview.nvim: Already up to date.
x cmp-nvim-lua:
    fatal: unable to access 'https://github.com/hrsh7th/cmp-nvim-lua.git/': Failed to connect to github.com port 443 after 133118 ms: Couldn't connect to server
x telescope.nvim:
    fatal: unable to access 'https://github.com/nvim-telescope/telescope.nvim.git/': Failed to connect to github.com port 443 after 133647 ms: Couldn't connect to server
x nvim-treesitter:
    fatal: unable to access 'https://github.com/nvim-treesitter/nvim-treesitter.git/': Failed to connect to github.com port 443 after 134120 ms: Couldn't connect to server
- cmp-nvim-lsp-signature-help: Already up to date.
- nvim-cmp: Already up to date.
x vim-commentary:
    fatal: unable to access 'https://github.com/joom/vim-commentary.git/': Failed to connect to github.com port 443 after 134144 ms: Couldn't connect to server
- nerdtree: Already up to date.
x plenary.nvim:
    fatal: unable to access 'https://github.com/nvim-lua/plenary.nvim.git/': Failed to connect to github.com port 443 after 134156 ms: Couldn't connect to server
- vim-grepper: Already up to date.
x rust.vim:
    fatal: unable to access 'https://github.com/rust-lang/rust.vim.git/': Failed to connect to github.com port 443 after 133641 ms: Couldn't connect to server
- vim-fugitive: Already up to date.
- LuaSnip: Already up to date.
- vim-go: Already up to date.
x nvim-lspconfig:
    fatal: unable to access 'https://github.com/neovim/nvim-lspconfig.git/': Failed to connect to github.com port 443 after 133659 ms: Couldn't connect to server
x nvim-highlight-colors:
    fatal: unable to access 'https://github.com/brenoprata10/nvim-highlight-colors.git/': Failed to connect to github.com port 443 after 133646 ms: Couldn't connect to server
x vim-gitgutter:
    fatal: unable to access 'https://github.com/airblade/vim-gitgutter.git/': Failed to connect to github.com port 443 after 134200 ms: Couldn't connect to server
x cmp_luasnip:
    fatal: unable to access 'https://github.com/saadparwaiz1/cmp_luasnip.git/': Failed to connect to github.com port 443 after 133659 ms: Couldn't connect to server
- cmp-nvim-lsp: Already up to date.

jdssl avatar Aug 22 '24 19:08 jdssl

Hm... Your github access seems restricted.

Shougo avatar Aug 22 '24 21:08 Shougo

@Shougo I solved the problem with my internet provider, thanks!!!

jdssl avatar Aug 22 '24 21:08 jdssl

Found out that doing Ctrl-C revives the process if i hit it early enough. 🤷

hood avatar Sep 28 '24 10:09 hood

This stopped happening ofr some reason, closing the issue as nobody else seems affected anymore.

hood avatar Jun 07 '25 11:06 hood