Comments (7)
Have you searched your title from the repo issue?
from nvim-ufo.
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.
Have you searched your title from the repo issue?
Sorry if missed some information, but yes.
- index out of bounds #212 uses Index out of bounds #47 as a fix.
- Index out of bounds #47 uses different events as a fix, but I already tried:
BufRead
,BufReadPre
,BufReadPost
,VeryLazy
but the issue still persists.- Index out of bounds when closing some folds #174 has the same fix from Index out of bounds #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
Which buffer is index out of bounds from your log? If you load ufo without lazy event, is there an issue?
from nvim-ufo.
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.
Which buffer is index out of bounds from your log? What's the content? Actually, I have no idea to fix.
from nvim-ufo.
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.
Leave this issue here, no ability to solve it.
from nvim-ufo.
Related Issues (20)
- TreeSitter provider segfaults on NVIM v0.10.0 on WSL2 HOT 15
- Conflict between ufo and reactive.nvim causes weird behavior of nvim-cmp scroll_docs HOT 11
- cursor get stucked when type zm to fold all in a file which lines over 10k HOT 5
- Nothing displayed at the first line after folded HOT 8
- foldlevel-like functionality HOT 1
- Setting ufo's highlight groups to None doesn't remove folding hightlights HOT 2
- neovim crashes on using nvim-ufo HOT 3
- Error on clangd. HOT 7
- Cursor move to folded line then change SignColumn background HOT 3
- Is it possible to add folds for the sections and the subsections of rmarkdown/quarto documents? HOT 3
- zC function HOT 3
- Marker provider not works HOT 4
- attemp to call field 'nvim__redraw' HOT 10
- can't reproduce preview configuration HOT 1
- Error creating a split if fold exist HOT 3
- Auto add folds for blocks of comments HOT 1
- Can't seem to recursively close fold HOT 1
- nvim-ufo interferes with cursorline mapping HOT 3
- VsCode like foldlevel HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-ufo.