Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor jumps to top of editor when typing #8960

Open
211217613 opened this issue Sep 25, 2023 · 25 comments · Fixed by #10456 or #10781
Open

Cursor jumps to top of editor when typing #8960

211217613 opened this issue Sep 25, 2023 · 25 comments · Fixed by #10456 or #10781
Labels
backlog We'll get to it... eventually... bug It's a bug desktop All desktop platforms editor

Comments

@211217613
Copy link

211217613 commented Sep 25, 2023

This has been present for a lot of versions.

Whenever I'm typing text into the text window the cursor will automatically jump back to the beginning of the doc. Right now it happened while I was adding bullet points. I'll type text then the cursor automatically jumps to the beginning of the code editor window. I then manually move the cursor back to where I was typing and the bug repeats

Environment

Joplin version: Joplin 2.12.18
Platform: MacOS (prod, darwin)
OS specifics:

Steps to reproduce

  1. Type
  2. Continue typing
  3. cursor jumps to row 1 col 1 of the editor. Move the cursor down to where you want to add text
  4. type
  5. continue typing
  6. cursor jumps up to row 1 and col 1 again

Describe what you expected to happen

Logfile

log.txt

@211217613 211217613 added the bug It's a bug label Sep 25, 2023
@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented Sep 27, 2023

I've also been experiencing this, but very rarely...

One possible cause is that remote changes to a note are fetched and decrypted. Currently, NoteEditor.tsx unloads the editor (then reloads it) while the current note is being decrypted.

Edit: After looking further at NoteEditor.tsx, I'm not sure that the above is true.

Does this issue happen when:

  • encryption is enabled,
  • changes are being synced, and
  • both in the rich text and markdown editors?

If so, it's possibly caused by the above issue.

@211217613
Copy link
Author

I do have encryption enabled, not sure if changes are being synced, i'm almost always in markdown mode.

@jeff-hughes
Copy link

I've noticed this issue as well; for me it seems to only happen when changes are being synced. I will be in the middle of typing something, the sync process starts, and at the end the cursor jumps to the top of the note -- and often the last word or two I typed is gone.

I don't have encryption turned on, and I am always using markdown mode.

Copy link
Contributor

github-actions bot commented Nov 4, 2023

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.

@github-actions github-actions bot added the stale An issue that hasn't been active for a while... label Nov 4, 2023
@211217613
Copy link
Author

This issue hasn't been addressed. Let's keep it open for now.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Nov 7, 2023
Copy link
Contributor

github-actions bot commented Dec 7, 2023

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.

@github-actions github-actions bot added the stale An issue that hasn't been active for a while... label Dec 7, 2023
@211217613
Copy link
Author

This is still an issue

@personalizedrefrigerator
Copy link
Collaborator

In some ways, the desktop app's new beta editor is structured differently from the main editor. As such, the bug might not be present in the new beta editor.

@github-actions github-actions bot removed the stale An issue that hasn't been active for a while... label Dec 8, 2023
@211217613
Copy link
Author

I updated Joplin and enabled the beta editor in settings. I'll update if I see this issue again.

Copy link
Contributor

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.

@github-actions github-actions bot added the stale An issue that hasn't been active for a while... label Jan 14, 2024
@211217613
Copy link
Author

I'm still experiencing this issue on desktop application.

Joplin 2.13.9 (prod, darwin)

Client ID: 445b194659024350aa9d3a207596bb49
Sync Version: 3
Profile Version: 44
Keychain Supported: No

Revision: 1bbec44

Templates: 2.4.0

@personalizedrefrigerator personalizedrefrigerator added desktop All desktop platforms editor and removed stale An issue that hasn't been active for a while... labels Jan 14, 2024
@personalizedrefrigerator personalizedrefrigerator added the high High priority issues label Feb 3, 2024
@laurent22
Copy link
Owner

laurent22 commented Mar 7, 2024

In some ways, the desktop app's new beta editor is structured differently from the main editor. As such, the bug might not be present in the new beta editor.

I think it still happens in the beta editor, but I'll confirm next time it happens.

