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

st3 switches to default theme upon launch #11

Closed
montchr opened this issue Dec 5, 2014 · 7 comments
Closed

st3 switches to default theme upon launch #11

montchr opened this issue Dec 5, 2014 · 7 comments

Comments

@montchr
Copy link

montchr commented Dec 5, 2014

Every time I launch ST3 after a day or so, it loads Default.sublime-theme instead of the one I've previously selected in Themr.

@benweier
Copy link
Owner

benweier commented Dec 5, 2014

Hm, that's kind of odd. I'll need more info before I can debug this issue.

What version of Sublime Text are you using?
What operating system are you on?
Are you using an up to date Themr?
Which theme are you selecting?
Does it happen only after launching Sublime or also if you leave it open?

@montchr
Copy link
Author

montchr commented Dec 5, 2014

What version of Sublime Text are you using?

Stable Channel, Build 3065

What operating system are you on?

Mac OS X 10.10.1

Are you using an up to date Themr?

I installed via Package Control a few weeks ago, so it should be up to date. v2014.12.01.00.16.19

Which theme are you selecting?

Spacegray – Light and sometimes regular Spacegray.

Does it happen only after launching Sublime or also if you leave it open?

Only when launching. It's been open today since I opened this issue and I haven't seen a problem.

@benweier
Copy link
Owner

benweier commented Dec 5, 2014

That's even more odd. I've been using the exact same set up for a while with no problems. This is likely to be from the changed settings event so short term solution I'll add an option to let you disable it.

@montchr
Copy link
Author

montchr commented Dec 8, 2014

I have a feeling it has something to do with a plugin that reloads the Preferences file periodically, but I'm not sure which plugin is doing this.

If it helps, my console log is below. The most relevant stuff is at the bottom.

launching: /opt/homebrew-cask/Caskroom/sublime-text3/Build 3059/Sublime Text.app/Contents/MacOS/plugin_host
loaded 1329 snippets
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin AdvancedNewFile.AdvancedNewFile
reloading plugin Alignment.Alignment
reloading plugin AutoWrap.autowrap
reloading plugin Better CoffeeScript.CoffeeScript
reloading plugin BracketHighlighter.bh_core
reloading plugin BracketHighlighter.bh_logging
reloading plugin BracketHighlighter.bh_plugin
reloading plugin BracketHighlighter.bh_regions
reloading plugin BracketHighlighter.bh_remove
reloading plugin BracketHighlighter.bh_rules
reloading plugin BracketHighlighter.bh_search
reloading plugin BracketHighlighter.bh_swapping
reloading plugin BracketHighlighter.bh_wrapping
reloading plugin BracketHighlighter.ure
reloading plugin CSS Color Converter.colorconvert
reloading plugin DashDoc.DashDoc
reloading plugin DocBlockr.__init__
reloading plugin DocBlockr.jsdocs
reloading plugin EditorConfig.EditorConfig
reloading plugin Emmet.emmet-plugin
reloading plugin FindKeyConflicts.find_key_conflicts
reloading plugin Git.add
reloading plugin Git.annotate
reloading plugin Git.commit
reloading plugin Git.diff
reloading plugin Git.flow
reloading plugin Git.git
reloading plugin Git.history
reloading plugin Git.repo
reloading plugin Git.stash
reloading plugin Git.status
reloading plugin Git.statusbar
reloading plugin JSONLint.JSONLint
reloading plugin LESS.less_completions
reloading plugin LineEndings.LineEndings
reloading plugin MarkdownEditing.bootstrap
reloading plugin MarkdownEditing.custom_find_under_expand
reloading plugin MarkdownEditing.distraction_free_mode
reloading plugin MarkdownEditing.footnotes
reloading plugin MarkdownEditing.gather_missing_links
reloading plugin MarkdownEditing.indent_list_item
reloading plugin MarkdownEditing.insert_references
reloading plugin MarkdownEditing.jumpToMarker
reloading plugin MarkdownEditing.list_markdown_references
reloading plugin MarkdownEditing.numbered_list
reloading plugin MarkdownEditing.paste_as_link
reloading plugin MarkdownEditing.paste_as_reference
reloading plugin MarkdownEditing.quote_indenting
reloading plugin MarkdownEditing.underlined_headers
reloading plugin Marked App Menu.marked
reloading plugin Modific.Modific
reloading plugin Package Control.Package Control
reloading plugin Pretty JSON.PrettyJson
reloading plugin Schemr.schemr
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin SublimeLinter-coffeelint.linter
SublimeLinter: coffeelint linter loaded 
reloading plugin SublimeLinter-jshint.linter
SublimeLinter: jshint linter loaded 
reloading plugin SublimeLinter-php.linter
SublimeLinter: php linter loaded 
reloading plugin SublimeLinter-shellcheck.linter
SublimeLinter: shellcheck linter loaded 
reloading plugin Tag.Edit
reloading plugin Tag.Tag
reloading plugin Tag.tag_close_tag
reloading plugin Tag.tag_close_tag_on_slash
reloading plugin Tag.tag_indent
reloading plugin Tag.tag_insert_as_tag
reloading plugin Tag.tag_lint
reloading plugin Tag.tag_remove
reloading plugin Tag.tag_remove_attributes
reloading plugin Themr.themr
reloading plugin TrailingSpaces.trailing_spaces
reloading plugin Wrap Plus.wrap_plus
reloading plugin PlainTasks.PlainTasks
reloading plugin SFTP.SFTP
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
reloading plugin Terminal.Terminal
plugins loaded
schemr ready
SublimeLinter: debug mode: off 
found 28 files for base name Main.sublime-menu
PyV8: Creating new thread
Emmet: Creating thread
Emmet: Loading https://api.github.com/repos/emmetio/pyv8-binaries/contents
Emmet: You have the most recent PyV8 binary
Package Control: Installing 6 upgrades
ignored packages updated to: [SublimeCodeIntel, Dayle Rees Color Schemes, Vintage, Markdown, AutoWrap, DocBlockr, Git, SublimeLinter, Tag, Theme - Spacegray]
unloading plugin AutoWrap.autowrap
found 24 files for base name Main.sublime-menu
unloading plugin DocBlockr.__init__
reloading Packages/DocBlockr/Base File.sublime-settings
unloading plugin DocBlockr.jsdocs
generating syntax summary
found 23 files for base name Default.sublime-keymap
found 24 files for base name Main.sublime-menu
unloading plugin Git.add
unloading plugin Git.annotate
unloading plugin Git.commit
unloading plugin Git.diff
unloading plugin Git.flow
reloading Packages/Git/Git Commit Message.sublime-settings
unloading plugin Git.git
unloading plugin Git.history
unloading plugin Git.repo
unloading plugin Git.stash
unloading plugin Git.status
unloading plugin Git.statusbar
generating meta info summary
found 23 files for base name Default.sublime-keymap
found 24 files for base name Main.sublime-menu
unloading plugin Tag.Edit
reloading Packages/Tag/Tag Package.sublime-settings
unloading plugin Tag.Tag
unloading plugin Tag.tag_close_tag
unloading plugin Tag.tag_close_tag_on_slash
unloading plugin Tag.tag_indent
unloading plugin Tag.tag_insert_as_tag
unloading plugin Tag.tag_lint
unloading plugin Tag.tag_remove
unloading plugin Tag.tag_remove_attributes
found 23 files for base name Default.sublime-keymap
found 24 files for base name Main.sublime-menu
found 1 files for base name Spacegray Light.sublime-theme
unloading plugin SublimeLinter.commands
unloading plugin SublimeLinter.sublimelinter
reloading Packages/SublimeLinter/SublimeLinter.sublime-settings
found 1 files for base name Spacegray Light.sublime-theme
reloading Packages/Theme - Spacegray/Spacegray/Widget - Spacegray Light.sublime-settings
generating syntax summary
found 22 files for base name Default.sublime-keymap
found 23 files for base name Main.sublime-menu
theme loaded
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 0 files for base name Spacegray Light.sublime-theme
theme loaded
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Package Control: Upgraded AutoWrap to v1.1.2
ignored packages updated to: [Markdown, Theme - Spacegray, Dayle Rees Color Schemes, DocBlockr, Tag, SublimeCodeIntel, Git, Vintage, SublimeLinter]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Package Control.sublime-settings
reloading plugin AutoWrap.autowrap
found 24 files for base name Main.sublime-menu
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Package Control: Upgraded DocBlockr to v2.12.3
ignored packages updated to: [Markdown, Theme - Spacegray, Dayle Rees Color Schemes, Tag, SublimeCodeIntel, Git, Vintage, SublimeLinter]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Package Control.sublime-settings
reloading plugin DocBlockr.__init__
reloading Packages/DocBlockr/Base File.sublime-settings
reloading plugin DocBlockr.jsdocs
found 24 files for base name Default.sublime-keymap
found 25 files for base name Main.sublime-menu
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Package Control: Upgraded Git to v2014.12.05.22.57.51
ignored packages updated to: [Theme - Spacegray, Dayle Rees Color Schemes, Tag, SublimeCodeIntel, Markdown, Vintage, SublimeLinter]
found 1 files for base name Default.sublime-theme
reloading plugin Git.add
reloading plugin Git.annotate
reloading plugin Git.commit
reloading plugin Git.diff
reloading plugin Git.flow
reloading Packages/Git/Git Commit Message.sublime-settings
reloading plugin Git.git
reloading plugin Git.history
reloading plugin Git.repo
reloading plugin Git.stash
reloading plugin Git.status
reloading plugin Git.statusbar
generating syntax summary
generating meta info summary
found 25 files for base name Default.sublime-keymap
found 26 files for base name Main.sublime-menu
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
Package Control: Upgraded SublimeLinter to v3.4.24
ignored packages updated to: [Markdown, Theme - Spacegray, Dayle Rees Color Schemes, Tag, SublimeCodeIntel, Vintage]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Package Control.sublime-settings
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
SublimeLinter: debug mode: off 
reloading Packages/SublimeLinter/SublimeLinter.sublime-settings
found 26 files for base name Default.sublime-keymap
theme loaded
SublimeLinter: daemon detected a reload 
generating syntax summary
generating syntax summary
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
indexing [queue 8]: no files were indexed out of the 543 queued, abandoning crawl
found 27 files for base name Main.sublime-menu
indexing [queue 9]: no files were indexed out of the 1776 queued, abandoning crawl
Package Control: Upgraded Tag to v2014.12.05.09.13.23
ignored packages updated to: [Markdown, Theme - Spacegray, Vintage, SublimeCodeIntel, Dayle Rees Color Schemes]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Package Control.sublime-settings
reloading plugin Tag.Edit
reloading Packages/Tag/Tag Package.sublime-settings
reloading plugin Tag.Tag
reloading plugin Tag.tag_classes
reloading plugin Tag.tag_close_tag
reloading plugin Tag.tag_close_tag_on_slash
reloading plugin Tag.tag_indent
reloading plugin Tag.tag_insert_as_tag
reloading plugin Tag.tag_lint
reloading plugin Tag.tag_remove
reloading plugin Tag.tag_remove_attributes
found 30 files for base name Default.sublime-keymap
found 28 files for base name Main.sublime-menu
theme loaded
Package Control: Upgraded Theme - Spacegray to latest git commit
ignored packages updated to: [Markdown, Vintage, SublimeCodeIntel, Dayle Rees Color Schemes]
found 1 files for base name Default.sublime-theme
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded
reloading Packages/Theme - Spacegray/Spacegray/Widget - Spacegray Light.sublime-settings
theme loaded
reloading Packages/User/Preferences.sublime-settings
found 1 files for base name Default.sublime-theme
theme loaded

@kelchm
Copy link

kelchm commented Dec 10, 2014

I've noticed this happening after the theme that I'm using is updated. Not sure if this is an issue with ST itself, Package Control or Themr.

@benweier
Copy link
Owner

@montchr I can't nail down where the issue is occurring. Your plugin list doesn't appear to be loading anything particularly odd, although I've tested Themr against the plugins I haven't used before - Auto Wrap, Markdown, Modific, Wrap Plus, a couple others.

I did notice that Spacegray is among your list of plugins that were updated and this also answers @kelchm comment. Themr includes a feature that resets the theme setting to default when it detects that the theme is invalid - either through a bad filename or if the theme is disabled. This feature runs at launch and when the settings file is changed.

Your issue reports that this happens every time you launch Sublime so I was working with the assumption that it may be another plugin altering the theme setting for some reason and Themr is detecting that and resetting the theme. If it's only happening when your theme is being updated then Themr is working as intended but I will add an option to disable this feature.

@benweier
Copy link
Owner

You may now add "themr_watch_settings": false to your preferences to disable the theme reset function.

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

3 participants