Recovering ST3 files after iOS crash

Viewed 731

I am editing a project in Sublime Text 3 that included several text files.

When trying to save a file, ST3 gave me an error that said "Operation not Permitted" with some other information I can't remember.

I closed and reopened ST3, as most of the files that were open had been previously saved from the past 2 days.

When I reopened sublime text there were no cached files, and several of my files were deleted.

I assume they were overwritten as empty by sublime text and then saved as such when I restarted the program.

I use iTerm2 which had also crashed, and still throwing the error:

An error was encountered while creating a temporary file with mkstemps. Verify that /var/folders/09/bx70dwpj6xj2gzdcjh6clm240000gn/T/ exists and is writable.

I assume these are related issues but don't know how to recover or restore the files this crash deleted.

Any suggestions?

1 Answers

Just today I encountered the same error with iTerm2, which lead me to this post. I was also having a lot of other problems with other software, mostly related to being unable to save things.

After much searching for issues with similar problems, I solved this by rebooting my computer, holding command-R during startup, running Disk Utility, and repairing disk permissions.

Notably, repairing disk permissions without restarting and going into recovery mode was NOT successful in resolving my problem. I just got a lot of "Invalid Argument" errors when it tried to repair permissions when I wasn't in recovery mode.

Hope this helps someone in the future that runs into this strange situation.

Related