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.87k stars 267 forks source link

PackerUpdate fail to update all plugins #456

Open MordechaiHadad opened 3 years ago

MordechaiHadad commented 3 years ago

Just as title says I am able to update most plugins but not all of them.

Steps to reproduce

Just use the Update command

Actual behaviour

Not updating everything: stuff

Expected behaviour

Update everyting

Details asked by the guy i discussed with on reddit:

packer files

packer log file [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723908790000] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:428: packer.update: requiring modules [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723910842500] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:302: Processing plugin specs [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723913327200] .../pack/packer/opt/packer.nvim/lua/packer/plugin_utils.lua:176: Updating FS state [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723952014500] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:55: Fixing plugin types [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723952041700] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:66: Done fixing plugin types [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723952065100] ...im/site/pack/packer/opt/packer.nvim/lua/packer/clean.lua:22: Starting clean [INFO Wed 07 Jul 2021 10:03:03 PM IDT 723952135300] ...im/site/pack/packer/opt/packer.nvim/lua/packer/clean.lua:82: Already clean! [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723952167500] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:451: Gathering install tasks [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723952188100] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:455: Gathering update tasks [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723959470800] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:459: Gathering luarocks tasks [DEBUG Wed 07 Jul 2021 10:03:03 PM IDT 723959502900] ...are/nvim/site/pack/packer/opt/packer.nvim/lua/packer.lua:469: Running tasks [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235474800] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update nvim-lua/plenary.nvim: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for nvim-lua/plenary.nvim: fatal: unable to access 'https://github.com/nvim-lua/plenary.nvim.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for nvim-lua/plenary.nvim: ca51b68" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235574900] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update kyazdani42/nvim-web-devicons: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for kyazdani42/nvim-web-devicons: fatal: unable to access 'https://github.com/kyazdani42/nvim-web-devicons/': Could not resolve host: github.com" }, msg = "Error checking updated commit for kyazdani42/nvim-web-devicons: da717e1" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235646200] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update tzachar/compe-tabnine: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for tzachar/compe-tabnine: fatal: unable to access 'https://github.com/tzachar/compe-tabnine.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for tzachar/compe-tabnine: a4d7b60" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235715300] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update kabouzeid/nvim-lspinstall: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for kabouzeid/nvim-lspinstall: fatal: unable to access 'https://github.com/kabouzeid/nvim-lspinstall.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for kabouzeid/nvim-lspinstall: b39c85d" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235828500] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update ahmedkhalf/lsp-rooter.nvim: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for ahmedkhalf/lsp-rooter.nvim: fatal: unable to access 'https://github.com/ahmedkhalf/lsp-rooter.nvim.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for ahmedkhalf/lsp-rooter.nvim: ca8670c" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235886500] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update kyazdani42/nvim-tree.lua: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for kyazdani42/nvim-tree.lua: fatal: unable to access 'https://github.com/kyazdani42/nvim-tree.lua/': Could not resolve host: github.com" }, msg = "Error checking updated commit for kyazdani42/nvim-tree.lua: 933d69a" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858235981400] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update mhinz/vim-startify: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for mhinz/vim-startify: fatal: unable to access 'https://github.com/mhinz/vim-startify/': Could not resolve host: github.com" }, msg = "Error checking updated commit for mhinz/vim-startify: 81e36c3" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236070600] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update hrsh7th/nvim-compe: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for hrsh7th/nvim-compe: fatal: unable to access 'https://github.com/hrsh7th/nvim-compe.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for hrsh7th/nvim-compe: 83b33e7" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236132100] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update windwp/nvim-autopairs: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for windwp/nvim-autopairs: fatal: unable to access 'https://github.com/windwp/nvim-autopairs.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for windwp/nvim-autopairs: b64fa0d" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236206600] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update folke/lsp-trouble.nvim: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for folke/lsp-trouble.nvim: fatal: unable to access 'https://github.com/folke/lsp-trouble.nvim.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for folke/lsp-trouble.nvim: 7de8bc4" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236359400] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update ray-x/lsp_signature.nvim: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for ray-x/lsp_signature.nvim: fatal: unable to access 'https://github.com/ray-x/lsp_signature.nvim.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for ray-x/lsp_signature.nvim: bb57b0f" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236409900] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update windwp/nvim-ts-autotag: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for windwp/nvim-ts-autotag: fatal: unable to access 'https://github.com/windwp/nvim-ts-autotag.git/': Could not resolve host: github.com" }, msg = "Error checking updated commit for windwp/nvim-ts-autotag: b88545a" } [DEBUG Wed 07 Jul 2021 10:05:17 PM IDT 858236462400] ...m/site/pack/packer/opt/packer.nvim/lua/packer/update.lua:97: Failed to update rktjmp/lush.nvim: { data = { data = { exit_code = 1, signal = 0 }, msg = "Error pulling updates for rktjmp/lush.nvim: fatal: unable to access 'https://github.com/rktjmp/lush.nvim/': Could not resolve host: github.com" }, msg = "Error checking updated commit for rktjmp/lush.nvim: 3232af4" }
packer compiled file ```vim 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 = pcall(function() local time local profile_info local should_profile = true 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 = "/home/morde/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?.lua;/home/morde/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/?/init.lua;/home/morde/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?.lua;/home/morde/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/home/morde/.cache/nvim/packer_hererocks/2.0.5/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)) 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 = { ["barbar.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/barbar.nvim" }, ["bracey.vim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/bracey.vim" }, ["compe-tabnine"] = { after_files = { "/home/morde/.local/share/nvim/site/pack/packer/opt/compe-tabnine/after/plugin/compe_tabnine.vim" }, load_after = { ["snippets.nvim"] = true }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/compe-tabnine" }, ["galaxyline.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/galaxyline.nvim" }, ["gitsigns.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/gitsigns.nvim" }, kommentary = { loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/kommentary" }, ["lsp-rooter.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/lsp-rooter.nvim" }, ["lsp-trouble.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/lsp-trouble.nvim" }, ["lsp_signature.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/lsp_signature.nvim" }, ["lspsaga.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/lspsaga.nvim" }, ["lush.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/lush.nvim" }, ["nvim-autopairs"] = { config = { "\27LJ\1\2Ø\1\0\0\3\1\t\2\0314\0\0\0007\0\1\0007\0\2\0>\0\1\2\b\0\0\0T\0\21€4\0\0\0007\0\1\0007\0\3\0>\0\1\0027\0\4\0\b\0\1\0T\0\t€4\0\0\0007\0\1\0007\0\5\0+\1\0\0007\1\6\1%\2\a\0>\1\2\0?\0\0\0T\0\b€+\0\0\0007\0\6\0%\1\a\0@\0\2\0T\0\3€+\0\0\0007\0\b\0@\0\1\0G\0\1\0\1À\17autopairs_cr\t\besc\18compe#confirm\rselected\18complete_info\15pumvisible\afn\bvim\0þÿÿÿ\31£\2\1\0\a\0\17\0\0294\0\0\0007\0\1\0007\0\2\0004\1\3\0%\2\4\0>\1\2\0024\2\3\0%\3\4\0>\2\2\0027\2\5\2>\2\1\0014\2\6\0002\3\0\0:\3\a\0024\2\0\0007\2\b\2%\3\n\0:\3\t\0024\2\a\0001\3\f\0:\3\v\2\16\2\0\0%\3\r\0%\4\14\0%\5\15\0003\6\16\0>\2\5\0010\0\0€G\0\1\0\1\0\2\texpr\2\fnoremap\2&v:lua.MUtils.completion_confirm()\t\6i\0\23completion_confirm\5\27completion_confirm_key\6g\vMUtils\a_G\nsetup\19nvim-autopairs\frequire\20nvim_set_keymap\bapi\bvim\0" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-autopairs" }, ["nvim-colorizer.lua"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/nvim-colorizer.lua" }, ["nvim-compe"] = { after = { "snippets.nvim" }, after_files = { "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-compe/after/plugin/compe.vim" }, config = { "\27LJ\1\2«\4\0\0\5\0\26\0\0294\0\0\0%\1\1\0>\0\2\0027\0\2\0003\1\3\0003\2\5\0003\3\4\0:\3\6\0023\3\a\0:\3\b\0023\3\t\0:\3\n\0023\3\v\0:\3\f\0023\3\r\0:\3\14\0023\3\15\0:\3\16\0023\3\17\0:\3\18\0023\3\19\0:\3\20\0023\3\22\0003\4\21\0:\4\23\3:\3\24\2:\2\25\1>\0\2\1G\0\1\0\vsource\nemoji\14filetypes\1\0\0\1\3\0\0\rmarkdown\ttext\18snippets_nvim\1\0\1\tkind\n  \nspell\1\0\1\tkind\n  \rnvim_lua\1\0\1\tkind\n  \rnvim_lsp\1\0\1\tkind\n  \nvsnip\1\0\1\tkind\n  \tcalc\1\0\1\tkind\n  \vbuffer\1\0\1\tkind\n  \tpath\1\0\1\ftabnine\2\1\0\1\tkind\n  \1\0\f\17autocomplete\2\19source_timeout\3È\1\fenabled\2\ndebug\1\14preselect\venable\19max_abbr_width\3d\21incomplete_delay\3\3\19max_menu_width\3d\19max_kind_width\3d\15min_length\3\1\18throttle_time\3P\18documentation\2\nsetup\ncompe\frequire\0" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-compe" }, ["nvim-lspconfig"] = { after = { "nvim-lspinstall" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-lspconfig" }, ["nvim-lspinstall"] = { config = { "\27LJ\1\2¢\1\0\0\b\0\6\0\0244\0\0\0%\1\1\0>\0\2\0027\0\2\0>\0\1\0014\0\0\0%\1\1\0>\0\2\0027\0\3\0>\0\1\0024\1\4\0\16\2\0\0>\1\2\4D\4\a€4\6\0\0%\a\5\0>\6\2\0026\6\5\0067\6\2\0062\a\0\0>\6\2\1B\4\3\3N\4÷G\0\1\0\14lspconfig\npairs\22installed_servers\nsetup\15lspinstall\frequire5\0\0\2\1\3\0\a+\0\0\0>\0\1\0014\0\0\0007\0\1\0%\1\2\0>\0\2\1G\0\1\0\0À\fbufdo e\bcmd\bvimV\1\0\3\0\5\0\n1\0\0\0\16\1\0\0>\1\1\0014\1\1\0%\2\2\0>\1\2\0021\2\4\0:\2\3\0010\0\0€G\0\1\0\0\22post_install_hook\15lspinstall\frequire\0\0" }, load_after = { ["nvim-lspconfig"] = true }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-lspinstall" }, ["nvim-papadark"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/nvim-papadark" }, ["nvim-tree.lua"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/nvim-tree.lua" }, ["nvim-treesitter"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/nvim-treesitter" }, ["nvim-ts-autotag"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/nvim-ts-autotag" }, ["nvim-web-devicons"] = { loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/nvim-web-devicons" }, ["packer.nvim"] = { loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/packer.nvim" }, playground = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/playground" }, ["plenary.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/plenary.nvim" }, ["popup.nvim"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/popup.nvim" }, ["snippets.nvim"] = { after = { "compe-tabnine" }, load_after = { ["nvim-compe"] = true }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/snippets.nvim" }, ["telescope.nvim"] = { commands = { "Telescope" }, config = { "\27LJ\1\2¥\1\0\0\a\0\r\0\0184\0\0\0%\1\1\0>\0\2\0024\1\0\0%\2\2\0>\1\2\0027\1\3\0013\2\v\0003\3\t\0003\4\a\0003\5\5\0007\6\4\0:\6\6\5:\5\b\4:\4\n\3:\3\f\2>\1\2\1G\0\1\0\rdefaults\1\0\0\rmappings\1\0\0\6i\1\0\0\n\1\0\0\nclose\nsetup\14telescope\22telescope.actions\frequire\0" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/telescope.nvim" }, ["todo-comments.nvim"] = { config = { "\27LJ\1\2ö\a\0\0\5\0*\00014\0\0\0%\1\1\0>\0\2\0027\0\2\0003\1\3\0003\2\a\0003\3\4\0003\4\5\0:\4\6\3:\3\b\0023\3\t\0:\3\n\0023\3\v\0:\3\f\0023\3\r\0003\4\14\0:\4\6\3:\3\15\0023\3\16\0003\4\17\0:\4\6\3:\3\18\0023\3\19\0003\4\20\0:\4\6\3:\3\21\2:\2\22\0013\2\23\0002\3\0\0:\3\24\2:\2\25\0013\2\27\0003\3\26\0:\3\28\0023\3\29\0:\3\30\0023\3\31\0:\3 \0023\3!\0:\3\"\0023\3#\0:\3$\2:\2%\0013\2&\0003\3'\0:\3(\2:\2)\1>\0\2\1G\0\1\0\vsearch\targs\1\6\0\0\18--color=never\17--no-heading\20--with-filename\18--line-number\r--column\1\0\2\fpattern\19\\b(KEYWORDS)\\b\fcommand\arg\vcolors\fdefault\1\3\0\0\15Identifier\f#7C3AED\thint\1\3\0\0\30LspDiagnosticsDefaultHint\f#10B981\tinfo\1\3\0\0%LspDiagnosticsDefaultInformation\f#2563EB\fwarning\1\4\0\0!LspDiagnosticsDefaultWarning\15WarningMsg\f#FBBF24\nerror\1\0\0\1\4\0\0\31LspDiagnosticsDefaultError\rErrorMsg\f#DC2626\14highlight\fexclude\1\0\6\fpattern\21.*<(KEYWORDS)\\s*\fkeyword\twide\17max_line_len\3\3\vbefore\5\18comments_only\2\nafter\afg\rkeywords\tNOTE\1\2\0\0\tINFO\1\0\2\ncolor\thint\ticon\t \tPERF\1\4\0\0\nOPTIM\16PERFORMANCE\rOPTIMIZE\1\0\1\ticon\t \tWARN\1\3\0\0\fWARNING\bXXX\1\0\2\ncolor\fwarning\ticon\t \tHACK\1\0\2\ncolor\fwarning\ticon\t \tTODO\1\0\2\ncolor\tinfo\ticon\t \bFIX\1\0\0\balt\1\5\0\0\nFIXME\bBUG\nFIXIT\nISSUE\1\0\2\ncolor\nerror\ticon\t \1\0\3\18sign_priority\3\1\19merge_keywords\2\nsigns\2\nsetup\18todo-comments\frequire\0" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/todo-comments.nvim" }, ["vim-floaterm"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/vim-floaterm" }, ["vim-startify"] = { loaded = true, path = "/home/morde/.local/share/nvim/site/pack/packer/start/vim-startify" }, ["which-key.nvim"] = { config = { "\27LJ\1\2^\0\0\3\0\6\0\t4\0\0\0%\1\1\0>\0\2\0027\0\2\0003\1\4\0003\2\3\0:\2\5\1>\0\2\1G\0\1\0\vwindow\1\0\0\1\0\1\vborder\vsingle\nsetup\14which-key\frequire\0" }, loaded = false, needs_bufread = false, path = "/home/morde/.local/share/nvim/site/pack/packer/opt/which-key.nvim" } } time([[Defining packer_plugins]], false) local module_lazy_loads = { ["^nvim%-web%-devicons"] = "nvim-web-devicons", ["^telescope"] = "telescope.nvim" } local lazy_load_called = {['packer.load'] = true} local function lazy_load_module(module_name) local to_load = {} if lazy_load_called[module_name] then return nil end lazy_load_called[module_name] = true for module_pat, plugin_name in pairs(module_lazy_loads) do if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat)then to_load[#to_load + 1] = plugin_name end end require('packer.load')(to_load, {module = module_name}, _G.packer_plugins) end if not vim.g.packer_custom_loader_enabled then table.insert(package.loaders, 1, lazy_load_module) vim.g.packer_custom_loader_enabled = true end -- Command lazy-loads time([[Defining lazy-load commands]], true) vim.cmd [[command! -nargs=* -range -bang -complete=file Telescope lua require("packer.load")({'telescope.nvim'}, { cmd = "Telescope", l1 = , l2 = , bang = , args = }, _G.packer_plugins)]] time([[Defining lazy-load commands]], false) vim.cmd [[augroup packer_load_aucmds]] vim.cmd [[au!]] -- Event lazy-loads time([[Defining lazy-load event autocommands]], true) vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'which-key.nvim', 'nvim-lspconfig', 'kommentary'}, { event = "BufWinEnter *" }, _G.packer_plugins)]] vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'nvim-autopairs', 'nvim-compe', 'todo-comments.nvim'}, { event = "InsertEnter *" }, _G.packer_plugins)]] time([[Defining lazy-load event autocommands]], false) vim.cmd("augroup END") if should_profile then save_profiles() end end) if not no_errors then vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: ".v:exception | echom "Please check your config for correctness" | echohl None') end ```
akinsho commented 3 years ago