@nonobio
Copy link

nonobio commented Apr 7, 2024

Hi,

Yesterday, while I was testing Joplin for the first time after importing my Evernote data, I noticed the problem in the rich editor.

I then installed a plugin (note tabs) and restarted Joplin, and the problem was no longer present. I'm also trying more and more to learn how to use the Markdown editor...

Here is my info if it helps:

Joplin 2.14.20 (prod, win32)

ID client : 773c93d7dee04e1289cb896f235df6a3
Version de Synchro : 3
Version du profil : 46
Trousseau supporté : Oui

Révision : cfd98e3

Backup: 1.4.0
Joplin Evernote Links Replacer: 1.0.0 (installed later)
Note Tabs: 1.4.0

@nonobio
Copy link

nonobio commented May 16, 2024

Hi,

I still notice the problem from time to time, I have version 3.0.6. I use the Markdown editor exclusively (not beta).
I will try to see if there are any conditions under which the problem occurs.

Joplin 3.0.6 (prod, win32)

ID client : 773c93d7dee04e1289cb896f235df6a3
Version de Synchro : 3
Version du profil : 47
Trousseau supporté : Oui

Révision : 18b9f5c

Backup: 1.4.1
Bidirectional Links: 0.1.2
Favorites: 1.3.2
Menu items, Shortcuts, Toolbar icons: 1.1.0
Note list and sidebar toggle buttons: 1.0.3
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.13
Quick Links: 1.3.2
Rich Markdown: 0.15.0
Search & Replace: 2.2.0

@BigErn77
Copy link

I also experience this exact problem. For me it happens extremely frequently, however it is tricky to reproduce. It makes it hard to use the program at all.

@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented May 21, 2024

I've created a branch with a shorter auto-sync interval and additional logging. I've managed to reproduce the issue locally on this branch. I've attached the logs:

