Home Download Buy Blog Forum Support

A handle to the directory.

A handle to the directory.

Postby 0x7 on Thu Apr 05, 2012 6:17 am

Hello,

I faced a problem when the program does not close the directory handle after closing the file. It is severely hampered when a user tries to rename or delete the directory.
For example:
1. Open the file c:\temp\example.txt in Sublime Text.
2. Close the tab of the file.
3. Observe a list of handles in Process Explorer (http://technet.microsoft.com/en-us/sysi ... s/bb896653).
As result the directory c:\temp is still opened and user cannot delete it.

I would be very grateful to you if you fix this bug.

OS: Windows XP SP3.
Build of the app: 2181.

P.S.
Please, move this topic if I posted it to wrong forum.
0x7
 
Posts: 1
Joined: Thu Apr 05, 2012 5:39 am

Re: A handle to the directory.

Postby bizoo on Thu Apr 05, 2012 6:36 am

Just tried it on Windows 7 and it work as expected, I never see any handle on this directory or this file.

startup, version: 2192 windows x64 channel: nightly
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: A handle to the directory.

Postby Thorbear on Fri Jun 22, 2012 7:15 pm

bizoo wrote:Just tried it on Windows 7 and it work as expected, I never see any handle on this directory or this file.

startup, version: 2192 windows x64 channel: nightly

So this is fixed for future versions?

Anyway I'd just like to bump this after spending an hour figuring out how to delete the empty folder sitting at my desktop.
Apparently I opened a file in that folder at some point, and haven't closed Sublime Text 2 since (why would I?).

OS: Windows 7 Pro x64
Build: 2181
Thorbear
 
Posts: 1
Joined: Fri Jun 22, 2012 7:11 pm

Re: A handle to the directory.

Postby Grant on Fri Sep 14, 2012 1:59 pm

I see the issue as well and have since I began using ST2 prior to its official 2.0 launch. It's like there's a lock on the folder somehow.

I've seen cases where I've worked on a file in a directory, closed the file, then attempted to delete the directory from Windows explorer and get an error. As soon as I exit Sublime Text I can watch as the folder magically disappears.

It is very frustrating when building software that writes log files into directories which then get deleted on the next rebuild.

OS: Windows 7 Pro x64
Nightly Channel, Build: 2218
Grant
 
Posts: 68
Joined: Fri Jan 20, 2012 2:42 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 11 guests