Closed mosheavni closed 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.
Any updates? The same set of plugins also fails updating on a different machine.
@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.
Great stuff! This MUST be documented.
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
nvim --version
: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
Post the contents of ~/.cache/nvim/packer.nvim.log here I truncated the log, then ran
:PackerUpdate
, nothing was written to that logpacker 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 =