packer.nvim
packer.nvim copied to clipboard
`nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'` doesn't work with max_jobs
nvim --version: v0.6.0git --version: 2.34.1- Operating system/version: Manjaro
- Terminal name/version: Kitty 0.23.1
Steps to reproduce
- Add
config = { max_jobs=4, },to thepacker.setupcall. The number of jobs should be less than the number of plugins configured. If max_jobs is greater, I can't reproduce this issue. - Run
nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
Actual behaviour
The sync run hangs and doesn't finish.
Expected behaviour
Packer syncs and quits.
packer files
Plugin specification file(s)
Just adding the max_jobs setting should be enough to reproduce.
packer log file
It's empty.
packer compiled file
Just adding the max_jobs setting should be enough to reproduce.
This happens for me even if I comment out my max_jobs configuration. With PackerCompile as well, not just PackerSync.
can confirm i had the same issue with max jobs removing it made it work for me. 3d847fb
also you can set ulimit -n 4096 in your shell cfg to make packer work with a lot of plugins if it gets stuck while PackerSync PackerInstall i'm saying this because im seeing a lot of people setting max_jobs because of that
I'm experiencing this issue, but in my case it is happening the opposite. When I reached the number of 80 plugins packer got stuck. I am using lunarvim, and this was the original packer config:
{
package_root = opts.package_root or join_paths(vim.fn.stdpath "data", "site", "pack"),
compile_path = compile_path,
snapshot_path = snapshot_path,
log = { level = "warn" },
git = { clone_timeout = 300 },
display = {
open_fn = function()
return require("packer.util").float { border = "rounded" }
end,
},
}
Then I just added max_jobs = 50, and now I can install my 114 plugins without problem.
What is the default max_jobs value? What happens when it is not set?
I'm experiencing this issue, but in my case it is happening the opposite. When I reached the number of 80 plugins packer got stuck. I am using lunarvim, and this was the original packer config:
{ package_root = opts.package_root or join_paths(vim.fn.stdpath "data", "site", "pack"), compile_path = compile_path, snapshot_path = snapshot_path, log = { level = "warn" }, git = { clone_timeout = 300 }, display = { open_fn = function() return require("packer.util").float { border = "rounded" } end, }, }Then I just added
max_jobs = 50,and now I can install my 114 plugins without problem. What is the default max_jobs value? What happens when it is not set?
it does what it says if you set it it'll limit clones/pulls by x amount of jobs when its not set its unlimited
That's very weird. Why would limiting the number of concurrent processes help with my freezing problem?
On Wed, Jul 6, 2022 at 5:03 PM Daniel Nehrig @.***> wrote:
I'm experiencing this issue, but in my case it is happening the opposite. When I reached the number of 80 plugins packer got stuck. I am using lunarvim, and this was the original packer config:
{ package_root = opts.package_root or join_paths(vim.fn.stdpath "data", "site", "pack"), compile_path = compile_path, snapshot_path = snapshot_path, log = { level = "warn" }, git = { clone_timeout = 300 }, display = { open_fn = function() return require("packer.util").float { border = "rounded" } end, }, }
Then I just added max_jobs = 50, and now I can install my 114 plugins without problem. What is the default max_jobs value? What happens when it is not set?
it does what it says if you set it it'll limit clones/pulls by x amount of jobs when its not set its unlimited
— Reply to this email directly, view it on GitHub https://github.com/wbthomason/packer.nvim/issues/751#issuecomment-1176334917, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARKJWOJ7D4ANDKHGE5ML2LVSWN53ANCNFSM5K6RXIQA . You are receiving this because you commented.Message ID: @.***>
--
https://danielorodriguez.com
because ulimit
This happens for me even if I comment out my
max_jobsconfiguration. WithPackerCompileas well, not justPackerSync.
I have the same issue, remove the max_jobs makes headless mode works. But unfortunately, I have to set max_jobs = 10 makes packersync in TUI mode works. This is a contradiction.