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

Syntax for Fix Current Colour Scheme, XML to JSON #122

Open
cconversion opened this issue Feb 25, 2019 · 0 comments
Open

Syntax for Fix Current Colour Scheme, XML to JSON #122

cconversion opened this issue Feb 25, 2019 · 0 comments

Comments

@cconversion
Copy link

cconversion commented Feb 25, 2019

The README.md instructs To manually update a color scheme, open the Command Palette and select GutterColor: Fix Current Color Scheme. Alternatively, the plugin can run this process automatically via the setting fix_color_schemes.

  1. ST3 + GutterColor installed and working correctly.
  2. Run GutterColor: Fix Current Color Scheme from ST3 Command Palette
  3. ST3 custom colour scheme corrupts. Inverted Error scheme and error dialog windows appear.

Solution

  1. Found that GutterColor is editing Preferences: Package Settings > Color Sheme...
  2. Found ~/.config/sublime-text-3/Packages/Gutter Color/$CustomJSON.gcfix.sublime-color-scheme was the override file GutterColor was using.
  3. Found GutterColor writes updates to scheme in wrong syntax.

ST3 Colour Scheme are in JSON, common practice.

For Example

This old ST scheme key still generated by GutterColor for ST3

<dict>
		<key>name</key>
		<string>GutterColor</string>
		<key>scope</key>
		<string>gutter_color</string>
		<key>settings</key>
		<dict>
			<key>foreground</key>
			<string>#ffffff</string>
		</dict>
	</dict>

Should be:

    {
        "foreground": "#ffffff",
        "name": "GutterColor",
        "scope": "gutter_color"
    },

Other Troubleshooting

Saw other issues recommend fixes #80 etc. Was not a fix, only useful if persisting after the first fix there is strange Colour Icons filled Red&Green in a glitchy-looking fallback.

  1. Restart Ubuntu. If that doesn't work, then
  2. Reinstall ImageMagick following standard instruction
  3. Set the convert_path in Preferences: Package Settings > GutterColor > Settings – User to the location of the ImageMagick convert script: "/usr/local/bin/convert". Verify contents of directory do contain|link "/usr/local/bin/convert".
  4. Restart ST3

Please consolidate Issues on this... way too many with dead-ends exisiting in other issues.

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

1 participant