louietan / anki-editor

Emacs minor mode for making Anki cards with Org
699 stars 87 forks source link

anki-editor-push-notes succesfully pushes cards to Anki but fails to identify cards #73

Closed acohl closed 4 years ago

acohl commented 4 years ago

This is what I'm using:

Anki 2.1.15 (442df9d6)
Qt 5.12.7 PyQt 5.13.0
AnkiConnect 2.1.0
anki-editor 20190922.1223 (from the melpa)

It looks like I can access AnkiConnect's api succesfully on localhost:8765.

Using this example in the readme:

* Idiom                                                        :vocab:idioms:
  :PROPERTIES:
  :ANKI_DECK: English
  :ANKI_NOTE_TYPE: Basic
  :ANKI_TAGS: languages european_languages
  :END:
** Front
   (it's) raining cats and dogs
** Back
   it's raining very hard

I evaluated the function (anki-editor-push-notes) on the buffer with the failure Pushed 1 notes, 1 of which are failed. Check property drawers for failure reasons. Once you’ve fixed the issues, you could use ‘anki-editor-retry-failure-notes’ to re-push the failed notes. in the minibuffer.

Additionaly, :ANKI_FAILURE_REASON: Wrong type argument: listp, 1596323127235is added to the :PROPERTIES: drawer, BUT, the card is pushed succesfully. When there's no deck and (setq anki-editor-create-decks t) is evaluated, a deck labeled "English" is created with a card named "Idiom".

From what I know about AnkiConnect, I think that 1596323127235 is the card ID. So I think anki-editor is having trouble interpreting that for some reason.

Can anyone reproduce this?

acohl commented 4 years ago

I'll close this issue since it's a duplicate of a number of other issues.