GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
734 stars 209 forks source link

MultipleMatches exception raised when running against Taskwarrior 2.6.0 #841

Closed JoshMock closed 2 years ago

JoshMock commented 2 years ago

I upgraded Taskwarrior to 2.6.0 this morning and started getting the following error on every run of bugwarrior-pull:

bugwarrior.db.MultipleMatches: Issue ___ matched multiple IDs: {...}

Appears to be triggered by the following lines in find_taskwarrior_uuid:

https://github.com/ralphbean/bugwarrior/blob/a37d861a7a703c558c93de19bdad6bf2e6c77d6e/bugwarrior/db.py#L203-L209

I don't know enough about Taskwarrior internals to know how UUIDs work or might have changed, but I do know this was a fairly significant update from them.

Bugwarrior: 1.8.0 Taskwarrior: 2.6.0 OS: Arch Linux

Issue is not present after downgrading back to Taskwarrior 2.5.3.

I may start to investigate this myself and see if I can contribute a solution, but it may not be timely enough if lots of folks experience this after upgrading.

tbabej commented 2 years ago

Hey @JoshMock, I believe the problem is that bugwarrior uses taskw under the hood, which is currently incompatible with the 2.6.0 release :crying_cat_face:

The good news there is already PR (pending review) to fix this, that we were hoping could get merged before the 2.6.0 release, but it's better late than never :pray:

https://github.com/ralphbean/taskw/pull/152

You can install this directly from my branch using:

pip3 install -U git+git://github.com/tbabej/taskw@develop

JoshMock commented 2 years ago

Thanks so much @tbabej! I will try this soon.

tbabej commented 2 years ago

Alright, ralphbean/taskw#152 has been merged, so I believe this issue should be fixed on the develop branch of taskw now (install via pip3 install -U git+git://github.com/ralphbean/taskw@develop)

ryneeverett commented 2 years ago

Closing for now since this seems to be a duplicate of #840.

srl295 commented 2 years ago

Confirmed that ralphbean/taskw@3baf339370c7cb4c62d52cb6736ed0cb458a57b5 solves this issue.