packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

Question

Open notwidow opened this issue 3 years ago • 8 comments

Hi, I have 15 plugins installed and listed by packer also. But when doing packersync or packer update it sometimes shows 17 plugins and sometimes 16 while plugins specified are 15. why is this so?

notwidow avatar Oct 06 '22 07:10 notwidow

Please provide steps to reproduce this behavior including a minimal Neovim configuration.

nat-418 avatar Oct 15 '22 22:10 nat-418

Please provide steps to reproduce this behavior including a minimal Neovim configuration.

well, first count how many plugins you used and specified in packer.nvim and then run a packersync.. while syncing look at how many plugins it is downloading...it must be 1 or 2 higher than the specified plugins...so why is it showing 1 or 2 more...

notwidow avatar Oct 16 '22 13:10 notwidow

I tested with an empty init.lua except for this packer code:

return require('packer').startup(function(use)
  use('https://github.com/wbthomason/packer.nvim')
end)

snyc says 3 plugins, status says 1

nat-418 avatar Oct 16 '22 14:10 nat-418

Hey when will it be fixed?

notwidow avatar Dec 02 '22 05:12 notwidow

whenever they accept my PR. I don't know how actively packer is maintained

nat-418 avatar Dec 04 '22 16:12 nat-418

whenever they accept my PR. I don't know how actively packer is maintained

yeah. i see my fav plugin manager's developers are not that active...

notwidow avatar Dec 05 '22 00:12 notwidow

Yes, my time is very limited. Most work right now is focused on a rewrite of packer to fix some long-standing issues and make maintenance easier, which will mean that I can get to more issues, etc. I'm trying to make incremental quality-of-life fixes where I can in the meanwhile. Sorry that this issue has taken so long.

@nat-418: Thanks for the PR! I've played around with it, and I think that changing the constant offset isn't quite right - the extra "plugins" are displayed because we're actually printing the length of the task list, which isn't 1-to-1 with the number of plugins. I think the better fix might be to change the headline text to be "completing N / M {task type: install, update, sync} tasks". Would that be a satisfactory fix?

wbthomason avatar Dec 05 '22 01:12 wbthomason

(also @notwidow for your opinion on my proposed fix)

wbthomason avatar Dec 05 '22 01:12 wbthomason

Thanks for making Packer and for the explanation @wbthomason. Your solution sounds good to me. For the record, my comment about maintenance activity above was simply an "I don't know / not up to me" statement of fact, not a judgement about you in any way.

nat-418 avatar Jan 02 '23 14:01 nat-418

Yup, understood! Sorry if I came across as angry. Check #1190 out if you get a chance; I'll merge shortly if there are no complaints, as it's a pretty trivial change.

wbthomason avatar Jan 11 '23 01:01 wbthomason