I often use TextMate's "anonymous project" feature, where I drop a folder onto TextMate, and it automatically creates a project for me. Unfortunately, I've noticed that if I rename this folder or move it to the trash, TextMate gets confused. It apparently can't find the project and displays all the files in the file drawer in red text. Also, if I happen to have an unsaved file open beforehand, TextMate insists that I type my administrator password (why?) every time I switch apps, since I have the "Save files when focus is lost" setting on.
This wouldn't be so bad, except that sometimes -- and I haven't figured out what causes this -- TextMate prompts me for my password, then beachballs permanently after I enter it, and I have to Force Quit. This has happened to me on quite a few occasions, and just happened again today. (I'm using version 1.5.3.) Has anyone else seen this?
Anyway, shouldn't TextMate be able to track folder changes? I don't understand why it has to get all confused just because I move or rename a folder.
Trevor
On 3. Nov 2006, at 22:02, Trevor Harmon wrote:
[...] Anyway, shouldn't TextMate be able to track folder changes? I don't understand why it has to get all confused just because I move or rename a folder.
Because it is representing files using path strings, the abstraction provided by Cocoa for this (see [1]).
I will use more Carbon APIs in 2.0. As for asking for password: when you try to save something, and it fails, TM can think it happened because you do not have the proper privileges, and so it will ask you for them, and will then retry with these -- if you know it is asking, because the path is gone, cancel the request, and TM will abort saving it.
[1] http://macromates.com/blog/archives/2006/10/08/open-letter-to-wil- shipley/#comment-1624