New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout not saving on Sublime Text 3 quit #1907

Open
Westie opened this Issue Sep 14, 2017 · 6 comments

Comments

2 participants
@Westie

Westie commented Sep 14, 2017

Summary

When exiting Sublime Text 3, all layout information is not saved in the configuration. I cannot see any option to control this within the configuration, and is working as expected in ST2.

Expected behavior

The expected behaviour is to place the layout properties in ~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session

For reference, the expected JSON is this:

...

"layout":
{
	"cells":
	[
		[
			0,
			0,
			1,
			1
		],
		[
			1,
			0,
			2,
			1
		]
	],
	"cols":
	[
		0.0,
		0.5,
		1.0
	],
	"rows":
	[
		0.0,
		1.0
	]
},

...

Actual behavior

This isn't being saved in the above file

Steps to reproduce (Using Sublime Text 2)

  1. Start Sublime Text 2
  2. Create a two column layout
  3. Exit Sublime Text 2
  4. Copy ~/Library/Application Support/Sublime Text 2/Settings/Session.sublime_session over to ~/Library/Application Support/Sublime Text 3/Local/Session.sublime_session
  5. Start Sublime Text 3
  6. Enjoy having a two column layout in Sublime Text 3 (optional)
  7. Exit Sublime Text 3
  8. Re-start Sublime Text 3
  9. Cry as two column layout has not been saved

Steps to reproduce (Using Sublime Text 3 only)

  1. Start Sublime Text 3
  2. Create a two column layout
  3. Enjoy having a two column layout in Sublime Text 3 (optional)
  4. Exit Sublime Text 3
  5. Re-start Sublime Text 3
  6. Cry as two column layout has not been saved

Environment

  • Operating system and version:
    • Mac OS 10.11.6
  • Sublime Text:
    • Build 3143
@Westie

This comment has been minimized.

Westie commented Sep 14, 2017

I have checked on a fellow colleague's machine (same OS and build) and he's not experiencing this issue.

@Westie

This comment has been minimized.

Westie commented Sep 14, 2017

I have also fully removed the ~/Library/Application Support/Sublime Text 3 folder on my machine in an attempt to see whether or not it was my configuration that had caused an issue, but with clean configs the issue is still here.

@keith-hall

This comment has been minimized.

Contributor

keith-hall commented Sep 14, 2017

Weird - is it just the layout config that is not being saved? If you create a new tab and type something, and close and reopen ST, does it remember the contents of that tab?

@Westie

This comment has been minimized.

Westie commented Sep 14, 2017

You've made me think.

I've cleared Session.sublime_session, opened and did a search. Quit it, the search history was saved in the session file.

Re-loaded it, the search history was in there.

Playing about with what you suggested (open a file, leave it unsaved) saves the layout state correctly.

However, closing the tabs then closing the program seems to sometimes clear parts of the session history. Layout information gone, sometimes search information gone. I will write up more detailed notes as to how I've come across this in a couple of hours.

@Westie

This comment has been minimized.

Westie commented Oct 27, 2017

Still broken as of 'Build 3152'

@Westie

This comment has been minimized.

Westie commented Dec 7, 2017

Still broken as of 'Build 3156'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment