Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error loading colour scheme in Sublime Text 3

Tags:

sublimetext3

Menu > Sublime Text > Preferences > Settings - User> remove the line with `"color_scheme"`.

After saving the line was regenerated for me with a reference to a theme that actually exists.


You need to put the theme file inside Packages\Color Scheme - Default.sublime-package.

Open Color Scheme - Default.sublime-package with 7 zip (archive tool-you may use your favorite tool), and drag Monokai Gray.tmTheme into it. Then go to Sublime, and click Preferences -> Color Scheme and find Monokai Gray. When you choose the color scheme, it automatically updates the setting with this:

"color_scheme": "Packages/Color Scheme - Default/MonoKai Gray.tmTheme",

Note: I am using Sublime 3. I am not able to share my screen shot due to lack of reputation.


Sometimes, a couple of opened files ignores color schemes settings modifications, I had the same bug then ran this in the ST3 console :

[ v.settings().erase("color_scheme") for views in [ w.views() for w in sublime.windows() ] for v in views ]

This python code is pretty self explanatory.

With this, no need to close/re-open incriminated files for the bugs to go away.

Source


This happened to me after installing Compare Side-By-Side. The error message specified that SBSCompareTheme.theme could not be found. I don't remember the exact sequence of events, but I remember that at some point, I uninstalled the plugin, and the error message kept appearing.

It turns out that the theme file was referenced in the Local/Session.sublime_session file (~/Application Support/Sublime Text 3/Local/Session.sublime_session under OSX).

I edited that file by hand to remove any reference to the theme file, and the problem went away!


I am using Sublime Text 3. I remove ColorHighlighter and it works.


This happens to me every now and then when my theme in use is being updated via Package Control. Try switching to a different theme, optionally remove and re-install Monokai Gray, then switch back to it.


I was having a similar issue with certain files/syntaxes after deleting a package (MarkdownEditing).

My issue was that some packages creates a syntax-specific *.sublime-settings file (Markdown.sublime-settings in my case). The file is location in Library/Application Support/Sublime Text 3/Packages/User.

This settings-file overwrites your color-scheme settings elsewhere. Removing it solved the issue.