InlineCoordsScan.scan can cause RangeError: Maximum call stack size exceeded #1699
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since @codemirror/view@6.41.0, it randomly causes an error when moving the cursor vertically with
j/kkeys with the vim extension.A workaround is to downgrade it to v6.40.0.
It looks like it's introduced by commit 49d72c4.
I think it's not a bug of
@replit/codemirror-vim, so I report it here.Stack trace
How to reproduce
view.posAtCoords({x, y}, false, 1)with aythat overlaps both neighborsI didn't manage to reproduce this, even when intentionally making elements overlap with a low line-height. Also, your reproduction instructions don't seem to use the vim extension, yet say to load it. It would be helpful if you could set up a small self-contained demo for this. And also let me know which browser(s) you can reproduce it in.
Now I can't even reproduce it on my Electron app 🤯
I use
electron@39.8.7.Sorry, I will try to investigate further when this happens again.
I went ahead and added a safeguard for this, though I didn't manage to actually reproduce the issue.
Wow thank you!
btw, a link in the email notification about the commit seems to be broken: https://code.haverbeke.berlin/codemirror/dev/commit/92bf92375cc1e174c2e5157ad5cd6f7bdb0296ca
It points to the
codemirror/devrepoThat appears to be a Forgejo bug. I've filed https://codeberg.org/forgejo/forgejo/issues/12367