Error with Typora (External editor) (Desktop, W10)

Hello,

I record this error on Video:

https://1drv.ms/v/s!Ao9lzwMBceOvia5pyweXE2a6WH4_qQ

While a video is certainly helpful, can you please describe the problem and then add a link to a video.

I have the same error. It works when creating a “New note” using Typora as an external editor. Then, when I try to edit an existing note, it removes all the note’s content as Xavier showed on the video.

@florestal, what operating system? And does it happen every time or just occasionally? What command line do you use in the setting to open Typora?

I just installed Joplin in Windows 10. I was trying now again creating new notes and editing within Joplin and with Typora (i.e., external editor). It happens occasionally! I did not modify any command line to open Typora.

UPDATE

I was testing where the errors might be. I see at least now two cases:

  1. Adding a new empty line after the title of the note in Typora, i.e., pressing enter at the end of the first line.
  2. adding headers

Could one of you try to run the app with the --log-level debug flag, as described there? https://joplinapp.org/debugging/#desktop-application. That should add log entries with a “ExternalEditWatcher:” prefix which might tell us more precisely what happens.

And if you do so, please let me know the exact time (minute and seconds) when the bug happened, so that it’s possible to find it in the log.

Hi laurent,

I was testing the error with Typora in the debug mode. I think the problem is when I restart Joplin and continue editing the saved notes. When it is not in Debug mode, each time I save from Typora, all the information is deleted. On the other hand, in debug mode the information of the note is not deleted but it shows the following warning.

Blockquote C:\Users\Mike\AppData\Local\Programs\Joplin\resources\app.asar\node_modules\fbjs\lib\warning.js:33 Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
in NoteTextComponent (created by Connect(NoteTextComponent))
in Connect(NoteTextComponent) (created by MainScreenComponent)
in div (created by MainScreenComponent)
in MainScreenComponent (created by Connect(MainScreenComponent))
in Connect(MainScreenComponent) (created by NavigatorComponent)

In the .log file, the time of the warning is at around 17:22:42

Blockquote 2019-10-13 17:21:58: "ExternalEditWatcher: Started watching C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:21:58: "ExternalEditWatcher: Event: add: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:04: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:04: "Scheduling sync operation..."
2019-10-13 17:22:04: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:04: "Scheduling sync operation..."
2019-10-13 17:22:06: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:06: "Scheduling sync operation..."
2019-10-13 17:22:06: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:06: "Scheduling sync operation..."
2019-10-13 17:22:06: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:06: "Scheduling sync operation..."
2019-10-13 17:22:06: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:06: "Scheduling sync operation..."
2019-10-13 17:22:07: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-7d23efce1d6c4c84987c83274d08ec39.md"
2019-10-13 17:22:07: "Scheduling sync operation..."
2019-10-13 17:22:13: "ExternalEditWatcher: Stopped watching C:\Users\Mike/.config/joplin-desktop/edit-b1577e37b7b54a89b196340a87fdf257.md"
2019-10-13 17:22:14: "SearchEngine: Updating FTS table..."
2019-10-13 17:22:14: "SearchEngine: Updated FTS table in 268ms. Inserted: 1. Deleted: 0"
2019-10-13 17:22:15: "ExternalEditWatcher: Stopped watching C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:18: "ExternalEditWatcher: Started watching C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:18: "ExternalEditWatcher: Event: add: C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:23: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:23: "Scheduling sync operation..."
2019-10-13 17:22:23: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:23: "Scheduling sync operation..."
2019-10-13 17:22:23: "ExternalEditWatcher: Event: change: C:\Users\Mike/.config/joplin-desktop/edit-3a5a13a8f22c4e448771c118cfc1173f.md"
2019-10-13 17:22:23: "Scheduling sync operation..."
2019-10-13 17:22:29: "Scheduling sync operation..."
2019-10-13 17:22:30: "Scheduling sync operation..."
2019-10-13 17:22:33: "SearchEngine: Updating FTS table..."
2019-10-13 17:22:33: "SearchEngine: Updated FTS table in 254ms. Inserted: 2. Deleted: 0"
2019-10-13 17:22:38: "Scheduling sync operation..."
2019-10-13 17:22:39: "Scheduling sync operation..."
2019-10-13 17:22:39: "Scheduling sync operation..."
2019-10-13 17:22:48: "SearchEngine: Updating FTS table..."
2019-10-13 17:22:48: "SearchEngine: Updated FTS table in 203ms. Inserted: 1. Deleted: 0"

This should be fixed in the next release.

1 Like