I thought about it but wanted to make the process as unobtrusive as possible - you open file, you save it and the resource is updated, no extra popup or message.
If it turns out that Office is so special that you can’t watch for file changes, we can add a warning later for these files, but by default I prefer if there’s no extra messages.
Hello, I found that Windows 10 also has problems, but the probability of problems is lower than Windows7, I have updated the problem, if you can, trouble test a few times
I have tried approximately 30 times now and still can not reproduce this issue.
Every time i press Ctrl-S (or File > Save) in Excel the file in the edited_resources folder is updated and so is the corresponding file in the resources folder. Seems to be working bullet proof to me.
( On the other hand I wish someone would look into my related problem and see if they are able to reproduce that issue… )
Aha, with your updated steps I am able to reproduce the problem. Seems to have nothing to do with Excel as it also happens with LibreOffice and ods files.
Easily reproducible:
Open any attachment from a Joplin note to edit it in external application.
While editing the document, switch to another note in Joplin (just click on any other note in the note list)
Save the edited document in the external application.
Changes are lost in Joplin.
It does not work like that when editing notes in external editor - we can edit many notes at the same time with Typora for example.
Thanks for looking into it @eagle. It is by design that the app stops watching when switching notes. The problem is that it's either that, or to keep on watching files for as long as Joplin is open. This is because there's no reliable way to know if a file is being edited in an external app or not.
So not sure what's the best way in terms of usability. Maybe there should after all be some banner showing "file xxxx is being watched", and that banner goes away when no longer watching?
@laurent
When the file is automatically deleted from the edited_resources folder, first synchronize to the resources folder so that no data will be lost. In addition, the files in the edited_resources folder are not named by id, which will cause file name conflicts. It is recommended to keep the naming in resources the same.
When the file is automatically deleted from the edited_resources folder, first synchronize to the resources folder so that no data will be lost.
You're stating the obvious, of course the file is saved and synced before it's deleted. Read above - what you were doing is editing a file on a note that was closed.
In addition, the files in the edited_resources folder are not named by id, which will cause file name conflicts.
Again stating the obvious. The app of course checks for file name conflicts.
Not making any progress here, so please before posting check that what's been said before and check that what you're saying is actually true.
You’re stating the obvious, of course the file is saved and synced before it’s deleted. Read above - what you were doing is editing a file on a note that was closed.
When editing files, it is very common to open other notes. In this case, data loss is a problem that needs to be solved urgently. I hope to have a more complete solution. @laurent