Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Sublime Text 2 crashing on startup

I've got a problem with Sublime Text 2 in that when I start it it automatically tries to load a file that leads it to crash.

I can see that there are ways of changing the settings once it's loaded - how do I fix it when it won't finish start-up?

I'm running on Mac OSX (Mavericks).

like image 466
elksie5000 Avatar asked Jan 03 '14 11:01

elksie5000


3 Answers

For Sublime 3

  • on Mac, Auto Save session exists in this path ~/Library/Application Support/Sublime Text 3/Local. Just go to this path delete all the files. Sublime will start working fresh.

  • On Linux, Auto Save session exists in /home/<USER>/.config/sublime-text-3/Local. Delete all the files you'll be good to go fresh.

  • On Windows the path is %APPDATA%\Sublime Text 3\Local

like image 174
kushdilip Avatar answered Nov 09 '22 06:11

kushdilip


You can try hunting around for the file causing the error. However, I'd recommend reverting your install (link) though rather than deleting, I'd just move it somewhere temporarily. Be sure to move your User folder out. After reverting, move the User folder back. If you used package control, it will grab all of the installed plugins again. If you didn't you will need to move those back manually. If it's a particular file that's causing issues (not a plugin) then you could also edit the Session file. It's a bit more involved but can be found in Application Support/Sublime Text 2/Settings.

If you could post the file causing the issue, we could probably tell you how to fix put it back into a working state. If it's a settings file, it might be as simple as malformed json. I'm unsure though as you didn't give much detail on the actual error.

like image 6
skuroda Avatar answered Nov 09 '22 06:11

skuroda


So, I deleted both the Session.sublime_session and the Auto Save Session.sublime_session in the Settings folder and that allowed me to get it to run and not crash on startup.

like image 6
R.A. Lucas Avatar answered Nov 09 '22 06:11

R.A. Lucas