Skip to content
buymeasoda edited this page Dec 17, 2012 · 25 revisions

Troubleshooting

Theme Display Issues

When you change or update your theme, Sublime Text does its best to dynamically load and apply the new theme.

If during this process, Sublime Text has trouble cleanly reloading assets or updating the UI parameters to the new theme settings, you may see visual rendering artefacts where theme backgrounds are not redrawn or updated correctly via the dynamic reload mechanism.

After changing or updating a UI theme, a simple way to ensure the theme is applied properly, is to shut down and restart Sublime Text 2

Working out the problem

If that doesn't work, a good debugging technique is to open the Sublime console CTRL + ` when loading or changing a theme and look for any errors. If Sublime can't find assets related to the theme, or there is another theme related issue, you may see useful output in the console that helps resolve the issue.

Open the Sublime console with CTRL + ` and look for theme related asset loading errors

Examples of theme issues

Below are some common examples and troubleshooting steps if you are experiencing display problems when applying or updating a theme.

Entire Theme Displays Red

If you have copied the Soda Theme folder to the wrong location, the theme will not be able to load its assets and you will see red backgrounds for all components.

To fix this issue, make sure the theme is located inside the Sublime Text Packages directory with the correct folder name. You can find the Packages directory by using the menu item Preferences -> Browse Packages...

Broken theme

Some Components Display Red or Appear Distorted

During theme upgrades, if a theme asset has changed names or was moved (or removed), it is possible that Sublime Text's dynamic theme reloading may not pick up the change cleanly and consider the asset missing or unchanged.

In those cases, you will see red backgrounds for assets incorrectly interpreted as missing, or visually distorted components for theme assets that have changed, but not been cleanly reloaded by Sublime Text 2.

To correct this issue, you need to "force refresh" the theme. The simplest way to do that is to shut down Sublime Text and then restart it, which will work in most circumstances

Incorrectly declared theme

Check to make sure that you have used the "theme" property for activating the theme in your Sublime Text 2 -> Preferences -> Settings - User file (or other configuration files), and not accidentally used the incorrect "color_scheme" property.

Also ensure that you do not set your editors syntax highlighting colour scheme to use any of the themes internal colour scheme files. These files are referenced by the theme itself and should not be configured or referenced in your settings.

The following declaration (in this case, for Soda Light) is the correct way to configure the theme:

{
    "theme": "Soda Light.sublime-theme"
}

Other potential issues

Some users reporting rendering issues have found that there was an older copy of the theme either in their Packages/User folder or another location. Having this additional, older version was causing Sublime Text to load both theme copies and mix the rules together, causing odd visual results.

Check that there is only one copy of the theme files and that they are in the correct location