<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"Allan Odgaard" <<a href="mailto:mailinglist@textmate.org" class="">mailinglist@textmate.org</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">[TxMt] Re: Weird file not updating problem</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">August 21, 2016 at 2:56:20 AM PDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"TextMate users" <<a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">TextMate users <<a href="mailto:textmate@lists.macromates.com" class="">textmate@lists.macromates.com</a>><br class=""></span></div><br class=""><br class="">On 20 Aug 2016, at 8:57, Jack Royal-Gordon wrote:<br class=""><br class=""><blockquote type="cite" class="">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.<br class=""></blockquote><br class="">And even pressing ⌘S did not change that? ⌘S will always save, even if it shows “no changes”.<br class=""></div></blockquote><br class="">Did press ⌘S several times, as when I ran the file and it did not work I thought I had forgotten to save.<br class=""><blockquote type="cite" class=""><div class=""><br class="">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.<br class=""></div></blockquote><br class="">That’s a good idea. Did not know about that.<br class=""><blockquote type="cite" class=""><div class=""><br class=""><blockquote type="cite" class="">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<br class=""></blockquote><br class="">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?<br class=""></div></blockquote><br class="">Correct. When I reopened, it showed the file without the changes that did not save.<br class=""><blockquote type="cite" class=""><div class=""><br class=""><blockquote type="cite" class="">[…] I wanted to see if this was a known issue with 2.0-beta.12.<br class=""></blockquote><br class="">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.<br class=""></div></blockquote><br class="">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.<br class=""><blockquote type="cite" class=""><div class=""><br class="">So what should probably be looked into is, how did it get to operate on this other file, and where on disk was it?<br class=""></div></blockquote><div><br class=""></div>Yes, that would be the question.<br class=""><blockquote type="cite" class=""><div class=""><br class="">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).<br class=""><br class="">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.<br class=""></div></blockquote><br class="">I will do that. Thanks for the response.</div><br class=""></body></html>