[TxMt] Beware of creating files with names that differ only in case!
cskiadas at gmail.com
Thu Aug 16 18:37:32 UTC 2007
On Aug 16, 2007, at 2:28 PM, Chris Fonnesbeck wrote:
> I discovered a little quirk of TextMate this afternoon that cost me
> hours of work.
> I had a file within a project called "distributions.py", and wanted
> to make
> a new file called "Distributions.py" to experiment with a few things.
> When I created this file, it generated a new file, but rather than
> the usual
> template, it contained the contents of distributions.py. Fine, I
> I was going to copy some of the contents of "distributions.py" over
> anyway. I went ahead and heavily edited Distributions.py, including
> deleting much of the original contents.
> I was shocked to find that when I went back to the original file, all
> the editing that I had done in the new file was mirrored in the
> I had done enough editing that I was unable to undo changes to get
> of it back. Several hours of work -- gone.
> Why on earth did creating a *new* file in a project apparently just
> create some sort of symbolic link to an existing file?? 2 different
> "Distributions.py" and "distributions.py" both appeared in the
> project list,
> and both had their own tabs. Does this have something to do with
> files that differ only in case? Very frustrating.
I can confirm this behavior, and I would definitely consider it a
bug. You might want to add your comments to this ticket, which seems
to be relevant:
Department of Mathematics and Computer Science
More information about the textmate