@MordechaiHadad looking at the output of your logs, it seems to be happening because of your internet connection, since git is having trouble pulling from GitHub. Is there anything unusual about your connection that might be the culprit? Are you able to clone these repositories manually, just OOI?

Also, have you changed anything in your packer configuration e.g. the url format?

MordechaiHadad commented 3 years ago

@MordechaiHadad looking at the output of your logs, it seems to be happening because of your internet connection, since git is having trouble pulling from GitHub. Is there anything unusual about your connection that might be the culprit? Are you able to clone these repositories manually, just OOI?

Also, have you changed anything in your packer configuration e.g. the url format?

  1. I'm not aware of any connection issues tbh everything just works fine and as i said i even used Plug and it worked fine
  2. Yes i am able to
  3. Here is my packer plugins file:
    
    local execute = vim.api.nvim_command
    local fn = vim.fn
    local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim'

if fn.empty(fn.glob(install_path)) > 0 then execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) execute 'packadd packer.nvim' end -- Bootstrap packer so it auto installs everywhere

vim.cmd [[packadd packer.nvim]]

vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes to plugins.lua local packer = require('packer')

packer.init({ git = { clone_timeout = 300, -- 5 mins }, profile = { enable = true, }, })

wbthomason commented 3 years ago

Is the set of plugins that fails consistent, or does it vary?

