Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of bounds #212

Closed
SlartThunder opened this issue Apr 6, 2024 · 1 comment
Closed

index out of bounds #212

SlartThunder opened this issue Apr 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SlartThunder
Copy link

Neovim version (nvim -v | head -n1)

NVIM v0.9.5

Operating system/version

macOS 14.4.1

How to reproduce the issue

I am using ufo plugin integrated as stated in https://github.com/kevinhwang91/nvim-ufo?tab=readme-ov-file#minimal-configuration Option2 using mason-lspconfig plugin.

When opening a file and trying to fold errors appear inline in buffer:

  1. When folding, in the folded lines a 0 is written rather than text
  2. When moving cursor into folded lines, a bunch of errors appear
    ufo: Error executing lua: ....../local/share/nvim/lazy/nvim-ufo/lua/ufo/model/buffer.lua:227: index out of bounds ....
    ufo: Error executing lua: ....../local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:141 in function < ... decorator.lua:138 …

Then closing the buffer bdand openning again, I can close the folds with no more problems and everything works as expected.

The thing is that is quite annoying as you can imagine…
No ufo.log in ~/.cache/nvim/

Expected behavior

Just fold the lines as usual.

Actual behavior

I am using ufo plugin integrated as stated in https://github.com/kevinhwang91/nvim-ufo?tab=readme-ov-file#minimal-configuration Option2 using mason-lspconfig plugin.

When opening a file and trying to fold errors appear inline in buffer:

  1. When folding, in the folded lines a 0 is written rather than text
  2. When moving cursor into folded lines, a bunch of errors appear
    ufo: Error executing lua: ....../local/share/nvim/lazy/nvim-ufo/lua/ufo/model/buffer.lua:227: index out of bounds ....
    ufo: Error executing lua: ....../local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:141 in function < ... decorator.lua:138 …

Then closing the buffer bdand openning again, I can close the folds with no more problems and everything works as expected.

The thing is that is quite annoying as you can imagine…
No ufo.log in ~/.cache/nvim/

@SlartThunder SlartThunder added the bug Something isn't working label Apr 6, 2024
@kevinhwang91
Copy link
Owner

#47 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants