Sublime Forum

Disappearing warnings for missing files

#1

I am not sure it is a bug, but it is some unconvinient usecase, that gave me so much troubles, i even bothered to register and post it here )
Probably you can give me an advice how to avoid it.

Workflow:

  1. mount some directory (via sshfs, flash drive - whatever)
  2. add the directory to a project
  3. open some document there with ST2 “sample.txt” and edit it
  4. close ST2 without closing the tab with file
  5. unmount the directory
    …
  6. open ST2
  7. you get opened project and opened tab with empty file “sample.txt”. No warning here
  8. mount the directory
  9. now if you save empty file or Alt+Tab with “save_on_focus_lost” option - ST2 will write empty file to the destination, wiping original file - old content is lost. No warning here

if the directory was not added to project - ST2 sometimes warn you, that file contens on disk has changed, but not always.

imho, combination of “save_on_focus_lost” with nonpermanent folders does cause some unpredicatable behiviour and some sort of warning would be helpfull here.

0 Likes