ggordan / GutterColor

A Sublime Text 3 plugin which displays a colour in the gutter if the line contains a colour.
MIT License
486 stars 44 forks source link

use_transparency False causes error #109

Open AndreasBackx opened 7 years ago

AndreasBackx commented 7 years ago

I'm getting the following errors with use_transparency set to false.

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 530, in on_activated_async
    callback.on_activated_async(v)
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/gutter_color.py", line 42, in on_activated_async
    File(view)
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/file.py", line 12, in __init__
    self.scan()
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/file.py", line 26, in scan
    line.add_region()
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/line.py", line 272, in add_region
    self.create_icon()
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/line.py", line 325, in create_icon
    (use_transparency, background_path) = self.transparency_settings()
  File "/Users/Andreas/Library/Application Support/Sublime Text 3/Packages/Gutter Color/line.py", line 297, in transparency_settings
    return (use_transparency, background_path)
UnboundLocalError: local variable 'background_path' referenced before assignment