Skip to content
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

Themr Won't Forget Theme Settings #14

Open
bcrotty opened this issue Feb 3, 2016 · 11 comments
Open

Themr Won't Forget Theme Settings #14

bcrotty opened this issue Feb 3, 2016 · 11 comments

Comments

@bcrotty
Copy link

bcrotty commented Feb 3, 2016

I can't figure out how to reset Themr's watched theme settings. Whenever I remove a setting from Preferences.sublime-settings and then change the theme, the setting comes back. I tried using the themr_watch_settings flag, but it does not seem to change the behavior whether true or false.

@benweier
Copy link
Owner

benweier commented Feb 4, 2016

That's very interesting @bcrotty I'll look into it

@benweier
Copy link
Owner

benweier commented Feb 9, 2016

@bcrotty this should be fixed now. The issue was that I was loading the preferences file on package initialisation and it wasn't being updated when settings changed. I've also removed themr_watch_settings to simplified the logic a little and avoid confusion about what it does.

@bcrotty
Copy link
Author

bcrotty commented Feb 10, 2016

@benweier Should the changes be live? When I delete a line from my Preferences.sublime-settings and then change the theme, it still brings the line back. Package Control upgraded all the packages it knew about.

@benweier
Copy link
Owner

It can take some time for the change to be picked up. The Package Control page is showing the last modified time and I've just run a Package Control update and it has fetched the latest Themr and Schemr. Remember to restart Sublime to reinitialise the package too

@bcrotty
Copy link
Author

bcrotty commented Feb 10, 2016

It's still not working for me. I removed Themr, restarted Sublime, installed Themr. I have a bunch of settings in my user preferences, such as "material_theme_tabs_autowidth": false,. When I delete that line, save the file, and hit Ctrl+F8, the line comes back.

@bcrotty
Copy link
Author

bcrotty commented Feb 10, 2016

I can successfully remove a setting if I delete the line, save the user preferences file, and restart Sublime before I change the theme. But if I try to change the theme before I restart Sublime, it will put the user preferences back to what it was, either adding or removing content to get it back to what it was.

@benweier
Copy link
Owner

Thanks for your patience @bcrotty. I can't replicate this with Sublime Text 3 build 3102 on OS X El Capitan. Could you provide your ST version and OS?

@benweier benweier reopened this Feb 10, 2016
@bcrotty
Copy link
Author

bcrotty commented Feb 10, 2016

Thanks for Themr! ST3 Build 3103 on Windows 10 & Windows 8.1.

@benweier
Copy link
Owner

I'll try some testing on Windows today

@benweier
Copy link
Owner

I've spent some time trying different sequences of actions with ST 3 b3103 on Windows 10 to trigger the issue and I can't replicate it.

Could you look into one other thing for me. Open the ST console with ctrl+` and change the theme. You'll notice a line that says "reloading /C/Users/user/AppData/Roaming/Sublime Text 3/Packages/User/Prefences.sublime-settings"

Themr should only be performing a single modification to the Prefences.sublime-settings file so if you see that line multiple times it means another package is performing an update to your settings as well. It could be the cause of problem. Have you changed settings with another package to see if it's isolated to just Themr?

@bcrotty
Copy link
Author

bcrotty commented Feb 11, 2016

I disabled everything (including Package Control) except Themr and Theme - Soda, and it still happens. There is a single modification of Preferences.sublime-settings in the console.

My sequence of steps is:

  • Launch Sublime
  • Delete any line from Preferences.sublime-settings
  • Save Preferences.sublime-settings
  • Hit Ctrl+F8

At this point, Preferences.sublime-settings reloads back to what it was when I launched Sublime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants