Ajatt-Tools / anki.koplugin

KOReader plugin enabling Anki card generations for words looked up in the internal dictionary.
49 stars 6 forks source link

Cannot synchronize note because it's empty #21

Closed AlejandroGomezFrieiro closed 3 months ago

AlejandroGomezFrieiro commented 4 months ago

Currently using a Korean dictionary, and when I try to generate a note for Anki it says it cannot sync because the note is empty. Tried both in localhost (Ubuntu laptop) and koreader within Kindle using the same dictionary, and both give the same result.

Tested that notes are generated, for example, for English words without an available dictionary (but only stored offline, as it cannot figure out the language). When adding a dictionary, even English words fail with the same error.

nairyosangha commented 4 months ago

Someone had a similar issue a while back: https://github.com/Ajatt-Tools/anki.koplugin/issues/20#issuecomment-2024583500

If that's not it, I'll need to see your config.lua and a crash.log (verbose logging enabled)

AlejandroGomezFrieiro commented 3 months ago

Can report that I fixed on my end, it was an issue with conflicting template at origin and endpoint. Documentation should probably specific well that the template should match at both ends.

nairyosangha commented 3 months ago

I don't really get what you mean with 'conflicting template at origin and endpoint', but glad to hear it's fixed either way