condemil / gist

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

error on open gist #97

Closed leecade closed 11 years ago

leecade commented 11 years ago

Gist version: 2013.08.10.09.16.43

sublime version: build 3052

system env:

startup, version: 3052 osx x64 channel: dev
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Library/Application Support/Sublime Text 3/Packages
state path: /Library/Application Support/Sublime Text 3/Local
hardware concurrency: 4
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Library/Application Support/Sublime Text 3/Installed Packages

error log:

Traceback (most recent call last):
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 104, in _fn
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 577, in run
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 246, in get_gists
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 333, in api_request_native
  File "X/urllib/request.py", line 160, in urlopen
  File "X/urllib/request.py", line 473, in open
  File "X/urllib/request.py", line 491, in _open
  File "X/urllib/request.py", line 451, in _call_chain
  File "X/urllib/request.py", line 1287, in https_open
  File "X/urllib/request.py", line 1255, in do_open
urllib.error.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>
error: Gist: Error while contacting GitHub
Package Control: Error downloading channel. URL error [Errno 8] nodename nor servname provided, or not known downloading https://sublime.wbond.net/channel.json.
Package Control: Error downloading channel. URL error [Errno 8] nodename nor servname provided, or not known downloading https://sublime.wbond.net/channel.json.
error: Package Control
leecade commented 11 years ago

update:

Traceback (most recent call last):
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 104, in _fn
  File "gist in /Library/Application Support/Sublime Text 3/Installed Packages/Gist.sublime-package", line 630, in run
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 313, in show_quick_panel
    items_per_row, on_select, on_highlight, flags, selected_index)
TypeError: String required
error: Gist: unknown error (please, report a bug!)
condemil commented 11 years ago

@leecade you still facing this issue? If yes, try to completely remove Gist plugin

rm -r ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Gist
leecade commented 11 years ago

thanks @condemil :+1:

I tried again, and I found the error reason.

{
    "token": "........",
    // Show GitHub organizations
    "include_orgs": true,
    // "include_orgs": ["company1", "company2"],
    // ....
}

include_orgs can not be true :(