kristijanhusak / vim-packager

Vim plugin manager that utilizes "jobs" and "pack" features.
MIT License
245 stars 9 forks source link

E117 on `:PackagerUpdate` #26

Closed n0542344 closed 4 years ago

n0542344 commented 4 years ago

Thanks for the awesome vim-packager! I switched recently from minpac (https://github.com/k-takata/minpac) to packager and am enjoying your plugin manager very much!

Nevertheless I'm having an issue: while running :PackagerUpdate I'm getting the following error:

Error detected while processing function <lambda>5[1]..35:
line   18:
E117: Unknown function: setbufline

But the updating process seems to work (at least the most recent repository versions are pulled). The other commands (:PackagerStatus, :PackagerInstall) seem to work fine.

The relevant section from my '~/.config/nvim/init.vim' are:


function! PackagerInit() abort
  packadd vim-packager
  call packager#init()
  call packager#add('kristijanhusak/vim-packager', { 'type': 'opt' })

  call packager#add('https://github.com/tpope/vim-vinegar')

  " ...

endfunction

command!        PackagerInstall call    PackagerInit() | call packager#install()
command! -bang  PackagerUpdate  call    PackagerInit() | call packager#update({ 'force_hooks': '<bang>' })
command!        PackagerClean   call    PackagerInit() | call packager#clean()
command!        PackagerStatus  call    PackagerInit() | call packager#status()

I'm using nvim v0.3.4 on a Debian-based OS (PureOS 9.0 amber).

Any ideas?

kristijanhusak commented 4 years ago

Recently I did some changes and introduced usage of some internal functions that are probably missing on older versions. Why are you using that old version of nvim?

n0542344 commented 4 years ago

Wow, that was a fast reply - thanks for that!

The current version of PureOS is based upon Debian Stable (currently: Debian 10 'Buster' ) and there the provided version of neovim is 0.3.4-3 (https://packages.debian.org/search?keywords=neovim).

Is there a way to get a version of packager which can be used for a nvim-version included in Debian Stable? Should I clone a specific branch or tag of your repo?

But just for protocol: I'm using vim-packager for the first time, so I cannot say that this is due to a change that happened recently.

kristijanhusak commented 4 years ago

I pushed a fix. Pull latest version of vim-packager and give it a try.

n0542344 commented 4 years ago

Awesome, thanks a lot - it works flawlessly!