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

Not working with 3176 ? #456

Open
axessweb opened this issue May 17, 2018 · 34 comments
Open

Not working with 3176 ? #456

axessweb opened this issue May 17, 2018 · 34 comments

Comments

@axessweb
Copy link

Hi,

On Windows... seems not working with ST3 (3176)

Any help ?

@axessweb
Copy link
Author

Ok..

image

Help me?

@indextwo
Copy link

Same. At first I thought I'd screwed up my syntax somewhere, but then checked other files & remembered that it was fine prior to the 3176 update.

It was suggested in #452 that it might be to do with the file_extensions setting, but mine looks fine:

"file_extensions": [".css", ".less", ".scss", ".sass", ".styl"],

That was from the Default profile. I added it to my User profile just to make sure and restarted ST, but no dice.

@crimerrsplay
Copy link

Same

@axessweb
Copy link
Author

@indextwo tested.. but not working

@Senses96
Copy link

Same problem here

@maenette
Copy link

Same: Windows 10 Home : Sublime build 3176.

@0speedy
Copy link

0speedy commented May 19, 2018

Same here, Windows 7 Pro x64, Sublime v 3176. I've spent good half an hour by changing settings, re-installing and other weird stuff.

May help that after installation there's not even a subfolder "Color Highlighter" in ""c:\Users<User>\AppData\Roaming\Sublime Text 3\Packages" where default settings (and who knows what else) should be.

@0speedy
Copy link

0speedy commented May 19, 2018

Working now!

Here's what I did:

  1. Open default settings for Color Highlighter: Preferences -> Package Settings -> Color Highlighter -> Settings - Default
  2. Copy content and save it anywhere for now, we'll need it later
  3. Create subfolder "Color Highlighter" in "c:\Users<User>\AppData\Roaming\Sublime Text 3\Packages"
  4. Copy there content of "c:\Users<User>\AppData\Roaming\Sublime Text 3\Packages\User\Color Highlighter"
  5. Copy file "c:\Users<User>\AppData\Roaming\Sublime Text 3\Packages\User\ColorHighlighter.sublime-settings" to "c:\Users<User>\AppData\Roaming\Sublime Text 3\Packages\Color Highlighter"
  6. Edit this new copied settings file and paste there content from step 2 (we just created missing default setting file)
  7. Open Preferences -> Package Settings -> Color Highlighter -> Settings - User and either delete all content or paste there the content from step 2 (it has the same result).
  8. Restart sublime just to be sure.

Looks like there were 2 issues: subfolder in Packages was not created on installation + user settings are somehow broken by default (settings.py was complaining about the value for "phantoms" on line 191).

Hope it will help you all!

@axessweb
Copy link
Author

