Open MordechaiHadad opened 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 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?
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, }, })
Is the set of plugins that fails consistent, or does it vary?
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
So, you're having DNS errors (according to the log). I'm not sure why that wouldn't happen with vim-plug
, though...
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
I am clueless honestly
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?
I searched
vim-plug
's issue tracker for similar issues and found junegunn/vim-plug#502By default
packer
does not limit the number of concurrent processes running, could you try settingmax_jobs
to 16 (vim-plug
's default limit) to see if it improves the situation?
kk give me a sec!
I searched
vim-plug
's issue tracker for similar issues and found junegunn/vim-plug#502By default
packer
does not limit the number of concurrent processes running, could you try settingmax_jobs
to 16 (vim-plug
's default limit) to see if it improves the situation?
nothing now i just get those errors:
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?
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:
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 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
Hmm. Your screenshot looks like
curl
orwget
output - neither of whichpacker
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.
Got a bit of an update when using the 16 max_jobs thingy packer gets stuck at 8-9 plugins left consistently
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.
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?
I have the same problem on a linux machine (Archlinux) with nvim 0.5
.
max_jobs
up to 9 everything work flawlessly, problems seems to start at max_jobs=10
.@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.
@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
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
hello i am using max_jobs 1 it definitely works
edited: 4 is not bad
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?
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
I have the same issue, but started outside WSL, and it still doesn't work.
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.
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).
Just as title says I am able to update most plugins but not all of them.
nvim --version
: 0.5.0 Stable from the arch community repogit --version
: 2.32.0Steps to reproduce
Just use the Update command
Actual behaviour
Not updating everything:
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\214\0\0\0007\0\1\0007\0\3\0>\0\1\0027\0\4\0\b\0\1\0T\0\t4\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