Sublime Forum

Data corruption: Unsaved files' content missing


Hi, not sure if it happend just now, but I have just noticed it.

I am installing new fonts and troubleshooting why they don’t work in VSCode, so I opened Sublime Text 3 and to my horror I found that all tabs are empty! :grimacing::scream:

Interestingly, the name of the tab still keeps the name after the first line of the previous text.

Please help me restore the files.



What version of Sublime Text are you using?



does ctrl+z help?



No, ctrl+z doesn’t help. And when I try writing in that tab, it will instantly change the title, subsequent ctrl+z doesn’t bring the previous title back, nor the content and it changes to “untitled”. Saving the file replaces the title with filename, so it is again lost and the file is empty.

Version 3.2.1, Build 3207.

I didn’t feel the need to update as I only use it as text editor instead of notepad.exe these days, to store my notes, especially for its capability to:

  • remember text after a sudden system crash
  • tab support
  • advanced editor capabilities
  • speed

But this doesn’t change the fact that something has corrupted the data and I am seeking a way to resolve this.

Where are the working unsaved files stored? Is there possibly a backup of this temporary storage file?



For ST 4, unsaved buffer is stored in the session file. I would guess this is the same for ST 3. You can find the session file at %AppData%\Sublime Text\Local\Session.sublime_session. If the file doesn’t contains what you want, then :bomb:

It seems not that URGENT since you reply after 13 days :upside_down_face:



There may be some backup session files as well which could be worth looking at. Do note that ST4 has a number of fixed and improvements related to data retention.



@bschaaf Thanks for pointing that out.

@jfcherng Time flows differently for me, but believe me, this still feels urgent for me. I looked in the folder, I found the .sublime_session files, but the content was not there. Here is an example

					"contents": "",
						"buffer_size": 0,
						"line_ending": "Windows",
						"name": "[...$0.querySelectorAll('a')].map(a => {"
							"buffer": 12,
							"semi_transient": false,
								"buffer_size": 0,
									"auto_name": "[...$0.querySelectorAll('a')].map(a => {",
									"default_dir": "C:\\Users\\Qwerty\\Downloads\\x",
									"syntax": "Packages/Text/Plain text.tmLanguage"
								"translation.x": 0.0,
								"translation.y": 0.0,
								"zoom_level": 1.0
							"stack_index": 2,
							"type": "text"

That Downloads\x folder doesn’t exist.

I tried to look through all other directories, but nothing tangible. Seems I am out of luck. Welp :dizzy_face:

Maybe I will start actually saving those files. damn

I wonder, can ST3 be configured to store session backups?



Nope. If you don’t want to update to ST4 the two high-profile data-loss bugs to avoid are:

  • Closing ST before it’s loaded all unsaved files from the session (ie. a few seconds after starting)
  • Closing ST with the update dialog open


That’s too bad. I have a licence for ST3 and for what I am using it - a notepad replacement, its more than enough. Too bad I have to pay for a ST4 licence to get a solution for a bug in the version I paid for.

This makes me really sad.



Unfortunately we can’t keep fixing bugs in old versions of ST in perpetuity.