Skip to content

Sublime prevents ejecting USB drive even after closing file #2564

@woodrowbarlow

Description

@woodrowbarlow

Description

I posted on the forum and was asked to open an issue here.

If I open a file from a USB drive, edit it, save it, and close the file, I am unable to eject the USB drive until I close Sublime entirely.

Steps to reproduce

  1. Insert a USB drive with a text file on it.
  2. Open the text file in Sublime Text. Make a change and save the file.
  3. Close the text file, but keep Sublime Text open.

(My setup has a "project" unrelated to the files on the USB drive, so I do have a file tree in the sidebar but none of these files come from the USB drive.)

Expected behavior

I expect to be able to eject the USB drive.

Actual behavior

When I attempt to eject the USB drive, windows reports "USB Drive (D:) is currently in use" and refuses to eject. If I close Sublime entirely, the drive ejects without complaint.

Environment

  • Build: 3184 (Sublime Text 3 dev channel)
  • Windows 10 Enterprise (x64), version 1803, build 17134.407

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions