Reputation: 7752
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).
Upvotes: 14
Views: 11243
Reputation: 53
For subline text 2 on my Mac:
There is no directory named Local
under ~/Library/Application Support/Sublime Text 2/
, but there is strange hidden file .DS_Store
, I remove it and sublime text don't crash anymore!
$ rm .DS_Store
Upvotes: 0
Reputation: 7906
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
Upvotes: 35
Reputation: 76
Delete Session.sublime_session
from ~/Library/Application Support/Sublime Text 3/Local
.
rm ~/Library/Application\ Support/Sublime\ Text\ 3/Local/Session.sublime_session
Also:
Please don't delete all content in the ~/Library/Application Support/Sublime Text 3/Local
folder as this will also delete your Licence. @kushdilip (Tried to add this as a comment to your post but didn't have enough reputation to do so.)
Upvotes: 1
Reputation: 1161
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.
Upvotes: 6
Reputation: 19744
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.
Upvotes: 6
Reputation: 311
I would recommend using another text editor (such as using vim in the terminal) to view/edit the files in:
~/Library/Application Support/Sublime Text 2/Packages/Default/Preferences.sublime-settings
There are two other directories, but Default is probably where you want to start.
~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings
~/Library/Application Support/Sublime Text 2/Packages/Vintage/Preferences.sublime-settings
(Make a backup before changing any files around!)
Upvotes: 0