MordechaiHadad commented 3 years ago

Is the set of plugins that fails consistent, or does it vary?

from what i have seen so far... it varies like even in the screenshot you can see for example todo-comments fails but in the log it doesnt

wbthomason commented 3 years ago

So, you're having DNS errors (according to the log). I'm not sure why that wouldn't happen with vim-plug, though...

MordechaiHadad commented 3 years ago

So, you're having DNS errors (according to the log). I'm not sure why that wouldn't happen with vim-plug, though...

I'll try troubleshooting this

MordechaiHadad commented 3 years ago

I am clueless honestly

nanotee commented 3 years ago

I searched vim-plug's issue tracker for similar issues and found https://github.com/junegunn/vim-plug/issues/502

By default packer does not limit the number of concurrent processes running, could you try setting max_jobs to 16 (vim-plug's default limit) to see if it improves the situation?

MordechaiHadad commented 3 years ago

I searched vim-plug's issue tracker for similar issues and found junegunn/vim-plug#502

By default packer does not limit the number of concurrent processes running, could you try setting max_jobs to 16 (vim-plug's default limit) to see if it improves the situation?

kk give me a sec!

MordechaiHadad commented 3 years ago

I searched vim-plug's issue tracker for similar issues and found junegunn/vim-plug#502

By default packer does not limit the number of concurrent processes running, could you try setting max_jobs to 16 (vim-plug's default limit) to see if it improves the situation?

nothing now i just get those errors: stuff

wbthomason commented 3 years ago

Well, that looks horrifying.

I cannot reproduce this latest error either - on my end, setting max_jobs = 16 just results in no more than 16 jobs running simultaneously, as expected.

Just to confirm: You are on the latest packer? Not that this logic has been changed in a long while, but just to narrow down possible sources of error.

What OS are you on? Also, I don't see any plugins specified in your packer plugins file above - perhaps your post got cut off?

MordechaiHadad commented 3 years ago

Well, that looks horrifying.

I cannot reproduce this latest error either - on my end, setting max_jobs = 16 just results in no more than 16 jobs running simultaneously, as expected.

Just to confirm: You are on the latest packer? Not that this logic has been changed in a long while, but just to narrow down possible sources of error.

What OS are you on? Also, I don't see any plugins specified in your packer plugins file above - perhaps your post got cut off?

I think im using the latest packer

I'm using arch linux in wsl let me send the plugins file again:

file local execute = vim.api.nvim_command local fn = vim.fn local install_path = fn.stdpath('data')..'/site/pack/packer/opt/packer.nvim' if fn.empty(fn.glob(install_path)) > 0 then execute('!git clone https://github.com/wbthomason/packer.nvim '..install_path) execute 'packadd packer.nvim' end -- Bootstrap packer so it auto installs everywhere vim.cmd [[packadd packer.nvim]] vim.cmd 'autocmd BufWritePost plugins.lua PackerCompile' -- Auto compile when there are changes to plugins.lua local packer = require('packer') packer.init({ max_jobs = 16, git = { clone_timeout = 300, -- 5 mins }, profile = { enable = true, }, }) return require('packer').startup(function(use) -- Packer can manage itself as an optional plugin use {'wbthomason/packer.nvim', opt = true} -- Good stuff yo use 'voldikss/vim-floaterm' -- UI use 'romgrk/barbar.nvim' -- use 'akinsho/nvim-bufferline.lua' use 'kyazdani42/nvim-tree.lua' use {'kyazdani42/nvim-web-devicons', module = "nvim-web-devicons"} use 'mhinz/vim-startify' use { 'glepnir/galaxyline.nvim', branch = 'main'} --use 'glepnir/dashboard-nvim' -- Colorscheme & Colors use 'MordechaiHadad/nvim-papadark' -- My Custom Colorscheme use {'nvim-treesitter/nvim-treesitter', run = ':TSUpdate'} use 'nvim-treesitter/playground' use 'norcalli/nvim-colorizer.lua' use 'rktjmp/lush.nvim' -- Scheme creator -- Telescope use { 'nvim-telescope/telescope.nvim', requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}}, module = 'telescope', cmd = 'Telescope', config = require('plug-config.telescope')} -- Web Dev use 'windwp/nvim-ts-autotag' use {'turbio/bracey.vim', run = 'npm install --prefix server'} -- Autocomplete/LSP use {'hrsh7th/nvim-compe', config = require('plug-config.compe'), event = 'InsertEnter'} use {'norcalli/snippets.nvim', requires = 'hrsh7th/nvim-compe', after = 'nvim-compe'} use {'tzachar/compe-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-compe', after = 'snippets.nvim'} use {'neovim/nvim-lspconfig', event = 'BufWinEnter'} use {'kabouzeid/nvim-lspinstall', config = require('plug-config.lspinstall'), after = 'nvim-lspconfig'} use 'folke/lsp-trouble.nvim' use 'glepnir/lspsaga.nvim' use 'ray-x/lsp_signature.nvim' -- Git use { 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } } -- Editing Enhancments use {'b3nj5m1n/kommentary', event = 'BufWinEnter'} use {'windwp/nvim-autopairs', event = 'InsertEnter', config = require('plug-config.autopairs')} use {'folke/todo-comments.nvim', event = 'InsertEnter', requires = 'nvim-lua/plenary.nvim', config = require('plug-config.todo-comments')} -- General Plugins use 'ahmedkhalf/lsp-rooter.nvim' use {'folke/which-key.nvim', config = require('plug-config.which-key'), event = 'BufWinEnter'} -- use {'lukas-reineke/indent-blankline.nvim', branch = 'lua'} end)
wbthomason commented 3 years ago

