Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspace is erased when HDD is out of storage #1559

Open
apclapp opened this issue Jan 4, 2017 · 0 comments
Open

Workspace is erased when HDD is out of storage #1559

apclapp opened this issue Jan 4, 2017 · 0 comments

Comments

@apclapp
Copy link

apclapp commented Jan 4, 2017

Summary

I have experienced an issue with Sublime where my projects become corrupted when I run out of disk space and close or switch projects. This is due to Sublime's project autosave functionality, which erases the .sublime-workspace file before attempting to save a new one (which it cannot due when there is no remaining disk space). This results in a corrupted Sublime project, where the .sublime-workspace file has been erased.

To be clear, I expect this is more of an issue on OS X, where there are some funny things that happen when the disk is running low on storage.

Expected behavior

Running out of disk space and closing sublime should not result in a corrupted workspace. If possible, Sublime should check for sufficient disk space before wiping the .sublime-project file.

Actual behavior

Running out of disk space and closing sublime (or switching projects) results in a zero-byte .sublime-workspace file, and a corrupted project/workspace.

Steps to reproduce

Have a project open in Sublime text, and let the system run out of disk space. Once disk space is exhausted, saving a file will result in an error saying there is space to save the file. That is expected, and is fine.

Attempt to close sublime, or change to another project. Upon doing so, Sublime will attempt to autosave the current project, but will report an error saying that there is not enough space on the disk to do so. (At this point, the .sublime-workspace file has been overwritten as zero-bytes)

Attempt to re-open the previous project, and sublime will report that the .sublime-workspace file is corrupted.

Environment

  • Operating system and version:
    Mac OS X 10.12

  • Sublime Text:

    • Build 3126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants