Giter Site home page Giter Site logo

When starting to type shortly after synchronisation has started, cursor sometimes jumps to beginning of note as sync finishes about joplin HOT 3 CLOSED

jmbreuer avatar jmbreuer commented on June 19, 2024
When starting to type shortly after synchronisation has started, cursor sometimes jumps to beginning of note as sync finishes

from joplin.

Comments (3)

jmbreuer avatar jmbreuer commented on June 19, 2024

Ah, I caught something in the log:

2024-03-22 10:26:43: Synchronizer: "Sync: updateRemote: local has changes: Note: (Local 6bb447d831004e2695a24bfe286ca2c0): (Remote 6bb447d831004e2695a24bfe286ca2c0.md)"
2024-03-22 10:26:43: FileApi: "put 6bb447d831004e2695a24bfe286ca2c0.md", "null"
2024-03-22 10:26:43: Synchronizer: "TaskQueue.stop: syncDownload: waiting for tasks to complete: 0"
2024-03-22 10:26:43: Synchronizer: "TaskQueue.stop: syncDownload: Done, waited for 0"
2024-03-22 10:26:43: FileApi: "delete locks/1_1_21e0babef7f2402fa0480a3ce8ba9bd1.json"
2024-03-22 10:26:43: Synchronizer: "Sync: finished: Synchronisation finished [1711099601932]"
2024-03-22 10:26:43: Synchronizer: "Operations completed: "
2024-03-22 10:26:43: Synchronizer: "updateRemote: 1"
2024-03-22 10:26:43: Synchronizer: "Total folders: 15"
2024-03-22 10:26:43: Synchronizer: "Total notes: 22"
2024-03-22 10:26:43: Synchronizer: "Total resources: 6"
2024-03-22 10:26:43: checkDisabledSyncItemsNotification: "No errors: Hiding notification"
2024-03-22 10:26:43: "Setting up recurrent sync with interval 300"
2024-03-22 10:26:43: "Sync has finished and note has never been changed - reloading it"
2024-03-22 10:26:44: "Saving note...", "{"id":"6bb447d831004e2695a24bfe286ca2c0","parent_id":"dd8e27ffa65f46af879915e691336dbe","title":"XXX","body":"YYY"}"
2024-03-22 10:26:44: "Scheduling sync operation...", "15000"
2024-03-22 10:26:44: "Saving note...", "{"id":"6bb447d831004e2695a24bfe286ca2c0","parent_id":"dd8e27ffa65f46af879915e691336dbe","title":"XXX","body":"YYY"}"
2024-03-22 10:26:44: "Scheduling sync operation...", "15000"
2024-03-22 10:26:44: "CommandService::execute:", "editor.undo", "[]"
2024-03-22 10:26:44: "CodeMirror: execCommand", "{"name":"editor.undo"}"
2024-03-22 10:26:45: "Saving note...", "{"id":"6bb447d831004e2695a24bfe286ca2c0","parent_id":"dd8e27ffa65f46af879915e691336dbe","title":"XXX","body":"YYY"}"
2024-03-22 10:26:45: "Scheduling sync operation...", "15000"

To me, this looks like the smoking gun:

2024-03-22 10:26:43: "Sync has finished and note has never been changed - reloading it"

This seems to be logged exactly when I experience the cursor jumping to the top when sync finishes.
It is not logged when there's concurrent sync and editing that behaves as expected, i.e. cursor remains at its document position.

I guess there's a (possibly concurrency/multi-threading) issue that causes a false positive for "note has never been changed", when, in fact, it has been / is being edited locally.

from joplin.

github-actions avatar github-actions commented on June 19, 2024

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? If you require support or are requesting an enhancement or feature then please create a topic on the Joplin forum. This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

from joplin.

github-actions avatar github-actions commented on June 19, 2024

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, feel free to create a new issue with up-to-date information.

from joplin.

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.