Hi,
I had written about this before, but I am still seeing this.
If I have a mounted volume (Either AFP, or in the latest case NFS), and I've opened some files from that volume (and have subsequently closed them), when I go to dismount that volume, I get an error in the Finder stating that the volume is in use.
It always end up being Textmate. Using the terminal, I can see:
john$ lsof | grep TextMate TextMate 376 john cwd VDIR 26,9 4096 343647 /Volumes/10.1.1.104/public_html
(The volume that is mounted is just /Volumes/10.1.1.104/, public_html is the directory I happened to open a file from.)
The only way around this is to quit TextMate. Any ideas why TM in holding onto the volume like that?
Thanks,
jt
On 8/9/2006, at 13:40, John Tsombakos wrote:
(The volume that is mounted is just /Volumes/10.1.1.104/, public_html is the directory I happened to open a file from.)
Did you open the file with the standard file panel?
The only way around this is to quit TextMate. Any ideas why TM in holding onto the volume like that?
Since I do not hold locks on anything in the file system, my guess would be that it is because the system file panel keeps one on the folder it is showing. When it happens, try ⌘O and navigate to some other folder, and then unmount.
On 9/8/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 8/9/2006, at 13:40, John Tsombakos wrote:
(The volume that is mounted is just /Volumes/10.1.1.104/, public_html is the directory I happened to open a file from.)
Did you open the file with the standard file panel?
I think in this case (and most others), I dragged the file to the icon in the dock.
The only way around this is to quit TextMate. Any ideas why TM in
holding onto the volume like that?
Since I do not hold locks on anything in the file system, my guess would be that it is because the system file panel keeps one on the folder it is showing. When it happens, try ⌘O and navigate to some other folder, and then unmount.
Yeah, tried that too. Didn't help. :(
On 8/9/2006, at 14:56, John Tsombakos wrote:
The only way around this is to quit TextMate. Any ideas why TM in
holding onto the volume like that?
Since I do not hold locks on anything in the file system, my guess would be that it is because the system file panel keeps one on the folder it is showing. When it happens, try ⌘O and navigate to some other folder, and then unmount.
Yeah, tried that too. Didn't help. :(
Try clear the recent menu -- this might be another place where references to files are kept.
On 9/8/06, Allan Odgaard throw-away-1@macromates.com wrote:
Try clear the recent menu -- this might be another place where references to files are kept.
I'll give that a try the next time it happens.
It doesn't seem to happen all the time. For instance, I was editing a couple of files on an AFP share a little bit ago, and was able to unmount the volume without quitting.
Thanks
hi allan.
Am 08.09.2006 um 16:15 schrieb Allan Odgaard:
[…] Try clear the recent menu -- this might be another place where references to files are kept.
clearing the menu doesn't help. lsof still lists the directory i dragged to the TM-icon in the dock:
TextMate 1968 niko cwd VDIR 44,6 976 18507634 /Volumes/ Projekte/Web/MyWebprojectDir
regards, niko.
On 11/9/2006, at 16:52, Niko Dittmann wrote:
[…] Try clear the recent menu -- this might be another place where references to files are kept.
clearing the menu doesn't help. lsof still lists the directory i dragged to the TM-icon in the dock:
Thanks for testing -- I have found a case where TM would change the working directory of the process to that of the current document, so I am almost certain that this would be reason.
Next build has a fix for this, let me know if the problem persists after that build.
On Sep 13, 2006, at 11:52 PM, Allan Odgaard wrote:
Thanks for testing -- I have found a case where TM would change the working directory of the process to that of the current document, so I am almost certain that this would be reason.
Next build has a fix for this, let me know if the problem persists after that build.
Based on one brief experiment, the latest build fixes this. That will save me so much time. Thanks!
Rob
On 9/13/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 11/9/2006, at 16:52, Niko Dittmann wrote:
[…] Try clear the recent menu -- this might be another place where references to files are kept.
clearing the menu doesn't help. lsof still lists the directory i dragged to the TM-icon in the dock:
Thanks for testing -- I have found a case where TM would change the working directory of the process to that of the current document, so I am almost certain that this would be reason.
Next build has a fix for this, let me know if the problem persists after that build.
Sounds great! I will let you know if the problem reappears!
Thanks!
On 9/14/06, John Tsombakos tsom467@gmail.com wrote:
Sounds great! I will let you know if the problem reappears!
Thanks!
I just had it happen to me again. Tried to eject a network (AFP) volume and the Finder said it was locked.
lsof was showing that the file that was open was a .jar file that was on the volume. It must have been on a web page that I was editing and previewing.
Also, when I went to quit from TextMate, it crashed. I will send the crash log along to the support email address.
Thanks,
jt
On 10/17/06, John Tsombakos tsom467@gmail.com wrote:
I just had it happen to me again. Tried to eject a network (AFP) volume and the Finder said it was locked.
lsof was showing that the file that was open was a .jar file that was on the volume. It must have been on a web page that I was editing and previewing.
Also, when I went to quit from TextMate, it crashed. I will send the crash log along to the support email address.
I can consistantly get it to hang onto the volume by previewing a page that contains a java applet. Here's the output from lsof:
TextMate 408 john txt VREG 44,6 17656 46217 /Volumes/wwwsps/RiadaHeadline.jar
On 18. Oct 2006, at 02:00, John Tsombakos wrote:
I can consistantly get it to hang onto the volume by previewing a page that contains a java applet. Here's the output from lsof:
Could you try open the page in Safari and see if Safari does the same? As this might be some WebKit caching.
i experience this too. i'm too usually dragging a folder onto the textmate-icon in the dock.
On 9/8/06, Niko Dittmann ni-di@web.de wrote:
i experience this too. i'm too usually dragging a folder onto the textmate-icon in the dock.
i as well and i almost always drag a file or folder to the application icon in the dock...
the next time i run into this, i will try clearing the recent items to see if that helps.
regards, jean-pierre