jaxbot / github-issues.vim

Github issue lookup in Vim
http://jaxbot.me/articles/github-issues-vim-plugin-5-7-2014
Other
405 stars 28 forks source link

Python error when trying to get issues assigned to me #155

Closed mhartington closed 6 years ago

mhartington commented 8 years ago

When running :Gissues and trying to get only the issue assigned to myself, I get this python error in neovim

Error detected while processing function <SNR>42_showIssue..provider#python#Call:
line   18:
TypeError("'NoneType' object has no attribute '__getitem__'",)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/neovim/msgpack_rpc/session.py", line 177, in handler
    rv = self._request_cb(name, args)
  File "/usr/local/lib/python2.7/site-packages/neovim/api/common.py", line 237, in filter_request_cb
    walk(self._in, args, self, name, 'request'))
  File "/usr/local/lib/python2.7/site-packages/neovim/plugin/host.py", line 65, in _on_request
    rv = handler(*args)
  File "/usr/local/Cellar/neovim/0.1.0/share/nvim/runtime/autoload/provider/script_host.py", line 76, in python_execute
    exec(script, self.module.__dict__)
  File "<string>", line 1, in <module>
TypeError: 'NoneType' object has no attribute '__getitem__'
wsdjeg commented 8 years ago

same issue in vim 7.4

cj commented 8 years ago

I'm having this same issue.

jaxbot commented 8 years ago

Hi everyone! I hear you, definitely just needs some work handling either an API change or a botched patch. Unfortunately I'm swamped with school right now, but I'll make a note to look at it this weekend and see about getting Gissues up to speed again. In the meantime, if anyone is interested in diving in and putting up a PR, I'd be happy to stamp it.

Sorry about the troubles! Can't wait until graduation :P

TheJefe commented 8 years ago

In the meantime, If you are looking for a work around, I'd suggest looking at the :Gisearch feature. It is documented in the readme here.

Example: Show me open issues that I am assigned to in the jaxbot/githb-issues.vim repo..

  1. let g:gh_issues_query = "is:open is:issue assignee:TheJefe repo:jaxbot/github-issues.vim"
  2. :Gsearch

There are a lot more search options available to use documented here https://developer.github.com/v3/search/

Personally I like the user option. You can get issues across all repos for the given organization or user.

wsdjeg commented 8 years ago

Sorry about the troubles! Can't wait until graduation :P

please just enjoy you school time now , :smile:

osleg commented 6 years ago

@mhartington @wsdjeg @cj this issue should be fixed with #168. Could you please test and let me know if it still persists?

osleg commented 6 years ago

Fixed