Comments (2)
Thank you for pointing this out. I'm actually aware of issues like these, but I haven't opened an issue yet. The issues are due to bugs in the core algorithm and I've opened an issue here to keep track of these. In short, I'm not fixing these issues in the current algorithm version because introducing conflict resolution creates major changes. I'm very close to finishing this new version (but I've said that for like a month) and then I'll work on introducing it into the Notepad and writing unit tests. I haven't been able to maintain any of my projects much over the last few months because I've had a ton of schoolwork.
The issues that you encountered are not due to empty lines or cursor moving specifically, though. The algorithm just receives where text insertions/removals are and translates these into Logoot positions to be sent over Matrix. The algorithm keeps track of which positions in the text editor map onto which Logoot positions. The problem is that sometimes its record of where all the text is gets out of sync with what's actually on the screen. That's what's happening here :)
from matrix-notepad.
AFAIK, v0.2.2
fixes them all. The trick that I've found works well is to run pseudorandom "practical" tests on the algorithm while in development. That way, even if I miss something that code coverage doesn't catch before release, the practical tests will break the algorithm by brute force. Feel free to re-open if other algorithm issues are found.
from matrix-notepad.
Related Issues (20)
- Undo causes the editor to undo remote changes HOT 1
- Squashing HOT 2
- E2EE HOT 1
- Room list filtering HOT 2
- Chat & Comments
- Bridging -- Code review for Pijul Nest HOT 1
- Sign in dialog
- Show cursors and highlights
- Rich Text
- Make it a Matrix App HOT 1
- Send events less often HOT 1
- Make it a Matrix Widget
- Conflict resolution HOT 2
- Event backlog isn't filled after the client goes offline
- Add a debug panel HOT 1
- Properly use Matrix filters to search for room and event type HOT 1
- #matrix-collaboration:kb1rd.net doesn't exist HOT 2
- Document events can get buried HOT 1
- The bundle is HUGE 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 matrix-notepad.