Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloze updates do not occur on sync due to type error #23

Open
3 tasks done
Weyaaron opened this issue Feb 7, 2022 · 8 comments
Open
3 tasks done

Cloze updates do not occur on sync due to type error #23

Weyaaron opened this issue Feb 7, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@Weyaaron
Copy link

Weyaaron commented Feb 7, 2022

Sanity checks

  • I am using the latest version of the plugin
  • I am using the latest version of Obsidian
  • I have read the README

Diagnositics

Component Version
Obsidian 0.13.23
AnkiBridge 0.6.17
Anki Version ⁨2.1.49 (dc80804a)⁩, Python 3.8.1 Qt 5.15.1 PyQt 5.15.1
AnkiConnect Current(Probably not relevant)

Description

A card of the cloze type fails to update.

Reproduce

  • Add a card like
deck: test
---
Hallo ~~test~~

in a new file.

  • Sync with Anki
  • Alter the card
  • Error is triggered

Expected behavior
That the updates to the card are transferred into anki.

Screenshots
image

Additional context
I'm not quite sure if I use the cloze properly. A more thorough documentation would be appreciated.

@Weyaaron Weyaaron added the bug Something isn't working label Feb 7, 2022
@Weyaaron Weyaaron changed the title Cloze updates do not occur due not occur on sync due to type error Cloze updates do not occur on sync due to type error Feb 7, 2022
@JeppeKlitgaard
Copy link
Owner

JeppeKlitgaard commented Feb 7, 2022

Apologies for the bug and thank you for reporting it here!

Could you enable debugging in settings and attach the console output?

@Weyaaron
Copy link
Author

Weyaaron commented Feb 8, 2022

I would love to, but I cant quite figure out how to do this.
I dug through the documentation and I am aware of these settings, but I dont know how to access the logs you are referring to.

@aadimator
Copy link

I'm facing the same issue. Here's what I get when I try to update the card:
image

Here's the log from the console:
image

I have these two settings enabled as well:
image

Let me know if you need any further information.

@JeppeKlitgaard
Copy link
Owner

I will try to have a look at this over the weekend – delayed but not forgotten!

@andrewcrook
Copy link

In the mean time, to get around this :

You have to add config line
delete: true
then sync
then delete the line
enabled: false
then sync again

@aadimator
Copy link

For the time being, I'm just using the enabled: false option after I've synced the cloze so it doesn't interfere with the rest of the syncs.

@rjbergerud
Copy link

Screenshot 2023-06-15 at 12 08 47

That modelName and isCloze properties are differing is causing the error

@rjbergerud
Copy link

rjbergerud commented Jun 15, 2023

This seemed to be an issue for me because the cloze field is labelled as "Extra" on my anki card, and not "Back Extra", which is what

'Back Extra': fields[NoteField.Backlike] || '',
suggests it should be.

I'm confused as to to why this is called "Back Extra" in code, I wasn't sure if I had changed made changes to the default cloze notetype at some earlier point, but when looking around it seems that this field is called simply "Extra" in by default cloze note type in anki. Am I missing something @JeppeKlitgaard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants