Well, I just lost over an hour of work and I'd like to know what happened.
I was editing a long entry in a textarea field using the Edit in TextMate thing. The connection to the server was lost, so I did a Save As to make a local copy on my Desktop and continued working. The icon for the new file appeared on my Desktop.
After a while, TM started beeping at me whenever I saved. Fearing the something had gone wrong, I opened the file in TextEdit (it was still open in TM). Everything was there, so I quit TextEdit and went back to TM. Still getting a beep on every save, I decided to quit and relaunch TM. As soon as I quit TM, the icon for the file disappeared from the Desktop. When I relaunched TM, the file didn't even appear in the Open Recent submenu.
Any ideas? I'm running Version 1.5.1 (1070).
On 08 Jun 2006, at 23:06, Dr. Drang wrote:
Well, I just lost over an hour of work and I'd like to know what happened.
I was editing a long entry in a textarea field using the Edit in TextMate thing. The connection to the server was lost, so I did a Save As to make a local copy on my Desktop and continued working. The icon for the new file appeared on my Desktop.
After a while, TM started beeping at me whenever I saved. Fearing the something had gone wrong, I opened the file in TextEdit (it was still open in TM). Everything was there, so I quit TextEdit and went back to TM. Still getting a beep on every save, I decided to quit and relaunch TM. As soon as I quit TM, the icon for the file disappeared from the Desktop. When I relaunched TM, the file didn't even appear in the Open Recent submenu.
Did you look for your file in /private/var/tmp/folders.501/ TemporaryItems ?
That's where it's put when using Edit in TM in Mail.app. Can't test with other apps Edit in TM is broken for me (see my next mail).
-- FredB
On 6/8/06, Fred B. fredb7@starflam.com wrote:
Did you look for your file in /private/var/tmp/folders.501/ TemporaryItems ?
I mistakenly looked through /tmp and its subfolders (a Linux habit). I've since learned that they go in /private/.../TemporaryItems. But the thing is, I Save As'd to a different location and I *saw* the file icon at that location before it disappeared when I quit TM.
Maybe TM continued to think of it as a temporary file and cleaned it up when it quit?
On 6/8/06, Charilaos Skiadas cskiadas@uchicago.edu wrote:
Are there no error messages on Console.app?
Well... I've rebooted since then and it looks like Console starts afresh after each reboot. I know it looks like I'm deliberately trying to erase the evidence you all could use to help be, but I assure you it's just ignorance. I spent several years in Linux learning the ins and outs of the operating system; when I moved to the Mac, I wanted to kick back and not worry about that stuff.
I have looked in /var/log/system.log (which looks like the OS X equivalent of /var/log/messages) and haven't found anything about TextMate. Is there any other permanent log I should look at?
On Jun 8, 2006, at 9:46 PM, Dr. Drang wrote:
On 6/8/06, Charilaos Skiadas cskiadas@uchicago.edu wrote:
Are there no error messages on Console.app?
Well... I've rebooted since then and it looks like Console starts afresh after each reboot. I know it looks like I'm deliberately trying to erase the evidence you all could use to help be, but I assure you it's just ignorance. I spent several years in Linux learning the ins and outs of the operating system; when I moved to the Mac, I wanted to kick back and not worry about that stuff.
No I am pretty sure Console does not erase the logs. You want the console.log files, not the system logs. Look in: /Library/Logs/ Console/501 or something similar. I have the following files there: console.log console.log.1 console.log.3 console.log.5 console.log.7 console.log.9 console.log.0 console.log.2 console.log.4 console.log.6 console.log.8
The numbered ones are the backups. So somewhere there would be your answer I would guess, if it is not in console.log.
Keep in mind, Console.app only shows you a part of console.log, the most recent part, so there is more info in the file. Also careful, these are big files, TextMate might not be entirely happy with them.
-- Dr. Drang
Haris
On 6/8/06, Charilaos Skiadas cskiadas@uchicago.edu wrote:
No I am pretty sure Console does not erase the logs. You want the console.log files, not the system logs. Look in: /Library/Logs/ Console/501 or something similar. I have the following files there: console.log console.log.1 console.log.3 console.log.5 console.log.7 console.log.9 console.log.0 console.log.2 console.log.4 console.log.6 console.log.8
The numbered ones are the backups. So somewhere there would be your answer I would guess, if it is not in console.log.
Keep in mind, Console.app only shows you a part of console.log, the most recent part, so there is more info in the file. Also careful, these are big files, TextMate might not be entirely happy with them.
From console.log.0, here are the lines just before I quit TM:
2006-06-08 15:40:06.484 Safari[4264] handleModifiedFileEvent:withReplyEvent: view 0x0, (null), window (null) 2006-06-08 15:40:06.484 Safari[4264] handleModifiedFileEvent:withReplyEvent: file name /Users/drang/Desktop/stork.txt, options (null) 2006-06-08 15:40:06.485 Safari[4264] handleModifiedFileEvent:withReplyEvent: all { "/var/tmp/folders.501/TemporaryItems/Project Notes.safari" = { fileName = "/var/tmp/folders.501/TemporaryItems/Project Notes.safari"; line = 2; string = "meta-creation_date: 6/7/2006 20:00\n\nThis ... [snip] ..."; view = <KWQTextAreaTextView: 0xc512230> Frame = {{0.00, 0.00}, {570.00, 512.00}}, Bounds = {{0.00, 0.00}, {570.00, 512.00}} Horizontally resizable: NO, Vertically resizable: YES MinSize = {570.00, 320.00}, MaxSize = {10000000.00, 10000000.00} ; }; } 2006-06-08 15:40:09.215 TextMate[2819] saveCache did flush 10 entries 2006-06-08 15:40:09.216 TextMate[2819] saveCache 318 items
I edited down the "string=" part. If it was supposed to contain the entire file I was working on, it failed. The file was much bigger when I quit.
Does this tell you anything?
On 9/6/2006, at 2:27, Dr. Drang wrote:
[...] Maybe TM continued to think of it as a temporary file and cleaned it up when it quit?
Yes, more like the Edit in TextMate “service” which cleans up the temporary file (it would know about the new location from using an alias rather than abs. path) -- I’ll look into the involved code, and make sure it breaks the temporary stamp if the file changes location -- sorry about the lost work.
On Jun 9, 2006, at 6:29 AM, Allan Odgaard wrote:
On 9/6/2006, at 2:27, Dr. Drang wrote:
[...] Maybe TM continued to think of it as a temporary file and cleaned it up when it quit?
Yes, more like the Edit in TextMate “service” which cleans up the temporary file (it would know about the new location from using an alias rather than abs. path) -- I’ll look into the involved code, and make sure it breaks the temporary stamp if the file changes location -- sorry about the lost work.
Ah, well. It didn't take as long to rewrite as it took to write in the first place. And the rewrite is probably better.
-- Dr. Drang