You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are multiples users editing in the same time, a cursor error appears sometimes (hard to reproduce).
When the error appear it becomes impossible for everybody to edit.
Nice find! Instead of a try / catch we probably want to handle the case a bit more cleanly (for example, handling "None" selection?). I hope @dmonad can weigh in, see numerique-gouv/impress#440 for more details
I don't like catching errors that I didn't expect. So I tried fixing the underlying cause. I could imagine that if there is no dom selection, there would be an exception because selection.anchorNode is null in sync-plugin.js#334. Now the code guards against this behavior.
I just published a new release that, hopefully, fixes this issue. Please reopen this ticket if you can produce a new stack trace.
Checklist
Describe the bug
When we are multiples users editing in the same time, a cursor error appears sometimes (hard to reproduce).
When the error appear it becomes impossible for everybody to edit.
Errors log
Potential solution
Here:
y-prosemirror/src/plugins/sync-plugin.js
Line 325 in df4257b
It will not solve the bug but it will not block the editing anymore.
Thank you !
The text was updated successfully, but these errors were encountered: