[TextMate] Project containing files on a remote disk - bug?
Andre Posumentov
andre at alpdesignworks.com
Wed Oct 13 22:36:58 UTC 2004
Hi,
Probably unfair to call the following a bug - as it's behaviour that
seems correct in the context of a purely local filesystem. However, it
can catch you out if your Project contains references to remote files.
It went like this:
1/. Create a deeply nested Project file, consisting solely of pointers
to files on a remote disk (mounted via SMB).
2/. Do work, close Project file.
3/. Eject the SMB drive. Go to lunch, or whatever.
4/. Return from whatever and reopen the Project file - forgetting to
remount the remote disk first ...
5/. Gaze in silent horror at the empty Project.
On start-up, TM silently deletes all unresolveable file references from
the Project, leaving only the Groups that you have created. Any
laboriously constructed filter definitions are deleted too, of course.
TM immediately writes the revised Project file back to disk, making
sure that you can't recover from your mistake.
Might it be an idea to have TM pop up a warning - if it detects that a
remote volume has disappeared?
On a machine left idle for any length of time, 'sleep' can cause
remote volumes to eject themselves - so I guess TM would need to check
this periodically, and not just at start-up.
Cheers,
-- Andre
More information about the textmate
mailing list