No working for me.. :(

image

@indextwo
Copy link

@0speedy Unfortunately that doesn't work for me either. I'm not seeing stack traces of any errors, but I tried following the steps twice and it's made no difference.

@0speedy
Copy link

0speedy commented May 19, 2018

@indextwo Did you try re-installing the package before trying those steps? I also noticed that when I do certain changes to the settings using menu Tools -> Color Highlighter it stops working. So there's definitely some issue with user settings.

@indextwo
Copy link

@0speedy Uninstalled the package, reinstalled it, tried all the steps again, but nothing is happening. Confirmed all the steps, and my user settings file is currently empty. Tried it by copying across my Default settings and still nothing. Tried it with all the steps but didn't copy across my Defaults (just left them as is, as per the fresh install) and nothing.

@ltpquang
Copy link

ltpquang commented May 19, 2018

Same problem: OS X with ST3 3176, @0speedy's solution doesn't work for me :(

@0speedy
Copy link

0speedy commented May 20, 2018

I'm sorry to hear that guys. I guess it worked for me as I have new and almost clean ST3 installation without any packages. Try to make any change to user settings and watch Console to get any hints about what's going wrong.
@axessweb Looks like your issue is somehow connected to the theme/color scheme you're using. Did you try using one of the default ones?

@axessweb
Copy link
Author

@0speedy That's what I thought, but I use monokai by default. You.. what's your theme?

@0speedy
Copy link

0speedy commented May 22, 2018

@axessweb I'm using Afterglow color scheme with Default theme,

Btw you guys know that for some features (I think only the gutter icons) you need ImageMagick, right?

One more thing - do not change the settings from the menu Tools -> Color Highlighter, do it directly in user settings file.

@L-sixhang
Copy link

Same problem here +1

@JasperKloosterman
Copy link

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 283, in on_api_ready
m.plugin_loaded()
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/main.py", line 603, in plugin_loaded
debug = Settings(sublime.load_settings(COLOR_HIGHLIGHTER_SETTINGS_NAME)).debug
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/settings.py", line 32, in init
self.search_colors_in = _SearchColorsSettings(copy.deepcopy(settings.get("search_colors_in", {})))
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/settings.py", line 96, in init
self.all_content = _ColorSearcherSettings(settings.get("all_content", {}), "all_content")
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/settings.py", line 116, in init
self.color_highlighters = _ColorHighlighterSettings(settings.get("color_highlighters", {}))
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/settings.py", line 132, in init
self.phantoms = _PhantomsColorHighlighterSettings(settings.get("phantoms", {}))
File "/Users/jkloosterman/Library/Application Support/Sublime Text 3/Installed Packages/Color Highlighter.sublime-package/settings.py", line 191, in init
assert self.style in self.VALID_STYLES
AssertionError

Same here

@vact
Copy link

vact commented Jun 1, 2018

Same here

@benmarten
Copy link

benmarten commented Jun 9, 2018

+1, this plugin is broken with latest version

@Mystic-Ervo
Copy link

Mystic-Ervo commented Jun 19, 2018

Same here: ST3.1.1 (3176); Windows 10 Pro & Win2K8 R2 Enterprise

@codenigma1
Copy link

many plugin is not working with this latest version. like sidebar enhancement and build window (output).

@vinsonw
Copy link

vinsonw commented Aug 10, 2018

windows10 professional & ST3 3176 not working.

@maegul
Copy link

maegul commented Aug 15, 2018

@0speedy Your advice worked for me.

It appeared to be a problem with the package's behaviour of deleting settings files (due to major rewrite). Once settings files were in the rights places, the package kicked in and rewrote them, but in the appropriate format (apparently).

Interesting to note that the maintainer admits to not testing on Windows and Mac, so I bet the problem is OS specific (Unfortunate really - Windows and Mac are both the more popular OS for this package than Linus).

Some have suggested Color Highlight as an alternative to this package. For the latest build (3176), I also had a problem with it, and, it is much simpler in its functionality. So simple that I persevered to get this package working again. Would recommend - options for how to show colors are hard to go without.

@tim-ardan
Copy link

I have the same problem and I'm on Linux (Ubuntu 18.04) running ST3 (Build 3176).

@ejexxeffer
Copy link

So sad, i have the same problem. Without this plugin work in ST3 not so amazing.

@nhmarahoesin
Copy link

Same here, windows7 + ST3 3176 not working too

@Edgar-Cortez
Copy link

@maegul Thanks for the recommendation of another package you mentioned "Color Highlight". I installed this and "Color Picker" and I am now good to go.

I do really want to figure out how to get "Color Highlighter" working though just for learning purposes.

@cgtspl
Copy link

cgtspl commented Jan 19, 2019

Same here, windows10 + ST3 3176 not working too...

Where to next?

@indextwo
Copy link

Thanks to the tip from @EdgarCortez1 I switched to Color Highlight and it highlights all my hex colours in context and in the gutter in ST3.

It's pretty much the exact same thing, and since it doesn't look like ColorHighlighter is going to be updated anytime soon (this ticket has been open since last May), Color Highlight looks like a good bet.

@convexbytes
Copy link

Same problem here, windows 10, ST 3176

@dusted
Copy link

dusted commented Feb 19, 2019

This problem still exists, +1 OS X Yosemite 10.10.5

@murazi
Copy link

murazi commented Apr 2, 2019

win10+ST 3176 +1

@AmrSubZero
Copy link

AmrSubZero commented May 27, 2020

Same here, Windows10 1903 & ST v3.2.2 build 3211

Error:
Invalid Parameter - TrueColorMatte

Highlighting colors with gutter icons is not supported with current ImageMagick setup. Try configuring the "icon_factory setting"
Traceback (most recent call last):

  	File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 298, in on_api_ready
    plc()
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\main.py", line 606, in plugin_loaded
    ColorHighlighterPlugin.init()
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\main.py", line 319, in init
    ColorHighlighterPlugin._fake_color_scheme = ColorHighlighterPlugin.components.provide_fake_color_scheme()
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\main.py", line 197, in provide_fake_color_scheme
    return self.provide_fake_color_scheme_data()[0]
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\main.py", line 188, in provide_fake_color_scheme_data
    self._fake_color_scheme_data = parse_color_scheme(self.provide_color_scheme(), self._settings.debug)
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\color_scheme.py", line 40, in parse_color_scheme
    color_scheme_content = load_resource.load_resource(color_scheme)
  
	File "C:\Users\PC\AppData\Roaming\Sublime Text 3\Installed Packages\Color Highlighter.sublime-package\load_resource.py", line 30, in load_resource
    return sublime.load_resource(file_path)
  
	File "C:\Program Files\Sublime Text 3\sublime.py", line 192, in load_resource
    raise IOError("resource not found")

OSError: resource not found

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