Skip to content

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

@cconversion

Description

@cconversion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions