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

Gissues should accept any ordering of issue headers #122

Closed wikimatze closed 9 years ago

wikimatze commented 9 years ago

I have the following text in the :Giadd window:

Mailer has the name password_forget and the controller forget_password

Have to find a single good for both of them
## State: open
## Assignee: wikimatze
## Milestone: 
## Labels: 

After pressing :zz I get the following error:

Error detected while processing function <SNR>127_saveIssue:
line    2:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 408, in saveGissue
IndexError: list index out of range
Error detected while processing function AutoTag:
line    9:
WARNING:root:Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "<string>", line 209, in rebuildTagFiles
  File "<string>", line 205, in updateTagsFile
  File "<string>", line 45, in do_cmd
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: ''
wikimatze commented 9 years ago

Trying it out with:

#  Mailer has the name password_forget and the controller forget_password 
## State: open
## Assignee: wikimatze
## Milestone: 
## Labels: 

Give me the following error:

Error detected while processing function AutoTag:
line    9:
WARNING:root:Traceback (most recent call last):
  File "<string>", line 5, in <module>
  File "<string>", line 209, in rebuildTagFiles
  File "<string>", line 205, in updateTagsFile
  File "<string>", line 45, in do_cmd
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: ''

But this issue will be created.

jaxbot commented 9 years ago

While this issue should be addressed to make the plugin accepting of many types of input, the current format for making issues is:

# Issue Title (new)
## State: open
## Assignee: 
## Milestone: 
## Labels: 

Issue body, bunch of text, etc.
jaxbot commented 9 years ago

The comments are treated like headers in an email, so to speak, but gitcommit files use Subject, Body, comments, so if reversing the order like I showed works for you, I'll make this issue an enhancement to make the plugin accept input in both orders.

If my suggestion doesn't work as a workaround, then it's time for some debugging ;)

Sorry about that!

jaxbot commented 9 years ago

Closed wrong issue

wikimatze commented 9 years ago

Thanks for fixing this.