lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.07k stars 102 forks source link

Error on all files after upgrading to v3.5.0 #813

Closed smanos closed 8 months ago

smanos commented 8 months ago

Problem

Hi! I recently did a lazy-upgrade. After which I get the following error when opening vim:

Error executing vim.schedule lua callback: ...l/share/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:478: invalid key: virt_text_repeat_linebreak
stack traceback:
        [C]: in function 'nvim_buf_set_extmark'
        ...l/share/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:478: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

My configuration looks like this (and previously worked perfectly:

  {
  'lukas-reineke/indent-blankline.nvim',
  main = 'ibl',
  opts = {}
  }

When I open a specific file, I get:

[Neo-tree ERROR] Error opening file: vim/_editor.lua:0: nvim_exec2()..BufReadPost Autocommands for "*": Vim(append):Error executing lua callback: .../Applications/nvim-macos/share/nvim/runtime/filetype.lua:30: Er
ror executing lua: .../Applications/nvim-macos/share/nvim/runtime/filetype.lua:31: nvim_exec2()..BufReadPost Autocommands for "*"..FileType Autocommands for "*": Vim(append):Error executing lua callback: ...l/sha
re/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:478: invalid key: virt_text_repeat_linebreak
stack traceback:
^I[C]: in function 'nvim_buf_set_extmark'
^I...l/share/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:478: in function 'refresh'
^I...l/share/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:128: in function 'debounced_refresh'
^I...l/share/nvim/lazy/indent-blankline.nvim/lua/ibl/init.lua:144: in function 'debounced_refresh'
^I...are/nvim/lazy/indent-blankline.nvim/lua/ibl/autocmds.lua:27: in function <...are/nvim/lazy/indent-blankline.nvim/lua/ibl/autocmds.lua:26>
^I[C]: in function 'nvim_cmd'
^I.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:31: in function <.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:30>
^I[C]: in function 'nvim_buf_call'
^I.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:30: in function <.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:10>
^I[C]: in function 'nvim_exec2'
^Ivim/_editor.lua: in function <vim/_editor.lua:0>
^I[C]: in function 'pcall'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:837: in function 'open_file'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:727: in function 'open'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:751: in function 'open_with_cmd'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:850: in function 'open_with_window_picker'
^I...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:203: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:202>
stack traceback:
^I[C]: in function 'nvim_cmd'
^I.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:31: in function <.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:30>
^I[C]: in function 'nvim_buf_call'
^I.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:30: in function <.../Applications/nvim-macos/share/nvim/runtime/filetype.lua:10>
^I[C]: in function 'nvim_exec2'
^Ivim/_editor.lua: in function <vim/_editor.lua:0>
^I[C]: in function 'pcall'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:837: in function 'open_file'
^I...y/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:727: in function 'open'

Steps to reproduce

  1. Run nvim (initial error is shown)
  2. Open a file (detailed error is shown)

Expected behavior

Prior to the upgrade, opening vim and a file would produce no errors, and the indent line would be visible

Neovim version (nvim -v)

NVIM v0.10.0-dev-1927+g089b93435

WilliamWelsh commented 8 months ago

Same issue here, had to completely disable the plugin. It was on every keystroke

lukas-reineke commented 8 months ago

Please update your Neovim version. Only stable and latest nightly is supported, you are using an old nightly version.

WilliamWelsh commented 8 months ago

I was on NVIM v0.10.0-dev-1703+gb6e339eb9-Homebrew. I updated to NVIM v0.10.0-dev-1988+g1ef60ea65-Homebrew and the issue is gone

Only stable and latest nightly is supported

Good to know, thanks

smanos commented 8 months ago

THANK YOU!