condemil / gist

Sublime Text plugin for creating new Gists from selected text
MIT License
725 stars 136 forks source link

Error when opening gist #43

Closed skuroda closed 12 years ago

skuroda commented 12 years ago

Simply trying to open a gist I created. Console error below.

Traceback (most recent call last):
  File ".\gist.py", line 140, in _fn
  File ".\gist.py", line 482, in handle_gist
  File ".\gist.py", line 220, in open_gist
UnboundLocalError: local variable 'language' referenced before assignment
error: Gist: unknown error (please, report a bug!)
michaelbarys commented 12 years ago

I have this same issue

chinghanho commented 12 years ago

+1

I have a gist with multiple files. I got the same error messages when I open the gist.

Megic commented 12 years ago

+1

skuroda commented 12 years ago

Believe this is a repeat of issue 42

@michaelbarys @chinghanho @Megic

I have created a branch with a fix (I think) for this in my fork of the repo, branch language_reference. Though, if you aren't opening gists very often, you may not need it. It's a pretty quick change, so you can look at the commit and just make the change locally if you would like.

condemil commented 12 years ago

Duplicate of issue 42

Thanks to @skuroda that sended pull request.