Logs
14:31:53: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:53: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: "Another\n\nThis is a test of a note. Let's see if th… the additional logging will cause this to fail. "}
main-html.js:54 14:31:53: Scheduling sync operation... 700
main-html.js:54 Got ipc-message: noteRenderComplete undefined
main-html.js:54 14:31:54: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:54: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: "Another\n\nThis is a test of a note. Let's see if th…the additional logging will cause this to fail. T"}
main-html.js:54 14:31:54: Preparing scheduled sync
main-html.js:54 14:31:54: Starting scheduled sync
main-html.js:54 14:31:54: Synchronizer: Sync: starting: Starting synchronisation to target 9... supportsAccurateTimestamp = true; supportsMultiPut = true} [1716327114685]
main-html.js:54 14:31:54: Synchronizer: Indexing resources...
main-html.js:54 14:31:54: ResourceService::indexNoteResources: Start
main-html.js:54 14:31:54: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:54: models/Setting: Saving settings...
main-html.js:54 14:31:54: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:55: models/Setting: Settings have been saved.
main-html.js:54 14:31:55: ResourceService::indexNoteResources: Completed
main-html.js:54 14:31:55: models/Folder: updateFolderShareIds: {shareUpdateCount: 0, unshareUpdateCount: 0}
main-html.js:54 14:31:55: models/Folder: updateNoteShareIds: notes to update: 0
main-html.js:54 14:31:55: FileApi: get info.json
main-html.js:54 14:31:55: Synchronizer: Sync target remote info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(2), ppk: {…}, …}
main-html.js:54 14:31:55: Synchronizer: Sync target is already setup - checking it...
main-html.js:54 14:31:55: Synchronizer: Sync target local info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(2), ppk: {…}, …}
main-html.js:54 14:31:55: FileApi: stat 521c799d33034c70a5f5a17fe0cb98ad.md
main-html.js:54 14:31:55: FileApi: get 521c799d33034c70a5f5a17fe0cb98ad.md
main-html.js:54 14:31:55: Synchronizer: Sync: updateRemote: local has changes: Note: (Local 521c799d33034c70a5f5a17fe0cb98ad): (Remote 521c799d33034c70a5f5a17fe0cb98ad.md)
main-html.js:54 14:31:55: FileApi: put 521c799d33034c70a5f5a17fe0cb98ad.md null
main-html.js:54 14:31:55: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:55: Synchronizer: TaskQueue.stop: syncDownload: waiting for tasks to complete: 0
main-html.js:54 14:31:55: Synchronizer: TaskQueue.stop: syncDownload: Done, waited for 0
main-html.js:54 14:31:55: ShareService: Refresh share invitations: {id: '1C82hOBRBW7V18hFXHDQGm', status: 1, master_key: {…}, share: {…}}
main-html.js:54 14:31:55: ShareService: Refreshed shares: {items: Array(1), has_more: false}
main-html.js:54 14:31:55: models/Folder: updateNoLongerSharedItems: {folders: 0, notes: 0, resources: 0}
main-html.js:54 14:31:55: Synchronizer: Sync: finished: Synchronisation finished [1716327114685]
main-html.js:54 14:31:55: Synchronizer: Operations completed: 
main-html.js:54 14:31:55: Synchronizer: updateRemote: 1
main-html.js:54 14:31:55: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: "Another\n\nThis is a test of a note. Let's see if th… additional logging will cause this to fail. Test"}
main-html.js:54 14:31:55: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:55: Synchronizer: Total folders: 20
main-html.js:54 14:31:55: Synchronizer: Total notes: 70
main-html.js:54 14:31:55: Synchronizer: Total resources: 103
main-html.js:54 14:31:55: checkDisabledSyncItemsNotification: No errors: Hiding notification
main-html.js:54 14:31:55: useFormNote: Sync or decryption finished with an unchanged formNote.
main-html.js:54 14:31:55: useFormNote: Form note refresh has been scheduled.
main-html.js:54 14:31:55: Setting up recurrent sync with interval 5
main-html.js:54 14:31:55: Recurrent sync operation DISABLED!!!
main-html.js:54 14:31:55: useFormNote: Sync has finished and note has never been changed - reloading it
main-html.js:54 14:31:55: useFormNote: Initializing note state
main-html.js:54 14:31:55: useFormNote: Resource info and form note set.
main-html.js:54 14:31:55: useFormNote: clearing scheduled note refresh. Cancelled:  false
main-html.js:54 14:31:55: CodeMirror/v5/Editor: Editor content changed externally. Was previously non-empty
main-html.js:54 14:31:55: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: "Another\n\nThis is a test of a note. Let's see if th…additional logging will cause this to fail. Test."}
main-html.js:54 14:31:55: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 14:31:55: Scheduling sync operation... 700
main-html.js:54 14:31:56: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: " Another\n\nThis is a test of a note. Let's see if t… additional logging will cause this to fail. Test"}
main-html.js:54 14:31:56: Scheduling sync operation... 700
main-html.js:54 Got ipc-message: noteRenderComplete undefined
main-html.js:54 14:31:56: Preparing scheduled sync
main-html.js:54 14:31:56: Starting scheduled sync
main-html.js:54 14:31:56: Synchronizer: Sync: starting: Starting synchronisation to target 9... supportsAccurateTimestamp = true; supportsMultiPut = true} [1716327116975]
main-html.js:54 14:31:56: Synchronizer: Indexing resources...
main-html.js:54 14:31:56: ResourceService::indexNoteResources: Start

From the above logs, I notice that:

  1. The form note is marked as changed
    main-html.js:54 14:31:55: NoteEditor: setFormNote and scheduled save. Changed: true
    
  2. Sync finishes and, within useFormNote, the note is still marked as unchanged:
    main-html.js:54 14:31:55: useFormNote: Sync or decryption finished with an unchanged formNote.
    
  3. A note refresh is scheduled:
    main-html.js:54 14:31:55: useFormNote: Form note refresh has been scheduled.
    
  4. The refresh happens:
    main-html.js:54 14:31:55: useFormNote: Sync has finished and note has never been changed - reloading it
    main-html.js:54 14:31:55: useFormNote: Initializing note state
    main-html.js:54 14:31:55: useFormNote: Resource info and form note set.
    main-html.js:54 14:31:55: useFormNote: clearing scheduled note refresh. Cancelled:  false
    
  5. The editor's value prop changes and doesn't match the current content of the editor:
    main-html.js:54 14:31:55: CodeMirror/v5/Editor: Editor content changed externally. Was previously non-empty
    

Edit: I've also gotten it to fail with a somewhat different code path, after adding more logging and checks:

Log 1
15:16:43: useFormNote: Sync has finished and note has never been changed - reloading it
main-html.js:54 15:16:43: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: `Another\n\nThis is a test of a note. Let's see if th… from the "editor content changed externally"... `}
main-html.js:54 15:16:43: useFormNote: Initializing note state
main-html.js:54 15:16:43: Scheduling sync operation... 700
main-html.js:54 15:16:44: useFormNote: Resource info and form note set.
main-html.js:54 15:16:44: useFormNote: clearing scheduled note refresh. Cancelled:  false
main-html.js:54 15:16:44: CodeMirror/v5/Editor: Editor content changed externally. Was previously non-empty
main-html.js:54 15:16:44: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 15:16:44: useScheduleSaveCallbacks: Saving note... {id: '521c799d33034c70a5f5a17fe0cb98ad', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another', body: `IAnother\n\nThis is a test of a note. Let's see if t…g from the "editor content changed externally"...`}
main-html.js:54 15:16:44: Scheduling sync operation... 700
main-html.js:54 Got ipc-message: noteRenderComplete undefined
main-html.js:54 15:16:45: NoteEditor: setFormNote and scheduled save. Changed: true

Above, changed is set to true just after the note is refreshed (Edit: The setFormNote and scheduled save line is likely from a change made just after the cursor jumped to the top of he note).

Additionally,

Log 2
15:36:34: CodeMirror/v5/Editor: Calling props.onChange -- changed from non-setValue location
main-html.js:54 15:36:34: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 15:36:34: Synchronizer: Processing a path that has already been done: 4480d14c3ebe44b08f4762f1340aed15.md. sync_time was not updated? Remote item has an updated_time in the future?
main-html.js:54 15:36:34: ShareService: Refresh share invitations: {id: '1C82hOBRBW7V18hFXHDQGm', status: 1, master_key: {…}, share: {…}}
main-html.js:54 15:36:34: ShareService: Refreshed shares: {items: Array(1), has_more: false}
main-html.js:54 15:36:34: useScheduleSaveCallbacks: Saving note... {id: '4480d14c3ebe44b08f4762f1340aed15', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another - Copy', body: "EAnother\n\nThis is a test of a note. Let's see if t… k\n- [ ] l\n- [ ] m\n- [ ] m\n- [ ] m\n- [ ] m\n- [ ] "}
main-html.js:54 15:36:34: models/Folder: updateNoLongerSharedItems: {folders: 0, notes: 0, resources: 0}
main-html.js:54 15:36:34: Synchronizer: Sync: finished: Synchronisation finished [1716330993395]
main-html.js:54 15:36:34: Synchronizer: Operations completed: 
main-html.js:54 15:36:34: Synchronizer: updateRemote: 1
main-html.js:54 15:36:34: CodeMirror/v5/Editor: Calling props.onChange -- changed from non-setValue location
main-html.js:54 15:36:34: NoteEditor: setFormNote and scheduled save. Changed: true
main-html.js:54 15:36:34: Synchronizer: Total folders: 20
main-html.js:54 15:36:34: Synchronizer: Total notes: 71
main-html.js:54 15:36:34: Synchronizer: Total resources: 103
main-html.js:54 15:36:34: checkDisabledSyncItemsNotification: No errors: Hiding notification
main-html.js:54 15:36:34: useFormNote: Sync or decryption finished with an unchanged formNote.
main-html.js:54 15:36:34: useFormNote: Form note refresh has been scheduled.
main-html.js:54 15:36:34: Setting up recurrent sync with interval 5
main-html.js:54 15:36:34: Recurrent sync operation DISABLED!!!
main-html.js:54 15:36:34: useFormNote: Sync has finished and note has never been changed - reloading it
main-html.js:54 15:36:34: useFormNote: Initializing note state
main-html.js:54 15:36:34: useFormNote: Resource info and form note set.
main-html.js:54 15:36:34: useFormNote: clearing scheduled note refresh. Cancelled:  false
main-html.js:54 15:36:34: CodeMirror/v5/Editor: Editor content changed externally. Was previously non-empty
main-html.js:54 15:36:34: useScheduleSaveCallbacks: Saving note... {id: '4480d14c3ebe44b08f4762f1340aed15', parent_id: '7f9dc2b21c284738a6526163a0f82ed5', deleted_time: 0, title: 'Another - Copy', body: "EAnother\n\nThis is a test of a note. Let's see if t… ] k\n- [ ] l\n- [ ] m\n- [ ] m\n- [ ] m\n- [ ] m\n- [ "}
main-html.js:54 15:36:34: Scheduling sync operation... 700

personalizedrefrigerator added a commit to personalizedrefrigerator/joplin that referenced this issue May 21, 2024
…ey is pressed at the wrong time after a sync
personalizedrefrigerator added a commit to personalizedrefrigerator/joplin that referenced this issue May 21, 2024
…e on sync

This commit fixes a race condition caused by the editor's form note's hasChanged
property not being up-to-date (or checked) while refreshing the note.

The `.hasChanged` property was previously checked only before running
async logic that updated the note. If the note changed during this async
logic, this could change the value passed down to the editor as its
content. If the editor had recently updated its content, the content
prop would then **not match** the current content of the editor.

The CodeMirror 5 (and also the rich text?) editors handle this by 1)
changing the editor's content 2) clearing the editor's undo history and
3) resetting the cursor position. The CodeMirror 6 editor only does 1
and 2, so the issue was most significant in the CodeMirror 5-based
editor.

This commit fixes the issue by 1) storing a refrence to the latest
formNote in a ref and 2) checking ref.current.hasChanged just before
saving changes to the note.
@nonobio
Copy link

nonobio commented May 23, 2024

Hi,

I just had the problem with 3.0.8 😕

I had selected a line of text, I pressed CTRL + B to make it bold and presto, cursor at the start.
The sidebar did not indicate sync in progress. Here are the lines from my console (the problem occurred around 3:25 p.m.):

Details

15:24:39: SearchEngine: Updating FTS table... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:39: Updating items_normalized from Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:39: SearchEngine: Updated FTS table in 122ms. Inserted: 1. Deleted: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:44: Preparing scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:44: Starting scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:44: Synchronizer: Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false} [1716470684866] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:44: Synchronizer: Indexing resources... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:44: ResourceService::indexNoteResources: Start C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:45: ResourceService::indexNoteResources: Completed C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:37 useHtmlLoader: isReady true C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:41 useHtmlLoader: setHtml 53b0d8d8e8061e0ae4861ee9069c0ad6 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:20 useHtmlLoader: message Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:46: Synchronizer: Sync target remote info: Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:46: Synchronizer: Sync target is already setup - checking it... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:46: Synchronizer: Sync target local info: Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:49: Synchronizer: Sync: updateRemote: local has changes: Note: (Local cb4f2531c36c41759115488cdd4f3402): (Remote cb4f2531c36c41759115488cdd4f3402.md) C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:37 useHtmlLoader: isReady true C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:41 useHtmlLoader: setHtml 90f34a5c52c91d248162c90866406890 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:20 useHtmlLoader: message Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Processing a path that has already been done: cb4f2531c36c41759115488cdd4f3402.md. sync_time was not updated? Remote item has an updated_time in the future? C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Sync: finished: Synchronisation finished [1716470684866] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Operations completed: C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: updateRemote: 1 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Total folders: 211 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Total notes: 16505 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: Synchronizer: Total resources: 96504 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: checkDisabledSyncItemsNotification: No errors: Hiding notification C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:51: useFormNote: Sync has finished and note has never been changed - reloading it C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:37 useHtmlLoader: isReady true C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:41 useHtmlLoader: setHtml 4ab3dbe3ece4d664a3876af107aaa465 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:20 useHtmlLoader: message Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:55: SearchEngine: Updating FTS table... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:55: Updating items_normalized from Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:24:55: SearchEngine: Updated FTS table in 116ms. Inserted: 1. Deleted: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:06: Preparing scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:06: Starting scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:06: Synchronizer: Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false} [1716470706782] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:06: Synchronizer: Indexing resources... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:06: ResourceService::indexNoteResources: Start C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:07: ResourceService::indexNoteResources: Completed C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:08: Synchronizer: Sync target remote info: Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:08: Synchronizer: Sync target is already setup - checking it... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:08: Synchronizer: Sync target local info: Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:10: Synchronizer: Sync: updateRemote: local has changes: Note: (Local cb4f2531c36c41759115488cdd4f3402): (Remote cb4f2531c36c41759115488cdd4f3402.md) C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:37 useHtmlLoader: isReady true C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:41 useHtmlLoader: setHtml c421e9348f699a06ef0bc009d7f0053f C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:20 useHtmlLoader: message Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Processing a path that has already been done: cb4f2531c36c41759115488cdd4f3402.md. sync_time was not updated? Remote item has an updated_time in the future? C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Sync: finished: Synchronisation finished [1716470706782] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Operations completed: C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: updateRemote: 1 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Total folders: 211 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Total notes: 16505 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: Synchronizer: Total resources: 96504 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: checkDisabledSyncItemsNotification: No errors: Hiding notification C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:12: useFormNote: Sync has finished and note has never been changed - reloading it C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:17: SearchEngine: Updating FTS table... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:17: Updating items_normalized from Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:17: SearchEngine: Updated FTS table in 120ms. Inserted: 1. Deleted: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:37 useHtmlLoader: isReady true C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:41 useHtmlLoader: setHtml d52cf4de60093a16a323cfc78478a9d5 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\services\plugins\hooks\useHtmlLoader.js:20 useHtmlLoader: message Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:50: SearchEngine: Updating FTS table... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:50: Updating items_normalized from Object C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:25:51: SearchEngine: Updated FTS table in 227ms. Inserted: 1. Deleted: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: Preparing scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: Starting scheduled sync C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: Synchronizer: Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false} [1716470764142] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: Synchronizer: Indexing resources... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: ResourceService::indexNoteResources: Start C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:04: ResourceService::indexNoteResources: Completed C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:05: Synchronizer: Sync target remote info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(0), ppk: {…}, …} C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:05: Synchronizer: Sync target is already setup - checking it... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:05: Synchronizer: Sync target local info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(0), ppk: {…}, …} C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:07: Synchronizer: Sync: updateRemote: local has changes: Note: (Local cb4f2531c36c41759115488cdd4f3402): (Remote cb4f2531c36c41759115488cdd4f3402.md) C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:14: SearchEngine: Updating FTS table... C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:16: Updating items_normalized from {updated_time: 0, id: ''} C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:16: SearchEngine: Updated FTS table in 1696ms. Inserted: 0. Deleted: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: TaskQueue.stop: syncDownload: waiting for tasks to complete: 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: TaskQueue.stop: syncDownload: Done, waited for 0 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: Sync: finished: Synchronisation finished [1716470764142] C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: Operations completed: C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: updateRemote: 1 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: Total folders: 211 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: Total notes: 16505 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: Synchronizer: Total resources: 96504 C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: checkDisabledSyncItemsNotification: No errors: Hiding notification C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\@joplin\utils\dist\Logger.js:270 15:26:17: useFormNote: Sync has finished and note has never been changed - reloading it

Joplin 3.0.8 (prod, win32)

ID client : 773c93d7dee04e1289cb896f235df6a3
Version de Synchro : 3
Version du profil : 47
Trousseau supporté : Oui

Révision : 826006c

Backup: 1.4.1
Bidirectional Links: 0.1.2
Favorites: 1.3.2
Menu items, Shortcuts, Toolbar icons: 1.1.0
Note list and sidebar toggle buttons: 1.0.3
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.13
Quick Links: 1.3.2
Rich Markdown: 0.15.0
Search & Replace: 2.2.0

Thanks

@personalizedrefrigerator
Copy link
Collaborator

I had selected a line of text, I pressed CTRL + B to make it bold and presto, cursor at the start.
The sidebar did not indicate sync in progress. Here are the lines from my console (the problem occurred around 3:25 p.m.):

Thank you for following up. Which editor was this in? (Markdown legacy, markdown beta, or rich text?)

@nonobio
Copy link

nonobio commented May 23, 2024

Markdown legacy

@nonobio
Copy link

nonobio commented May 24, 2024

It just happened to me twice. I just created a new note, typed an H1 title, an H2 title and presto, cursor up.
Here are the console lines (my problem happened at 8:05):

Details

08:04:04: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:05: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:05: SearchEngine: Updated FTS table in 127ms. Inserted: 1. Deleted: 0
4C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:15: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:15: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:15: SearchEngine: Updated FTS table in 105ms. Inserted: 1. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:29: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:29: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:29: SearchEngine: Updated FTS table in 150ms. Inserted: 1. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:39: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:40: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:40: SearchEngine: Updated FTS table in 114ms. Inserted: 1. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:44: Preparing scheduled sync
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:44: Starting scheduled sync
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:44: Synchronizer: Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false} [1716530684880]
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:44: Synchronizer: Indexing resources...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:44: ResourceService::indexNoteResources: Start
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:45: ResourceService::indexNoteResources: Completed
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:46: Synchronizer: Sync target remote info: Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:46: Synchronizer: Sync target is already setup - checking it...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:46: Synchronizer: Sync target local info: Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:48: Synchronizer: Sync: createRemote: remote does not exist, and local is new and has never been synced: Note: (Local b4081ec546dc4622b93a6d952604a63e)
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:48: Synchronizer: Sync: updateRemote: local has changes: Note: (Local d0a2715a996f4d1ab6c0befa8b43fd31): (Remote d0a2715a996f4d1ab6c0befa8b43fd31.md)
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:55: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:57: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:57: SearchEngine: Updated FTS table in 2170ms. Inserted: 0. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: TaskQueue.stop: syncDownload: waiting for tasks to complete: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: TaskQueue.stop: syncDownload: Done, waited for 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: Sync: finished: Synchronisation finished [1716530684880]
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: Operations completed:
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: createRemote: 1
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: updateRemote: 1
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: Total folders: 211
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: Total notes: 16507
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:58: Synchronizer: Total resources: 96504
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:59: checkDisabledSyncItemsNotification: No errors: Hiding notification
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:04:59: useFormNote: Sync has finished and note has never been changed - reloading it
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:07: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:07: Updating items_normalized from Object
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:07: SearchEngine: Updated FTS table in 103ms. Inserted: 1. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: Preparing scheduled sync
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: Starting scheduled sync
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: Synchronizer: Sync: starting: Starting synchronisation to target 6... supportsAccurateTimestamp = false; supportsMultiPut = false} [1716530714140]
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: Synchronizer: Indexing resources...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: ResourceService::indexNoteResources: Start
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:14: ResourceService::indexNoteResources: Completed
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:15: Synchronizer: Sync target remote info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(0), ppk: {…}, …}
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:15: Synchronizer: Sync target is already setup - checking it...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:15: Synchronizer: Sync target local info: {version: 3, e2ee: {…}, activeMasterKeyId: {…}, masterKeys: Array(0), ppk: {…}, …}
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:17: Synchronizer: Sync: updateRemote: local has changes: Note: (Local b4081ec546dc4622b93a6d952604a63e): (Remote b4081ec546dc4622b93a6d952604a63e.md)
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:24: SearchEngine: Updating FTS table...
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:27: Updating items_normalized from {updated_time: 0, id: ''}
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:27: SearchEngine: Updated FTS table in 3098ms. Inserted: 0. Deleted: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: TaskQueue.stop: syncDownload: waiting for tasks to complete: 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: TaskQueue.stop: syncDownload: Done, waited for 0
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: Sync: finished: Synchronisation finished [1716530714140]
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: Operations completed:
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: updateRemote: 1
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: Total folders: 211
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: Total notes: 16507
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: Synchronizer: Total resources: 96504
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: checkDisabledSyncItemsNotification: No errors: Hiding notification
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\utils\dist\Logger.js:270 08:05:29: useFormNote: Sync has finished and note has never been changed - reloading it
C:\Users\nonob\AppData\Local\Programs\Joplin\resources\app.asar\gui\NoteEditor\utils\useMessageHandler.js:28 Got ipc-message: noteRenderComplete undefined

@markuspeitl
Copy link

markuspeitl commented Jun 9, 2024

I have also experienced this problem for the versions i used in the last years.
It happens very often with my install, usually every other paragraph (Joplin v2.14.20).
The editor used does not seem to matter, for me it happens both in the legacy markdown as well as richtext editor.
Always speculated that refreshing the DOM tree might be the issue, that if the cursor is set before the DOM finishes rendering and therefore the previous cursor position is never fully set on the new updated DOM, because it was only set on de old DOM.
At least that was the issue i had on some of my own projects, where online rich text editing was needed and there was an underlying data model to be rendered as a DOM tree in the browser.

It makes what is an otherwise great application quite unpleasant to use, particularly when writing longer form text.
Is anyone currently working on this, or is some work on the issue planned?

EDIT: Just saw that a possible fix is merged into dev. Thanks @personalizedrefrigerator

personalizedrefrigerator added a commit to personalizedrefrigerator/joplin that referenced this issue Jun 10, 2024
…r on sync

Marks the current note as changed immediately after pressing a key.
@nonobio
Copy link

nonobio commented Jun 23, 2024

Hi,
Do you have any news regarding this bug?
This still happens to me with 3.0.10.
I notice that when the problem occurs, the very last editing action that I made disappears.
For example :

  • I paste a link
  • the cursor goes up
  • my collage has disappeared

Thanks :)

Details

Joplin 3.0.10 (prod, win32)

ID client : 773c93d7dee04e1289cb896f235df6a3
Version de Synchro : 3
Version du profil : 47
Trousseau supporté : Oui

Révision : 45f8e27

Backup: 1.4.1
Bidirectional Links: 0.1.2
Combine notes: 1.2.2
Favorites: 1.3.2
Menu items, Shortcuts, Toolbar icons: 1.1.0
Note list and sidebar toggle buttons: 1.0.3
Note overview: 1.7.1
Note Tabs: 1.4.0
Outline: 1.5.13
Quick Links: 1.3.2
Rich Markdown: 0.15.0
Search & Replace: 2.2.0

@hoixding
Copy link

just like talk in
https://discourse.joplinapp.org/t/the-cursor-unexpectedly-jumps-to-the-first-position-in-the-note/39057

this issue happend in Rich Text Editor .

Joplin 3.0.8 (prod, win32)
Backup: 1.4.1
Conflict Resolution: 1.2.3
Delete unlinked resources: 1.0.0
Outline: 1.5.13

@personalizedrefrigerator
Copy link
Collaborator

personalizedrefrigerator commented Jul 28, 2024

Re-opening as partially resolved.

Edit:

@laurent22 laurent22 added backlog We'll get to it... eventually... and removed high High priority issues labels Sep 6, 2024
@TheOtherGuy
Copy link

I encounter this issue only on Mac and not Windows. It also only happens on certain notes, typically those which contains more data.

Both are running Joplin 3.0.15.

Joplin details for Mac:

Joplin 3.0.15 (prod, darwin)

Client ID: 90780ab3e354445fac059f9d95a3145a
Sync Version: 3
Profile Version: 47
Keychain Supported: No

Revision: 598677b

Backup: 1.4.1
Outline: 1.5.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment