bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
456 stars 92 forks source link

Open publisc gist result in an unknow error #32

Closed davidadamsnippets closed 12 years ago

davidadamsnippets commented 12 years ago

After open an public gist in my sublime text2:

ctrl+shift+p => Gist: Open Gist

My gist can be open, but immediately, sublime text2 give me a popup error: Unknow error(please report a bug).

bgreenlee commented 12 years ago

If you hit ctrl-` to open up the console, does it give you any more information?

davidadamsnippets commented 12 years ago

Hi,

Yes, it is:

Package Control: No updated packages 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!)

Thanks!

On Wed, Oct 10, 2012 at 1:25 AM, Brad Greenlee notifications@github.comwrote:

If you hit ctrl-` to open up the console, does it give you any more information?

— Reply to this email directly or view it on GitHubhttps://github.com/bgreenlee/sublime-github/issues/32#issuecomment-9270432.

skuroda commented 12 years ago

@davidadamsnippets That's a problem with a different plugin, which can be found here. I made a pull request with a fix, which was closed and not merged =(. Anyways, its a pretty easy fix, though it involved you editing the code in gist.py. I explained what i did here (It's one of the later comments), or you can look at my branch.

@bgreenlee I like your plugin, especially as it already supports login via tokens. I've been going back and forth between yours and the gist plugin, seeing which one I like better. At this point, I think it is going to come down to support. Thanks for the great work!

bgreenlee commented 12 years ago

Thanks for the help and the feedback, @skuroda! Let me know if there's anything I can do to make it better.