wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.83k stars 266 forks source link

Packer is stuck on update #920

Closed mosheavni closed 2 years ago

mosheavni commented 2 years ago

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.7.0/share/nvim"

Run :checkhealth for more info

- `git --version`: `git version 2.36.1`
- Operating system/version: macOS 12.2.1
- Terminal name/version: iTerm 2 `Build 3.4.15`

### Steps to reproduce
I'm not sure how, I will provide my packer conf

### Actual behaviour
Some packages are never updated, update process is stuck:
<img width="573" alt="image" src="https://user-images.githubusercontent.com/17252601/170261519-0b9a6393-f632-4b00-bc45-aadaffe265ce.png">
16 packages are never updated, same ones all the time

### Expected behaviour
Packer should be able to update all packages

### packer files

<details>
<summary>Plugin specification file(s)</summary>

Post or link your plugin specification files here, if you aren't able to provide a minimal
reproducer

<details>
<summary>packer.lua file</summary>

```lua
-- Install packer
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim'

if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
  vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path)
end
return require('packer').startup(function(use)
  -- Infrastructure
  use 'wbthomason/packer.nvim'
  use 'lewis6991/impatient.nvim'
  use 'nvim-lua/plenary.nvim'

  -- Project Drawer
  use { 'preservim/nerdtree', cmd = { 'NERDTreeToggle' } }
  use { 'Xuyuanp/nerdtree-git-plugin', cmd = { 'NERDTreeToggle' } }

  -- Git Related
  use {
    'lewis6991/gitsigns.nvim',
    tag = 'release', -- To use the latest release
  }
  use { 'mosheavni/vim-to-github', cmd = { 'ToGithub' } }
  use 'tpope/vim-fugitive'
  use 'tpope/vim-rhubarb' -- Fugitive-companion to interact with github
  use { 'rhysd/conflict-marker.vim' }

  -- Documents
  use 'nanotee/luv-vimdocs'
  use 'milisims/nvim-luaref'

  -- Fuzzy Search
  use {
    'nvim-telescope/telescope.nvim',
    requires = {
      { 'nvim-lua/plenary.nvim' },
      { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
      { 'nvim-telescope/telescope-project.nvim' },
    },
  }

  -- LSP, Completion and Language
  -- Tree Sitter
  use {
    'nvim-treesitter/nvim-treesitter',
    run = ':TSUpdate',
  }
  use {
    'SmiteshP/nvim-gps',
    requires = 'nvim-treesitter/nvim-treesitter',
  }
  use {
    'cuducos/yaml.nvim',
    ft = { 'yaml' }, -- optional
    requires = {
      'nvim-treesitter/nvim-treesitter',
    },
  }
  use 'lewis6991/nvim-treesitter-context'
  use 'nvim-treesitter/nvim-treesitter-refactor'
  -- LSP
  use {
    'neovim/nvim-lspconfig',
    'williamboman/nvim-lsp-installer',
    'ray-x/lsp_signature.nvim', -- Show function signature when you type
    'jose-elias-alvarez/null-ls.nvim',
    'b0o/SchemaStore.nvim',
    'folke/lsp-colors.nvim',
    'nvim-lua/lsp-status.nvim',
    'j-hui/fidget.nvim',
    'nanotee/nvim-lsp-basics',
    'kosayoda/nvim-lightbulb',
  }
  use {
    'ray-x/navigator.lua',
    requires = {
      { 'ray-x/guihua.lua', run = 'cd lua/fzy && make' },
      { 'neovim/nvim-lspconfig' },
    },
  }
  use {
    'hrsh7th/nvim-cmp', -- auto completion
    requires = {
      'hrsh7th/cmp-nvim-lsp',
      'L3MON4D3/LuaSnip',
      'saadparwaiz1/cmp_luasnip',
      'hrsh7th/cmp-buffer',
      'hrsh7th/cmp-path',
      'hrsh7th/cmp-nvim-lua',
      'hrsh7th/cmp-cmdline',
      'onsails/lspkind-nvim', -- show pictograms in the auto complete popup
      { 'tzachar/cmp-tabnine', run = './install.sh' },
      'windwp/nvim-autopairs',
      'hrsh7th/cmp-nvim-lsp-document-symbol',
    },
  }
  use {
    'iamcco/markdown-preview.nvim',
    run = 'cd app && yarn install',
    setup = function()
      vim.g.mkdp_filetypes = { 'markdown' }
    end,
    cmd = 'MarkdownPreview',
    ft = { 'markdown' },
  }
  use { 'vim-scripts/groovyindent-unix', ft = { 'groovy', 'Jenkinsfile' } }
  use { 'martinda/Jenkinsfile-vim-syntax' }
  use { 'chr4/nginx.vim', ft = { 'nginx' } }
  use { 'rayburgemeestre/phpfolding.vim', ft = { 'php' } }
  use { 'andrewstuart/vim-kubernetes', ft = { 'yaml' } }
  use { 'towolf/vim-helm', ft = { 'yaml', 'yaml.gotexttmpl' } }
  use { 'mogelbrod/vim-jsonpath', ft = { 'json' } }
  use { 'chrisbra/vim-sh-indent', ft = { 'sh', 'bash', 'zsh' } }
  use { 'phenomenes/ansible-snippets', ft = { 'yaml' } }
  use { 'rafamadriz/friendly-snippets' } -- snippets for many languages
  use { 'folke/lua-dev.nvim' }

  -- Functionality Tools
  use 'christoomey/vim-system-copy'
  use 'danro/rename.vim'
  use 'voldikss/vim-floaterm'
  use { 'mosheavni/vim-dirdiff', cmd = { 'DirDiff' } }
  use 'simeji/winresizer'
  use {
    'dstein64/vim-startuptime',
    cmd = 'StartupTime',
  }
  use { 'pechorin/any-jump.vim', cmd = { 'AnyJump', 'AnyJumpVisual' } }
  -- Find and replace
  use 'windwp/nvim-spectre'
  use { 'folke/which-key.nvim' }

  -- Look & Feel
  use { 'stevearc/dressing.nvim' } -- overrides the default vim input to provide better visuals
  use 'rcarriga/nvim-notify'

  use {
    'nvim-lualine/lualine.nvim',
    requires = {
      { 'kyazdani42/nvim-web-devicons', opt = true },
    },
  }
  use 'kyazdani42/nvim-web-devicons'
  -- use 'adelarsq/vim-devicons-emoji'
  use 'romgrk/barbar.nvim'
  use 'karb94/neoscroll.nvim'
  use 'machakann/vim-highlightedyank'
  use 'mhinz/vim-startify'
  use 'vim-scripts/CursorLineCurrentWindow'
  use 'p00f/nvim-ts-rainbow'

  -- Themes
  use 'ellisonleao/gruvbox.nvim'

  -- Text Manipulation
  use 'tpope/vim-repeat'
  use 'tpope/vim-surround'
  use { 'numToStr/Comment.nvim' }
  use 'JoosepAlviste/nvim-ts-context-commentstring'
  use 'junegunn/vim-easy-align'
  use 'AndrewRadev/switch.vim'
  use 'justinmk/vim-sneak'
  use 'tommcdo/vim-lister' -- Qfilter and Qgrep on Quickfix
  use { 'alvan/vim-closetag', ft = { 'html', 'javascript' } }
  use 'editorconfig/editorconfig-vim'

  -- Devicons is last so it can support all of the other plugins
  use 'ryanoasis/vim-devicons'
end)

Post the contents of ~/.cache/nvim/packer.nvim.log here I truncated the log, then ran :PackerUpdate, nothing was written to that log

packer compiled file ```lua -- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcall(function() local time local profile_info local should_profile = false if should_profile then local hrtime = vim.loop.hrtime profile_info = {} time = function(chunk, start) if start then profile_info[chunk] = hrtime() else profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 end end else time = function(chunk, start) end end local function save_profiles(threshold) local sorted_times = {} for chunk_name, time_taken in pairs(profile_info) do sorted_times[#sorted_times + 1] = {chunk_name, time_taken} end table.sort(sorted_times, function(a, b) return a[2] > b[2] end) local results = {} for i, elem in ipairs(sorted_times) do if not threshold or threshold and elem[2] > threshold then results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' end end _G._packer = _G._packer or {} _G._packer.profile_output = results end time([[Luarocks path setup]], true) local package_path_str = "/Users/mavni/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/mavni/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/mavni/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/mavni/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/Users/mavni/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end if not string.find(package.cpath, install_cpath_pattern, 1, true) then package.cpath = package.cpath .. ';' .. install_cpath_pattern end time([[Luarocks path setup]], false) time([[try_loadstring definition]], true) local function try_loadstring(s, component, name) local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) if not success then vim.schedule(function() vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) end) end return result end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { ["Comment.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/Comment.nvim", url = "https://github.com/numToStr/Comment.nvim" }, CursorLineCurrentWindow = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/CursorLineCurrentWindow", url = "https://github.com/vim-scripts/CursorLineCurrentWindow" }, ["Jenkinsfile-vim-syntax"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/Jenkinsfile-vim-syntax", url = "https://github.com/martinda/Jenkinsfile-vim-syntax" }, LuaSnip = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/LuaSnip", url = "https://github.com/L3MON4D3/LuaSnip" }, ["SchemaStore.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/SchemaStore.nvim", url = "https://github.com/b0o/SchemaStore.nvim" }, ["ansible-snippets"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/ansible-snippets", url = "https://github.com/phenomenes/ansible-snippets" }, ["any-jump.vim"] = { commands = { "AnyJump", "AnyJumpVisual" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/any-jump.vim", url = "https://github.com/pechorin/any-jump.vim" }, ["barbar.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/barbar.nvim", url = "https://github.com/romgrk/barbar.nvim" }, ["cmp-buffer"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-buffer", url = "https://github.com/hrsh7th/cmp-buffer" }, ["cmp-cmdline"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-cmdline", url = "https://github.com/hrsh7th/cmp-cmdline" }, ["cmp-nvim-lsp"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", url = "https://github.com/hrsh7th/cmp-nvim-lsp" }, ["cmp-nvim-lsp-document-symbol"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol", url = "https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol" }, ["cmp-nvim-lua"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", url = "https://github.com/hrsh7th/cmp-nvim-lua" }, ["cmp-path"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-path", url = "https://github.com/hrsh7th/cmp-path" }, ["cmp-tabnine"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp-tabnine", url = "https://github.com/tzachar/cmp-tabnine" }, cmp_luasnip = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/cmp_luasnip", url = "https://github.com/saadparwaiz1/cmp_luasnip" }, ["conflict-marker.vim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/conflict-marker.vim", url = "https://github.com/rhysd/conflict-marker.vim" }, ["dressing.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/dressing.nvim", url = "https://github.com/stevearc/dressing.nvim" }, ["editorconfig-vim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/editorconfig-vim", url = "https://github.com/editorconfig/editorconfig-vim" }, ["fidget.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/fidget.nvim", url = "https://github.com/j-hui/fidget.nvim" }, ["friendly-snippets"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/friendly-snippets", url = "https://github.com/rafamadriz/friendly-snippets" }, ["gitsigns.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", url = "https://github.com/lewis6991/gitsigns.nvim" }, ["groovyindent-unix"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/groovyindent-unix", url = "https://github.com/vim-scripts/groovyindent-unix" }, ["gruvbox.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/gruvbox.nvim", url = "https://github.com/ellisonleao/gruvbox.nvim" }, ["guihua.lua"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/guihua.lua", url = "https://github.com/ray-x/guihua.lua" }, ["impatient.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/impatient.nvim", url = "https://github.com/lewis6991/impatient.nvim" }, ["lsp-colors.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim", url = "https://github.com/folke/lsp-colors.nvim" }, ["lsp-status.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lsp-status.nvim", url = "https://github.com/nvim-lua/lsp-status.nvim" }, ["lsp_signature.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim", url = "https://github.com/ray-x/lsp_signature.nvim" }, ["lspkind-nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lspkind-nvim", url = "https://github.com/onsails/lspkind-nvim" }, ["lua-dev.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lua-dev.nvim", url = "https://github.com/folke/lua-dev.nvim" }, ["lualine.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, ["luv-vimdocs"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/luv-vimdocs", url = "https://github.com/nanotee/luv-vimdocs" }, ["markdown-preview.nvim"] = { commands = { "MarkdownPreview" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/markdown-preview.nvim", url = "https://github.com/iamcco/markdown-preview.nvim" }, ["navigator.lua"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/navigator.lua", url = "https://github.com/ray-x/navigator.lua" }, ["neoscroll.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/neoscroll.nvim", url = "https://github.com/karb94/neoscroll.nvim" }, nerdtree = { commands = { "NERDTreeToggle" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/nerdtree", url = "https://github.com/preservim/nerdtree" }, ["nerdtree-git-plugin"] = { commands = { "NERDTreeToggle" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/nerdtree-git-plugin", url = "https://github.com/Xuyuanp/nerdtree-git-plugin" }, ["nginx.vim"] = { loaded = false, needs_bufread = true, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/nginx.vim", url = "https://github.com/chr4/nginx.vim" }, ["null-ls.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/null-ls.nvim", url = "https://github.com/jose-elias-alvarez/null-ls.nvim" }, ["nvim-autopairs"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-autopairs", url = "https://github.com/windwp/nvim-autopairs" }, ["nvim-cmp"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-cmp", url = "https://github.com/hrsh7th/nvim-cmp" }, ["nvim-gps"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-gps", url = "https://github.com/SmiteshP/nvim-gps" }, ["nvim-lightbulb"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-lightbulb", url = "https://github.com/kosayoda/nvim-lightbulb" }, ["nvim-lsp-basics"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-lsp-basics", url = "https://github.com/nanotee/nvim-lsp-basics" }, ["nvim-lsp-installer"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", url = "https://github.com/williamboman/nvim-lsp-installer" }, ["nvim-lspconfig"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, ["nvim-luaref"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-luaref", url = "https://github.com/milisims/nvim-luaref" }, ["nvim-notify"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-notify", url = "https://github.com/rcarriga/nvim-notify" }, ["nvim-spectre"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-spectre", url = "https://github.com/windwp/nvim-spectre" }, ["nvim-treesitter"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, ["nvim-treesitter-context"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-treesitter-context", url = "https://github.com/lewis6991/nvim-treesitter-context" }, ["nvim-treesitter-refactor"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-treesitter-refactor", url = "https://github.com/nvim-treesitter/nvim-treesitter-refactor" }, ["nvim-ts-context-commentstring"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-ts-context-commentstring", url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" }, ["nvim-ts-rainbow"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-ts-rainbow", url = "https://github.com/p00f/nvim-ts-rainbow" }, ["nvim-web-devicons"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/kyazdani42/nvim-web-devicons" }, ["packer.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/packer.nvim", url = "https://github.com/wbthomason/packer.nvim" }, ["phpfolding.vim"] = { loaded = false, needs_bufread = true, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/phpfolding.vim", url = "https://github.com/rayburgemeestre/phpfolding.vim" }, ["plenary.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, ["rename.vim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/rename.vim", url = "https://github.com/danro/rename.vim" }, ["switch.vim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/switch.vim", url = "https://github.com/AndrewRadev/switch.vim" }, ["telescope-fzf-native.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/telescope-fzf-native.nvim", url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" }, ["telescope-project.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/telescope-project.nvim", url = "https://github.com/nvim-telescope/telescope-project.nvim" }, ["telescope.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, ["vim-closetag"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-closetag", url = "https://github.com/alvan/vim-closetag" }, ["vim-devicons"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-devicons", url = "https://github.com/ryanoasis/vim-devicons" }, ["vim-dirdiff"] = { commands = { "DirDiff" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-dirdiff", url = "https://github.com/mosheavni/vim-dirdiff" }, ["vim-easy-align"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-easy-align", url = "https://github.com/junegunn/vim-easy-align" }, ["vim-floaterm"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-floaterm", url = "https://github.com/voldikss/vim-floaterm" }, ["vim-fugitive"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-fugitive", url = "https://github.com/tpope/vim-fugitive" }, ["vim-helm"] = { loaded = false, needs_bufread = true, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-helm", url = "https://github.com/towolf/vim-helm" }, ["vim-highlightedyank"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-highlightedyank", url = "https://github.com/machakann/vim-highlightedyank" }, ["vim-jsonpath"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-jsonpath", url = "https://github.com/mogelbrod/vim-jsonpath" }, ["vim-kubernetes"] = { loaded = false, needs_bufread = true, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-kubernetes", url = "https://github.com/andrewstuart/vim-kubernetes" }, ["vim-lister"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-lister", url = "https://github.com/tommcdo/vim-lister" }, ["vim-repeat"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-repeat", url = "https://github.com/tpope/vim-repeat" }, ["vim-rhubarb"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-rhubarb", url = "https://github.com/tpope/vim-rhubarb" }, ["vim-sh-indent"] = { loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-sh-indent", url = "https://github.com/chrisbra/vim-sh-indent" }, ["vim-sneak"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-sneak", url = "https://github.com/justinmk/vim-sneak" }, ["vim-startify"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-startify", url = "https://github.com/mhinz/vim-startify" }, ["vim-startuptime"] = { commands = { "StartupTime" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-startuptime", url = "https://github.com/dstein64/vim-startuptime" }, ["vim-surround"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-surround", url = "https://github.com/tpope/vim-surround" }, ["vim-system-copy"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/vim-system-copy", url = "https://github.com/christoomey/vim-system-copy" }, ["vim-to-github"] = { commands = { "ToGithub" }, loaded = false, needs_bufread = false, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-to-github", url = "https://github.com/mosheavni/vim-to-github" }, ["which-key.nvim"] = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/which-key.nvim", url = "https://github.com/folke/which-key.nvim" }, winresizer = { loaded = true, path = "/Users/mavni/.local/share/nvim/site/pack/packer/start/winresizer", url = "https://github.com/simeji/winresizer" }, ["yaml.nvim"] = { loaded = false, needs_bufread = true, only_cond = false, path = "/Users/mavni/.local/share/nvim/site/pack/packer/opt/yaml.nvim", url = "https://github.com/cuducos/yaml.nvim" } } time([[Defining packer_plugins]], false) -- Setup for: markdown-preview.nvim time([[Setup for markdown-preview.nvim]], true) try_loadstring("\27LJ\2\n=\0\0\2\0\4\0\0056\0\0\0009\0\1\0005\1\3\0=\1\2\0K\0\1\0\1\2\0\0\rmarkdown\19mkdp_filetypes\6g\bvim\0", "setup", "markdown-preview.nvim") time([[Setup for markdown-preview.nvim]], false) -- Command lazy-loads time([[Defining lazy-load commands]], true) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file MarkdownPreview lua require("packer.load")({'markdown-preview.nvim'}, { cmd = "MarkdownPreview", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file DirDiff lua require("packer.load")({'vim-dirdiff'}, { cmd = "DirDiff", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file NERDTreeToggle lua require("packer.load")({'nerdtree-git-plugin', 'nerdtree'}, { cmd = "NERDTreeToggle", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file StartupTime lua require("packer.load")({'vim-startuptime'}, { cmd = "StartupTime", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file ToGithub lua require("packer.load")({'vim-to-github'}, { cmd = "ToGithub", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file AnyJump lua require("packer.load")({'any-jump.vim'}, { cmd = "AnyJump", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file AnyJumpVisual lua require("packer.load")({'any-jump.vim'}, { cmd = "AnyJumpVisual", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) time([[Defining lazy-load commands]], false) vim.cmd [[augroup packer_load_aucmds]] vim.cmd [[au!]] -- Filetype lazy-loads time([[Defining lazy-load filetype autocommands]], true) vim.cmd [[au FileType zsh ++once lua require("packer.load")({'vim-sh-indent'}, { ft = "zsh" }, _G.packer_plugins)]] vim.cmd [[au FileType sh ++once lua require("packer.load")({'vim-sh-indent'}, { ft = "sh" }, _G.packer_plugins)]] vim.cmd [[au FileType html ++once lua require("packer.load")({'vim-closetag'}, { ft = "html" }, _G.packer_plugins)]] vim.cmd [[au FileType javascript ++once lua require("packer.load")({'vim-closetag'}, { ft = "javascript" }, _G.packer_plugins)]] vim.cmd [[au FileType groovy ++once lua require("packer.load")({'groovyindent-unix'}, { ft = "groovy" }, _G.packer_plugins)]] vim.cmd [[au FileType nginx ++once lua require("packer.load")({'nginx.vim'}, { ft = "nginx" }, _G.packer_plugins)]] vim.cmd [[au FileType Jenkinsfile ++once lua require("packer.load")({'groovyindent-unix'}, { ft = "Jenkinsfile" }, _G.packer_plugins)]] vim.cmd [[au FileType markdown ++once lua require("packer.load")({'markdown-preview.nvim'}, { ft = "markdown" }, _G.packer_plugins)]] vim.cmd [[au FileType bash ++once lua require("packer.load")({'vim-sh-indent'}, { ft = "bash" }, _G.packer_plugins)]] vim.cmd [[au FileType yaml ++once lua require("packer.load")({'yaml.nvim', 'vim-kubernetes', 'vim-helm', 'ansible-snippets'}, { ft = "yaml" }, _G.packer_plugins)]] vim.cmd [[au FileType php ++once lua require("packer.load")({'phpfolding.vim'}, { ft = "php" }, _G.packer_plugins)]] vim.cmd [[au FileType json ++once lua require("packer.load")({'vim-jsonpath'}, { ft = "json" }, _G.packer_plugins)]] vim.cmd [[au FileType yaml.gotexttmpl ++once lua require("packer.load")({'vim-helm'}, { ft = "yaml.gotexttmpl" }, _G.packer_plugins)]] time([[Defining lazy-load filetype autocommands]], false) vim.cmd("augroup END") vim.cmd [[augroup filetypedetect]] time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-kubernetes/ftdetect/kubeconf.vim]], true) vim.cmd [[source /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-kubernetes/ftdetect/kubeconf.vim]] time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-kubernetes/ftdetect/kubeconf.vim]], false) time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-helm/ftdetect/helm.vim]], true) vim.cmd [[source /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-helm/ftdetect/helm.vim]] time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/vim-helm/ftdetect/helm.vim]], false) time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/nginx.vim/ftdetect/nginx.vim]], true) vim.cmd [[source /Users/mavni/.local/share/nvim/site/pack/packer/opt/nginx.vim/ftdetect/nginx.vim]] time([[Sourcing ftdetect script at: /Users/mavni/.local/share/nvim/site/pack/packer/opt/nginx.vim/ftdetect/nginx.vim]], false) vim.cmd("augroup END") if should_profile then save_profiles() end end) if not no_errors then error_msg = error_msg:gsub('"', '\\"') vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') end ```
leisurelicht commented 2 years ago

I have same problem. if I delete some packages, other packages will update all, and when I add them back, update will stuck.

mosheavni commented 2 years ago

Any updates? The same set of plugins also fails updating on a different machine.

matt-riley commented 2 years ago

@mosheavni I've had the same issue, when the amount of plugins is 70+ (not worked out the exact number to trigger the issue yet on my machines)

A way to resolve it though is setting max_jobs in the config for packer.init. I've set mine to 10 and it's now updating without any issues.

mosheavni commented 2 years ago

Great stuff! This MUST be documented.

milanglacier commented 2 years ago

I have the same problem, I am also on macOS. when run packerupdate in terminal, it stucks, only few plugins are updated and the rest are stuck here. But if I use a gui like vimr, it updates smoothlyl I will try the max_job option and see if it will make a difference