[TxMt] Re: textmate Digest, Vol 99, Issue 24

Jack Royal-Gordon jackrg at pobox.com
Sun Aug 21 16:56:30 UTC 2016


> From: "Allan Odgaard" <mailinglist at textmate.org>
> Subject: [TxMt] Re: Weird file not updating problem
> Date: August 21, 2016 at 2:56:20 AM PDT
> To: "TextMate users" <textmate at lists.macromates.com>
> Reply-To: TextMate users <textmate at lists.macromates.com>
> 
> 
> On 20 Aug 2016, at 8:57, Jack Royal-Gordon wrote:
> 
>> I made some changes to a file that was open as part of a Rails project (the whole project was opened) and saved the changes. TextMate showed the file as having no unsaved changes. However, inspecting the file outside of TextMate, I could see that the the changes were not saved.
> 
> And even pressing ⌘S did not change that? ⌘S will always save, even if it shows “no changes”.

Did press ⌘S several times, as when I ran the file and it did not work I thought I had forgotten to save.
> 
> Also, when you have a file open, you can use Bundles → Diff → Document With Saved Copy. This will run a diff util on the buffer and the file on disk, that should be able to confirm if somehow TM’s buffer is different with the file on disk after ⌘S.

That’s a good idea. Did not know about that.
> 
>> I rebooted my computer and when TextMate reopened, there was the file with my changes showing (but which were not saved although again it showed as having no unsaved changes). I had to close the file, reopen it, and re-apply the changes before saving again in order to actually save the changes
> 
> So you rebooted, re-opened the file, and while TM found your (unsaved) changes, it would still not save on ⌘S. But closing file (again) and re-opening now did show the file on disk, and you could save?

Correct. When I reopened, it showed the file without the changes that did not save.
> 
>> […] I wanted to see if this was a known issue with 2.0-beta.12.
> 
> Nothing I have heard of before, but from the description above, it really sounds like TextMate was operating on a different file than what you was inspect on disk, that would explain all of the behavior perfectly, including rebooting and showing the updated file “with no changes”, yet after closing it and opening the (right) file, you now lost the changes, and had to re-do them.

Since I opened a folder in Textmate and was accessing files via the File Browser, I have a hard time imagining how it was accessing a different file. But I agree that that would explain all of the strange behavior.
> 
> So what should probably be looked into is, how did it get to operate on this other file, and where on disk was it?

Yes, that would be the question.
> 
> Did anything work on the files on disk (TextMate will track renames, hence if you open /path/to/file and then move it to /path/to/other/place, it will update its reference).
> 
> Should it ever happen again, you can right-click the proxy icon to see where the file is on dis, or use File Browser → Reveal Document.

I will do that. Thanks for the response.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160821/75fcc691/attachment.html>


More information about the textmate mailing list