Hmm. Your screenshot looks like curl or wget output - neither of which packer uses unless you're using the Luarocks functionality, which it appears you are not.

Sorry for all the questions, but: at which stage do you get these errors? Does that output just appear when you run :PackerUpdate, for instance, or is it only when running the post-update hook for some plugin?

bangedorrunt commented 3 years ago

I once suffered the same issue, it happened when I opend Neovim in a dir which is not a git. The bootstrap install failed all the time. If I open Neovim in a git folder, then bootstrap install without producing any error

MordechaiHadad commented 3 years ago

Hmm. Your screenshot looks like curl or wget output - neither of which packer uses unless you're using the Luarocks functionality, which it appears you are not.

Sorry for all the questions, but: at which stage do you get these errors? Does that output just appear when you run :PackerUpdate, for instance, or is it only when running the post-update hook for some plugin?

I don't use luarocks as idk what they be. I get these errors right after a couple of seconds when packer just trying to download the last few plugins that eventually it fails to.

MordechaiHadad commented 3 years ago

Got a bit of an update when using the 16 max_jobs thingy packer gets stuck at 8-9 plugins left consistently

MordechaiHadad commented 3 years ago

Hey i got an update for you devs mainly @wbthomason as I said i'm running neovim inside WSL so i tried my exact config in windows(my actual OS) and :PackerUpdate worked flawlessly, so i guess this is actually a wsl issue. Would like to know what you guys think.

