#1573 SciTE isn't complaining about empty disk space if the file already exists

Bug
open
nobody
None
5
2014-01-29
2014-01-29
Sworddragon
No

I'm using SciTE 3.3.8 and if a file already exists and will be saved later again while there is no disk space SciTE isn't complaining about this and suggests to the user that the file was successfully saved while the content got deleted. I think it would be better if SciTE would show an error message and not deleting the content.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2014-01-29

    With default settings, I'm seeing an error message: "Could not save file ''".

     
  • Sworddragon
    Sworddragon
    2014-01-29

    I have tested this again with the default configuration but the problem still exists. But I'm hitting only the soft limit of my disk space due to the reserved blocks (in this testcase with "tune2fs -m 50 /dev/sda1"). Maybe it is related to this?

     
    • Neil Hodgson
      Neil Hodgson
      2014-01-30

      It may be related to system allowed overcommit. On GTK+/Linux, its most likely happening in the synchronous arm of SciTEBase::SaveBuffer and it would be worthwhile tracing the result of convert.fwrite here. Its possible that better error checking is needed in Utf8_16_Write::fwrite.