Sublime Forum

Bug Report: Serious Data Loss

#1

Hey guys, I was in the middle of editing a file when my computer (OSX 10.6.8) experienced a kernel panic. After restarting, the contents of the file I was editing had been permanently replaced by an incomplete session json object from Sublime Text 2 (build 2139). My code is totally gone, as I hadn’t committed it to my repo yet :frowning:

Here’s the json that wiped out my data

{
	"folder_history":
	
		"/var/www/site"
	],
	"last_window_id": 31,
	"settings":
	{
		"new_window_height": 752.0,
		"new_window_settings":
		{
			"auto_complete":
			{
				"selected_items":
				
					
						"html",
						"html: html"
					],
					
						"link",
						"link: link - stylesheet"
					],
					
						"form",
						"form: <form>"
					],
					
						"dl",
						"dl: <dl>"
					]
				]
			},
			"build_system": "",
			"command_palette":
			{
				"height": 71.0,
				"selected_items":
				
					
						"coffee",
						"Coffeescript: Convert selection to JS"
					],
					
						"status",
						"Git: Status"
					],
					
						"git",
						"Git: Blame"
					],
					
						"coffe",
						"Coffeescript: Convert selection to JS"
					],
					
						"coff",
						"Coffeescript: Convert selection to JS"
					],
					
						"install",
						"Package Control: Install Package"
					],
					
						"package",
						"Package Control: Upgrade Package"
					],
					
						"inst",
						"Package Control: Install Package"
					],
					
						"Package Control: ",
						"Package Control: Add Repository Channel"
					],
					
						"repo",
						"Package Control: Add Repository"
					],
					
						"diff",
						"Git: Diff Current File"
					],
					
						"blame",
						"Git: Blame"
					],
					
						"repos",
						"Package Control: Add Repository"
					],
					
						"pac",
						"Preferences: Package Control Settings – User"
					],
					
						"pacl",
						"Preferences: Package Control Settings – Default"
					],
					
						"ac",
						"Package Control: Install Package"
					],
					
						"pack",
						"Package Control: Disable Package"
					]
				],
				"width": 579.0
			},
			"console":
			{
				"height": 179.0
			},
			"distraction_free":
			{
				"menu_visible": true,
				"show_minimap": false,
				"show_open_files": false,
				"show_tabs": false,
				"side_bar_visible": false,
				"status_bar_visible": false
			},
			"file_history":
			
				"/private/var/www/site/main.coffee",
			
0 Likes

#2

PS I had two instances of Sublime Text open. The json that overwrote my code referred to the other open window that I was not working on currently. Also, the other open window had one unsaved change on a file.

0 Likes