wbthomason commented 3 years ago

Thank you for the update! I'm guessing this is indeed a WSL issue, but I unfortunately have no access to WSL for testing purposes. Out of curiosity, do you still see the buggy behavior when you limit max_jobs to 1?

cinghiopinghio commented 3 years ago

I have the same problem on a linux machine (Archlinux) with nvim 0.5.

wbthomason commented 3 years ago

@cinghiopinghio Interesting, thanks. Do you know if this started recently or has always been happening for you? I use/develop packer on Arch, so I may be more able to try to mimic aspects of your environment for testing.

cinghiopinghio commented 3 years ago

@wbthomason : yes, the issues started recently (maybe 2/3 weeks? not sure). It happens both with community/neovim and aur/neovim-git.

For packer I manually cloned in ~/.local/share/nvim/site/pack/packer/start and let it manage itself.

Maybe related: there is an issue recently on yay with broken connections to github: see https://github.com/Jguer/yay/issues/1405

MordechaiHadad commented 3 years ago

Thank you for the update! I'm guessing this is indeed a WSL issue, but I unfortunately have no access to WSL for testing purposes. Out of curiosity, do you still see the buggy behavior when you limit max_jobs to 1?

Hi when using max_jobs 1-6 it works perfectly

AungMyoKyaw commented 3 years ago

