Closed galantra closed 5 years ago
You can see add-on number 865767531 at the end of the error message. The reason it's here is that the bug comes from the interaction between both add-ons. I see no way of fixing this bug without changing both add-ons simultaneously; so currently I won't do anything with it unless more people tell me they do use both add-ons.
The main cause of the problem as far as I understand it, is that collection._qaData queries cards c by requesting that there is a note f such that c.nid = f.id. The trouble being that while I flush the card, the note to which it is associated is not already in the database. Which means that the whole renderQA process can't be done, since there is no way for it to have access to any fields. This problem never occurs outside of this add-on because notes are flushed before cards usually
One trouble is that I can't easily flush note before cards in the add-on, otherwise the cards would be generated, and instead of creating copies of current card, it'll create whole new cards. I could then edit those cards so that they become copy. But honestly, it seems to be a way to introduce bugs, without giving anything interesting (appart from the fact that It'll be compatible with add-on 865767531)
Thank you, all right. I have uninstalled 865767531 (show duplicates). Working fine now. Also, I've learned to understand the error message.
I tried to copy a note. The following error appeared. When syncing, anki says that there are cards which have no note. I can delete the cards with "check database".