lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
3.98k stars 99 forks source link

Use of `vim.iter` breaks support for pre v0.10 nvim releases. #878

Closed UtkarshVerma closed 2 months ago

UtkarshVerma commented 2 months ago

Problem

I updated this plugin today and noticed how it started crashing. A look at the logs revealed the following line to be the culprit.

https://github.com/lukas-reineke/indent-blankline.nvim/blob/master/lua/ibl/utils.lua#L428

Steps to reproduce

nvim --clean -u min-init.lua :edit foo

Expected behavior

Plugin runs without crashing.

Neovim version (nvim -v)

0.9.5

zgastley commented 2 months ago

+1 to this. Having same exact issue.

JustSoursop commented 2 months ago

I also have same issue,


Failed to run `config` for indent-blankline.nvim

.../share/nvim/lazy/indent-blankline.nvim/lua/ibl/utils.lua:428: attempt to call field 'iter' (a nil value)

# stacktrace:
  - /indent-blankline.nvim/lua/ibl/utils.lua:428 _in_ **tbl_join**
  - /indent-blankline.nvim/lua/ibl/config.lua:253 _in_ **merge_configs**
  - /indent-blankline.nvim/lua/ibl/config.lua:276 _in_ **set_config**
  - /indent-blankline.nvim/lua/ibl/init.lua:57 _in_ **setup**
  - vim/_editor.lua:0
  - /neo-tree.nvim/lua/neo-tree/utils/init.lua:732 _in_ **open_file**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:729 _in_ **open**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:751 _in_ **open_with_cmd**
  - /neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:760 _in_ **open**
  - /neo-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184

image

lukas-reineke commented 2 months ago

Duplicate of #869