condemil / gist

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

SBT 3: IndexError: list index out of range #106

Closed goliatone closed 7 years ago

goliatone commented 11 years ago

This is the output of Gist: Open Gist

Traceback (most recent call last):
  File "gist in /Users/goliatone/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 103, in _fn
  File "gist in /Users/goliatone/Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 629, in run
  File "/Applications/Sublime Text 3.app/Contents/MacOS/sublime.py", line 310, in show_quick_panel
    flat_items.append(items[i][j])
IndexError: list index out of range
error: Gist: unknown error (please, report a bug!)
thuandt commented 11 years ago

Same here, Ubuntu 13.04, ST3

schmic commented 11 years ago

Same issues, creating gists is working though. I'm behind a proxy.

Windows 7, 64bit, ST3

Just tried with the latest revision, problem exists there as well

schmic commented 11 years ago

Issue seems to be in line 588 of the current revision. gist_names = filtered[1] + list(map(lambda x: [u"> " + x[0]], filtered_stars[1]))

I have no idea what this line is for ... but it breaks as it just adds an array with one value but two are required (gist_description + gist_user)

schmic commented 11 years ago

the line above is just an issue when you have "show_authors" set to true, otherwise the format of the array will be ok

condemil commented 7 years ago

I checked show_authors feature and it properly showing the authors in the open list. In case you still have this you can reopen the issue.