Monnoroch / ColorHighlighter

ColorHighlighter - is a plugin for the Sublime text 2 and 3, which underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color. Also, plugin adds color picker to easily modify colors. Documentation: https://monnoroch.github.io/ColorHighlighter.
https://sublime.wbond.net/packages/Color%20Highlighter
1.31k stars 130 forks source link

Uninstallation renders color schemes broken #453

Open tofof opened 6 years ago

tofof commented 6 years ago

Uninstallation leaves all color schemes (selectable from Preferences->Color Schemes) set to the copy within Packages/User/Color Highlighter/Themes. Themes that hadn't been used and have no local copy are simply broken afterward, and if this leftover directory is removed the current theme breaks as well.

Selecting a scheme via the menu afterward gives the error:

Error loading color scheme Packages/User/Color Highlighter/themes/Mariana.tmTheme: Unable to open Packages/User/Color Highlighter/themes/Mariana.tmTheme

RiseOoi commented 5 years ago

Yes.

Monnoroch, please stop messing with color schemes.

dustinbolton commented 4 years ago

How do you fix this?

ngocphamm commented 3 years ago

For anyone having this bs in the future, this is how to fix it.

  1. Close Sublime Text
  2. Go to ~/Library/Application Support/Sublime Text 3/Local folder
  3. Edit the file Session.sublime_session in another editor.
  4. Find the line "color_scheme": "Packages/User/Color Highlighter/themes/<your_theme>",
  5. Replace the value with whatever should be in your Settings's color_scheme. Mine is "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme" (and it was messed by this plugin to become "Packages/User/Color Highlighter/themes/base16-ocean.tmTheme" as in step 4 above)
  6. Re-open Sublime Text. It should be fine now.
reizen-desu commented 3 years ago

@ngocphamm Thanks. Worked like a charm.