Giter VIP home page Giter VIP logo

Comments (7)

kevinhwang91 avatar kevinhwang91 commented on August 22, 2024

Have you searched your title from the repo issue?

from nvim-ufo.

BrunoKrugel avatar BrunoKrugel commented on August 22, 2024

Have you searched your title from the repo issue?

Sorry if missed some information, but yes.

  • #212 uses #47 as a fix.
  • #47 uses different events as a fix, but I already tried: BufRead, BufReadPre, BufReadPost, VeryLazy but the issue still persists.
  • #174 has the same fix from #47

output from UFO_LOG=debug:

[24-07-18 11:13:14] [INFO] manager.lua:202 : apply fold rowPairs: {}
[24-07-18 11:13:38] [DEBUG] init.lua:125 : attach bufnr: 634
[24-07-18 11:13:39] [DEBUG] init.lua:125 : attach bufnr: 634
[24-07-18 11:13:39] [INFO] init.lua:86 : providers: { <function 1> }
[24-07-18 11:13:39] [DEBUG] init.lua:53 : requestFoldingRange({ <function 1> }, 634) has elapsed: 0ms
[24-07-18 11:13:39] [INFO] init.lua:93 : selected provider: external
[24-07-18 11:15:05] [DEBUG] init.lua:125 : attach bufnr: 1
[24-07-18 11:15:06] [INFO] init.lua:86 : providers: { <function 1> }
[24-07-18 11:15:07] [DEBUG] init.lua:37 : using nvim as a lsp provider
[24-07-18 11:15:08] [DEBUG] init.lua:53 : requestFoldingRange({ <function 1> }, 1) has elapsed: 2020ms
[24-07-18 11:15:08] [INFO] init.lua:93 : selected provider: external
[24-07-18 11:15:08] [INFO] manager.lua:201 : apply fold ranges: { {
    endLine = 14,
    startLine = 5
  }, {
    endLine = 13,
    startLine = 6
  }, {
    endLine = 12,
    startLine = 7
  }, {
    endLine = 31,
    startLine = 17
  }, {
    endLine = 29,
    startLine = 19
  }, {
    endLine = 28,
    startLine = 21
  }, {
    endLine = 27,
    startLine = 22
  }, {
    endLine = 26,
    startLine = 23
  }, {
    endLine = 35,
    startLine = 34
  } }
[24-07-18 11:15:08] [INFO] manager.lua:202 : apply fold rowPairs: {}
[24-07-18 11:15:14] [DEBUG] init.lua:125 : attach bufnr: 2
[24-07-18 11:15:15] [INFO] init.lua:86 : providers: { "indent" }
[24-07-18 11:15:15] [DEBUG] init.lua:53 : requestFoldingRange({ "indent" }, 2) has elapsed: 3ms
[24-07-18 11:15:15] [INFO] init.lua:93 : selected provider: indent

from nvim-ufo.

kevinhwang91 avatar kevinhwang91 commented on August 22, 2024

Have you searched your title from the repo issue?

Sorry if missed some information, but yes.

output from UFO_LOG=debug:

[24-07-18 11:13:14] [INFO] manager.lua:202 : apply fold rowPairs: {}
[24-07-18 11:13:38] [DEBUG] init.lua:125 : attach bufnr: 634
[24-07-18 11:13:39] [DEBUG] init.lua:125 : attach bufnr: 634
[24-07-18 11:13:39] [INFO] init.lua:86 : providers: { <function 1> }
[24-07-18 11:13:39] [DEBUG] init.lua:53 : requestFoldingRange({ <function 1> }, 634) has elapsed: 0ms
[24-07-18 11:13:39] [INFO] init.lua:93 : selected provider: external
[24-07-18 11:15:05] [DEBUG] init.lua:125 : attach bufnr: 1
[24-07-18 11:15:06] [INFO] init.lua:86 : providers: { <function 1> }
[24-07-18 11:15:07] [DEBUG] init.lua:37 : using nvim as a lsp provider
[24-07-18 11:15:08] [DEBUG] init.lua:53 : requestFoldingRange({ <function 1> }, 1) has elapsed: 2020ms
[24-07-18 11:15:08] [INFO] init.lua:93 : selected provider: external
[24-07-18 11:15:08] [INFO] manager.lua:201 : apply fold ranges: { {
    endLine = 14,
    startLine = 5
  }, {
    endLine = 13,
    startLine = 6
  }, {
    endLine = 12,
    startLine = 7
  }, {
    endLine = 31,
    startLine = 17
  }, {
    endLine = 29,
    startLine = 19
  }, {
    endLine = 28,
    startLine = 21
  }, {
    endLine = 27,
    startLine = 22
  }, {
    endLine = 26,
    startLine = 23
  }, {
    endLine = 35,
    startLine = 34
  } }
[24-07-18 11:15:08] [INFO] manager.lua:202 : apply fold rowPairs: {}
[24-07-18 11:15:14] [DEBUG] init.lua:125 : attach bufnr: 2
[24-07-18 11:15:15] [INFO] init.lua:86 : providers: { "indent" }
[24-07-18 11:15:15] [DEBUG] init.lua:53 : requestFoldingRange({ "indent" }, 2) has elapsed: 3ms
[24-07-18 11:15:15] [INFO] init.lua:93 : selected provider: indent

Which buffer is index out of bounds from your log? If you load ufo without lazy event, is there an issue?

from nvim-ufo.

BrunoKrugel avatar BrunoKrugel commented on August 22, 2024

It seems that the issue doesn't happen if I use lazy=false, however, this issue started to happen in the last month because I have been using BufRead for almost a year without issues.

from nvim-ufo.

kevinhwang91 avatar kevinhwang91 commented on August 22, 2024

Which buffer is index out of bounds from your log? What's the content? Actually, I have no idea to fix.

from nvim-ufo.

BrunoKrugel avatar BrunoKrugel commented on August 22, 2024

In this example my buffer is the bufnr 2.

Untitled.mov

Log:

[24-07-18 12:15:09] [DEBUG] init.lua:125 : attach bufnr: 2
[24-07-18 12:15:09] [INFO] init.lua:86 : providers: { <function 1> }
[24-07-18 12:15:11] [DEBUG] init.lua:37 : using nvim as a lsp provider
[24-07-18 12:15:11] [DEBUG] init.lua:53 : requestFoldingRange({ <function 1> }, 2) has elapsed: 1995ms
[24-07-18 12:15:11] [INFO] init.lua:93 : selected provider: external
[24-07-18 12:15:11] [INFO] manager.lua:201 : apply fold ranges: { {
    endLine = 14,
    startLine = 5
  }, {
    endLine = 13,
    startLine = 6
  }, {
    endLine = 12,
    startLine = 7
  }, {
    endLine = 31,
    startLine = 17
  }, {
    endLine = 29,
    startLine = 19
  }, {
    endLine = 28,
    startLine = 21
  }, {
    endLine = 27,
    startLine = 22
  }, {
    endLine = 26,
    startLine = 23
  }, {
    endLine = 35,
    startLine = 34
  } }
[24-07-18 12:15:11] [INFO] manager.lua:202 : apply fold rowPairs: {}
[24-07-18 12:15:13] [DEBUG] init.lua:125 : attach bufnr: 3
[24-07-18 12:15:13] [INFO] init.lua:86 : providers: { "indent" }
[24-07-18 12:15:13] [DEBUG] init.lua:53 : requestFoldingRange({ "indent" }, 3) has elapsed: 0ms
[24-07-18 12:15:13] [INFO] init.lua:93 : selected provider: indent
[24-07-18 12:15:25] [DEBUG] init.lua:125 : attach bufnr: 245
[24-07-18 12:15:25] [INFO] init.lua:86 : providers: { "indent" }
[24-07-18 12:15:25] [DEBUG] init.lua:53 : requestFoldingRange({ "indent" }, 245) has elapsed: 0ms
[24-07-18 12:15:25] [INFO] init.lua:93 : selected provider: indent

from nvim-ufo.

kevinhwang91 avatar kevinhwang91 commented on August 22, 2024

Leave this issue here, no ability to solve it.

from nvim-ufo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.