Sublime Forum

Lost state after restarting; no files open and nothing in "Open Recent" menu

#1

Hello,

When I exit Sublime Text and start it again, or when my computer reboots, it doesn’t remember it’s previous state. It doesn’t open in the same location, and no files are opened automatically. The Open Recent… menu is empty.

Can you please tell me if I can do something to fix this?

I’m using Sublime Text Stable Channel, Build 4017 on MacOS Catalina 10.15.7. (It’s a company-controlled computer, and they’re not ready to upgrade to Big Sur yet.)

Thanks!

=> Darla

0 Likes

#2

Do your settings and other related things remain between restarts?

0 Likes

#3

I just tried changing the font size, and that setting did stay there. I exited and restarted Sublime Text and the font size was what I changed it to.

Good thing to check! Any other questions or ideas?

0 Likes

#4

The next thing that springs to mind is to check and see if you’ve added hot_exit to your preferences; it defaults to being turned on, and when it is Sublime should come back to the exact state it was in when you quit (including the files you had open being open, unsaved changes still being there, etc).

If you turned it off, that would explain why you don’t see any files open when you restart (though if you quit with files open, it will ask you if you want to save the contents).

That doesn’t explain there being nothing in the list of recent items, though it may be worth pointing out that the list of items in the menus in Sublime is (I think) only updated to include a file when you actually close it, not when you open it.

0 Likes

#5

More good ideas, yet sadly no joy… I did have hot_exit set, must have read that somewhere. But I removed it, and all other custom preferences.

I opened files, then closed them, and did see them in my Open Recent menu. But after exiting Sublime, and starting it again, the Open Recent menu is empty.

I wonder if there’s some file permission problem somewhere? Perhaps Sublime is failing to write some data when it exits?

Thanks for your help trying to track this down!

0 Likes

#6

Here’s something to check; when you first start Sublime, use View > Show Console to open up the Sublime Text console, and then scroll all the way up to the top. There will be some informational messages up there and then eventually it will go into a long list of reloading plugin xxxxx as the plugin host starts.

For all of the messages that appear from the start up until the plugins start reloading, are there any messages that display unusual looking file paths?

For example , you should see things like the executable being in /Applications or packages being in /User/yourname/Library ; if they’re not that they might look like some sort of temporary path of some sort, in which case maybe Translocation is biting you in the butt. If that’s the case, quitting Sublime, re-downloading it and using Finder to drag the executable into the Applications folder might solve the problem.

0 Likes

#7

Aha, success! Using the console showed me that Sublime was trying to write to ~/Library/Application Support/Sublime Text 3/Local, which it didn’t have permission to do (owned by root; only user-writable). I’ve modified the file permissions and it is working now.

Thank you so much! This has been annoying me for a long time… I’m very happy to have it working properly. :slight_smile:

=> Darla

1 Like