nvim-tree / nvim-web-devicons

lua `fork` of vim-web-devicons for neovim
MIT License
2.02k stars 182 forks source link

Latest commit incompatible with tabline #172

Closed psicho2000 closed 1 year ago

psicho2000 commented 1 year ago

The currently latest commit 520776f leads to loading issues when used with tabline (tabline itself makes use of nvim-web-devicons):

E5108: Error executing lua ....vim/plugged/nvim-web-devicons/lua/nvim-web-devicons.lua:1682: attempt to call field 'nvim_create_augroup' (a nil value)
stack traceback:
        ....vim/plugged/nvim-web-devicons/lua/nvim-web-devicons.lua:1682: in function 'setup'
        ....vim/plugged/nvim-web-devicons/lua/nvim-web-devicons.lua:1690: in function 'get_icon'
        /home/user/.vim/plugged/tabline.nvim/lua/tabline.lua:308: in function 'get_props'
        /home/user/.vim/plugged/tabline.nvim/lua/tabline.lua:281: in function 'new'
        /home/user/.vim/plugged/tabline.nvim/lua/tabline.lua:591: in function 'tabline_buffers'
        /home/user/.vim/plugged/tabline.nvim/lua/tabline.lua:968: in function </home/user/.vim/plugged/tabline.nvim/lua/tabline.lua:96
3>

Reproduction

Workaround

a) use former commit 9061e2d

b) do not use tabline

T-727 commented 1 year ago

Could you provide the output of nvim --version please?

psicho2000 commented 1 year ago
$ nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"
T-727 commented 1 year ago

As suspected, you are using an outdated version of neovim. The latest stable release currently is 0.8 And the release which provides the api used in the commit is 0.7

psicho2000 commented 1 year ago

Thanks for the answer, that closes the issue.

alex-courtis commented 1 year ago

Thanks for looking into this @T-727