I've been using TM since it came out and I should have reported this earlier.
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box. I have files that get generated ( or that I create externally) that I want to edit in TM, but if I've already been in that directory in the current TM session, then I won't see the new files. I haven't figured out how to get TM to refresh this list. Any ideas? Or is this a bug/feature?
Thanks, Patrick
On Dec 14, 2004, at 1:20, Patrick Burleson wrote:
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box. I have files that get generated ( or that I create externally) that I want to edit in TM, but if I've already been in that directory in the current TM session, then I won't see the new files. I haven't figured out how to get TM to refresh this list. Any ideas? Or is this a bug/feature?
If it's the open/save dialogs then it sounds like a problem with the system, since these are not done by me.
Are the files located on a normal filesystem (as opposed to e.g. a network mounted filesyste)? could you try e.g. TextEdit and see if it has similar problems?
Patrick Burleson wrote:
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box.
I'm having the same issues. For example, when I fetch a file using FTP in the Terminal I have to restart Textmate or quit the FTP client in order to see the files. The Finder does show them.
On 12/14/04 2:33 AM, "Joost Schuttelaar" joost@greenskin.net wrote:
Patrick Burleson wrote:
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box.
I'm having the same issues. For example, when I fetch a file using FTP in the Terminal I have to restart Textmate or quit the FTP client in order to see the files. The Finder does show them.
I don't think this will help your open dialog box problem, but if you ever need the finder to refresh after doing something in the terminal, try the attached applescript. I have this script on the top right of every finder window in case it doesn't update. Screenshot attached also. Here's the script if you want to save it yourself:
try tell application "Finder" to update items of front window end try
I found it online somewhere though I don't remember where.
Simon
On Dec 14, 2004, at 9:33, Joost Schuttelaar wrote:
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box.
I'm having the same issues. For example, when I fetch a file using FTP in the Terminal I have to restart Textmate or quit the FTP client in order to see the files. The Finder does show them.
hmm... I'm not sure what's causing the problem.
If I open TextMate, select Open and navigate to some directory, then go to Terminal, cd to this directory and write 'touch foo.txt' and cmd-tab back to TM, the new foo.txt is there instantly -- also works if I remove foo.txt. And it doesn't matter whether or not the open dialog is open, it's always up-to-date.
So I can't reproduce this. Where both of you using normal Apple formatted partitions? And could you try just this 'touch foo.txt' thing to see if there's something 100% reproducible?
And also check other programs which use the Ccooa open dialog (like TextEdit).
Allan Odgaard wrote:
hmm... I'm not sure what's causing the problem.
When I have the open file dialog open, and then touch the file, it appears instantly. When I don't have the open file dialog open, touch the file, and then open the file open dialog, the file's not there.
On Dec 14, 2004, at 11:45, Joost Schuttelaar wrote:
hen I have the open file dialog open, and then touch the file, it appears instantly. When I don't have the open file dialog open, touch the file, and then open the file open dialog, the file's not there.
Try the latter but include a touch on the directory which is holding the file.
On Dec 14, 2004, at 11:55, Joost Schuttelaar wrote:
Try the latter but include a touch on the directory which is holding the file.
Then the file appears. Funny thing is that the Open File Dialog then doesn't remember the last opened path. Touch breaks the alias?
Touch updates the date (of the directory) -- which alias are you speaking of?
What is the directory in question in which the open dialog doesn't see changes?
Allan Odgaard wrote:
Touch updates the date (of the directory) -- which alias are you speaking of?
I don't know, maybe some kind of identifier to the directory?
What is the directory in question in which the open dialog doesn't see changes?
It happens in any directory.
Open TextMate Open Terminal mkdir Test Focus Textmate Open File in Textmate, the Test directory does not appear Press cancel in Textmate to close open file dialog Focus Terminal Focus Textmate Open File in Textmate, the Test directory does not appear Focus Terminal Focus Textmate's open file dialog, directory appears Press cancel in Textmate to close open file dialog Focus Terminal cd Test touch pizza.txt Focus Textmate Open File, go to Test, file pizza.txt is there Focus Terminal touch pizza2.txt Focus Textmate's open file dialog, pizza2.txt appears Press cancel Focus Terminal touch pizza3.txt Focus Textmate Open File (already in Test), file pizza3.txt is not there Focus Terminal Focus Textmate's open file dialog, pizza3.txt appears
When I do the same, but instead of focusing Terminal I focus my mail app and then refocus to Textmate's Open File dialog, the file also appears. So it's not Terminal related.
Hope it helps :)
i think this is a may be a system bug - i get it using the file browse html element in safari.
Patrick Burleson wrote:
I've been using TM since it came out and I should have reported this earlier.
It seems that TM is overly agressive with regards to caching a directory listing int he "Open" dialog box. I have files that get generated ( or that I create externally) that I want to edit in TM, but if I've already been in that directory in the current TM session, then I won't see the new files. I haven't figured out how to get TM to refresh this list. Any ideas? Or is this a bug/feature?
Thanks, Patrick _______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 14. dec 2004, at 11:46, Sam Andrews wrote:
i think this is a may be a system bug - i get it using the file browse html element in safari.
I am sure it is. It happens quite often for me, and is even worse in connection with SMB mounted drives for instance, where I either have to eject/remount it or use the shell in such cases. Quite annoying.