hello i am using max_jobs 1 it definitely works

edited: 4 is not bad

HrvojeFER commented 2 years ago

I had this same problem, so I put max_jobs to 4 and now it works! :) @wbthomason It seems that this fixes the issue for some of us, so can you add a line in the README so that other people don't have to find this issue to solve the problem?

jaydorsey commented 2 years ago

This looks maybe related to #202

Setting max_jobs to 50 worked for me (git clone timeout didn't).

Setting a default of 50 would, I think, be reasonable. The other thread shows people with success in the 50-60 range. The README update to customize would be nice too

peternrdstrm commented 2 years ago

I have the same issue, but started outside WSL, and it still doesn't work.

ryan-heslin commented 2 years ago

I recently ran into a similar issue when modifying an init.vim with about 50 plugins to use packer . At first, every download failed with a "could not resolve host: github.com" message. But I can confirm lowering max_jobs before bootstrapping fixed the problem:

packer = require("packer")
packer.init({
    max_jobs = 9
})

In my case I suspect my large (maybe excessive) number of plugins may be to blame.

bvdeenen commented 7 months ago

I ran into this when doing a fresh install of NvChad. A quick hacky fix was to add github.com's ip address to /etc/hosts. Install went great. The problem seems to have to do with dns caching (or the absence thereof).