-
Notifications
You must be signed in to change notification settings - Fork 87
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
Pushing cloze fails with unknown reason #103
Comments
I presume you have installed via |
Hi, thanks for the suggestion, indeed I installed via |
I was receiving the same error message and believe the problem lies with Anki. When I got this message I also got the message "Cloze deletion can only be used on cloze notetypes" in the editor when trying to add a new note of type "Cloze" in Anki. The message appeared only after writing something like After going to "Tools - Manage Note Types", deleting the "Cloze" note type (you could switch cards of this type to another type temporarily to avoid deleting them), and adding it back via the "Add" button and "Add: Cloze", I am not having this problem anymore. I can again create "Cloze" cards both within Anki and by pushing from anki-editor. Maybe it was just a bug or the problem might have been related to this fact from the Anki manual:
|
Hi, and thanks for the suggestions! Since my workflow is completely based on I followed your suggestion to delete and add the |
Too bad, if the problem persists I'd suggest trying to create some cloze cards within Anki to see if it works as expected there. If not you might have more luck asking for help on the Anki Forums. I tried to reproduce your example:
And indeed I also get
This note then pushes successfully for me. So the issue seems to be mainly the very uninformative error message (which we can't easily fix as anki-editor just passes on error messages from Anki/AnkiConnect). Does this solve your issue? |
But is that really surprising? I haven't used Cloze cards as yet so never fell victim to this issue. In any case, to add a data point to support this. I'm running:
And this version creates the card for the test case suggested by OP but when viewing the card instead of displaying the content it displays the following message to include some cloze deletions and a link to help on the subject.
If I view the card in the Anki browser I see the card content given in the test case. I presume both of you are running a newer version of Anki and so the card is simply not produced if cloze deletions do not exist for a Cloze note type. @f-dangel why do you consider the test case you provided a Cloze card if it doesn't contain any close deletions? |
Hey (btw thanks a lot for your help, I really appreciate it), in fact I am 'abusing' cloze cards as one-sided cards without hidden information (like a fact I want to be reminded of every now and then). So chances are I am using the wrong card type to achieve what I want. Is there a card type that reflects what I am trying to achieve? Best |
@doolio You're right, it's not so surprising. And yes, I'm also running Anki 2.1.54. @f-dangel There is no built in note type with only one field/side but you can easily create one yourself within Anki (the desktop app). See this section in the manual. You'd go to |
Hi again, thank you for the description; this solves my problem:
* Test one side
:PROPERTIES:
:ANKI_DECK: Default
:ANKI_NOTE_TYPE: One side
:END:
** Text
Some note Thank you very much for the quick responses. I am not sure how relevant my use case is for others, and how to rename the issue such that it will be helpful for others in the future. Feel free to go ahead. Best, |
Glad you found a solution. I would have made the same suggestion as orgtre. I'm curious though about your rationale. I don't understand how you are testing anything with a one sided card that isn't a cloze card. That is when the card appears you see all its content. FYI, you can also specify
This can be used when all the cards in a single file will be added to the same deck. I just use one deck but separate my cards by subject area in different org files. It avoids the need for subdecks (which at one time was recommended by the Anki maintainers) but still provides a level of organisation. This line just means I don't repeat myself in every headline property drawer. I do the same for the I also keep |
Hi,
creating and pushing clozes stopped working for me in the latest anki version (I use
anki 2.1.54 Qt5
on Ubuntu 22). It still works forBasic (and reversed card)
s.To reproduce, call
anki-editor-push-notes
on the following exampleThis fails with
:ANKI_FAILURE_REASON: cannot create note for unknown reason
any idea how to fix this or what causes it?
Best,
Felix
The text was updated successfully, but these errors were encountered: