material-theme / vsc-material-theme

Material Theme, the most epic theme for Visual Studio Code
https://www.material-theme.dev
Other
11.21k stars 787 forks source link

Material Theme forces re-start due to constant updating #234

Closed denisinla closed 9 years ago

denisinla commented 9 years ago

Theres currently a glitch with the theme updating upon launch requiring a reset after a short dialog telling you to restart for Material Theme changes to reflect.

equinusocio commented 9 years ago

After every theme install you have to restart sublime.

denisinla commented 9 years ago

@equinusocio Initial theme install yes, but subsequently not(apologies if I wasn't clear).

It seems for me each time I open a new ST3 instance I am greeted with Material Theme resetting to Monokai because of a new update. This would make sense if you were updating it every minute.

Perhaps there might be a glitch with Package Manager auto-updating each time I quit ST3?

I will investigate this more when I get a chance.

wldcordeiro commented 9 years ago

@denisinla This is common to any theme getting updates. I've had it occur with Seti and Soda themes this issue isn't a material-theme issue but possible a Sublime Text or Package Control issue.

sasindumendis commented 9 years ago

Ok it doesn't happen every single time you open ST3, but currently it happens quite frequently as @equinusocio constantly push new updates to the theme :smile:. Since the theme is still relatively new this is usual, but as it get stable this will slow down. We should be thankful to this guy for his efforts to give us all a super awesome theme :+1:.

leongaban commented 9 years ago

I've noticed that I have to re-add "theme": "Material-Theme.sublime-theme", everytime I open Sublime text the next day. Are updates that frequent that it forces us to do that?

equinusocio commented 9 years ago

You have to restart sublime text after every update. Know your editor.. :+1:

wldcordeiro commented 9 years ago

@leongaban get the plugin themr you can then do ctrl+shift+p and run the list themes command and select Material from there.

leongaban commented 9 years ago

@wldcordeiro ok I just installed it and set the user settings to below, will this prevent my Sublime from breaking themes every morning?

{
    "theme": "Material-Theme.sublime-theme",
    "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme"
}
wldcordeiro commented 9 years ago

@leongaban Whenever a theme updates it's likely to break. It'll just make it easier to change your theme back. Besides you just restart Sublime and all is well.

sasindumendis commented 9 years ago

Is it really too much work to just restart the editor? In fact you don't have to restart it immediately, soon as the updating process is completed you will see a dialog prompt from Package Control letting you know it has been completed, just click 'OK' button and theme will be almost restored so you can continue coding, of course with few minimal UI glitches which really don't affect your workflow at all.

denisinla commented 9 years ago

@sasindumendis It actually doesn't do that upon updating the Material Theme, it completely reverts it back to the default Monokai. You're forced to restart ST3 completely since you can't just type the theme name back into the user preferences.

This might just be an issue with Package Control and its preferences when updating themes.

equinusocio commented 9 years ago

@sasindumendis When revert to monokai you have to wait until update is finished.

denisinla commented 9 years ago

@equinusocio No worries, Atom updated, going to try it out for a week. The never-ending love/hate relationship between ST3 and Atom.

leongaban commented 9 years ago

This is my problem however, every time I open Sublime Text the next day, it reverts back to the old sublime theme. I quit and restart and it's still the same, I have to manually go find this Github repo, copy the Materialize theme line and paste it into the preferences :( I feel like I have to keep Sublime Text open all the time, which isn't too bad a hack

wldcordeiro commented 9 years ago

@leongaban that's just weird and doesn't make much sense. I would report it to the Sublime Text development team though.

bbokac commented 8 years ago

Hey guys and girls. Here one solution that works for sure and I will share to all. Linux OS works but I wan't to hear others from other OS to confirm that works. And if all OS works then @equinusocio you can close all this and put solution in readme. Find that file Preferences.sublime-settings (~/.config/sublime-text-3/Packages/User for Linux users) and just take away write permission that is it. Be honest you are not changing that file every day so giving just read permission and take away write permission will not harm you. When you want to make changes you will give temporary write permission till you done and you are done. Next time theme update you will be asked to restart you will restart and that is it, life goes on. No more re adjustment in user configuration file on each update. @equinusocio keep good work! Thanks for the awesome theme and that you keeping up to date.

Revod commented 8 years ago

@bbokac I made that change on Windows 10, hope to see a Material theme update soon and test if that work on Windows too, and I think that solution work on OS X because is similar

tenzincode commented 7 years ago

the problem for me is slightly difference. everyday, sublime updates and reverts back to "theme": "Default.sublime-theme" ... i have to manually change it back to Material theme everyday. restarting sublime does not set the theme back to Material theme.

Revod commented 7 years ago

I don't have anymore the problem because I'm on macOS but you could try changing the permission to your setting file after you configured to read-only and done

tenzincode commented 7 years ago

my preferences.sublime-settings file already has full read/write permissions for all users