files_texteditor icon indicating copy to clipboard operation
files_texteditor copied to clipboard

recently typed text lost when closing editor

Open phil-davis opened this issue 8 years ago • 3 comments

  1. open the text editor (new or existing file)
  2. type some stuff
  3. press the close button

Sometimes not all the typed text is saved.

This happens sometimes in automated UI tests, where the time between the input typing and pressing the close button is reasonably short. Typically the last couple of characters typed are not found in the file.

phil-davis avatar Aug 31 '17 16:08 phil-davis

Without having looked at the underlying code, I guess there is some Java Script / AJAX happening at intervals to save the file. And I guess the close button is not doing a final save, it just closes the text area box, throwing away any unsaved edits.

phil-davis avatar Aug 31 '17 16:08 phil-davis

During typing there is regular "Saving..." shown in the top bar of the text editor box (that is OK), but there is also lots of:

Cannot save file as it has been modified since opening

The file does get saved (maybe after the user has stopped typing for a second or so?), but this message does not inspire confidence.

phil-davis avatar Sep 01 '17 01:09 phil-davis

I saw this message too today while typing random text for testing. Mostly you need to type while it is already saving.

PVince81 avatar Nov 06 '17 10:11 PVince81