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

Cannot add notes with type "MIA Japanese" because of JavaScript in template #45

Closed
gorgonical opened this issue Jan 6, 2020 · 2 comments
Closed

Comments

@gorgonical
Copy link

@gorgonical gorgonical commented Jan 6, 2020

Type:

  • bug
  • feature
  • enhancement
  • question

Environment:

  • OS: Slackware Linux Current
  • Anki version: 2.1.17 (4cead7ef)

I'm going to open a PR to resolve the issue:

  • yes
  • no

Description:
It is impossible to add cards using the provided MIA Japanese note type. Upon filling in a card such as "お茶” for expression, "tea" for meaning, and clicking the word-fill button to provide audio, the error message "the provided input would give an empty question on all cards" and can be resolved by removing the entire JS block in the front side. I don't know what could be wrong with the code, but the card template does not like it.

@LucasMIA
Copy link
Collaborator

@LucasMIA LucasMIA commented Feb 20, 2020

This was an issue with Anki 2.1.17 - 2.1.19, the Anki developer has fixed this issue in 2.1.20.

@LucasMIA LucasMIA closed this Feb 20, 2020
@LucasMIA
Copy link
Collaborator

@LucasMIA LucasMIA commented Feb 20, 2020

I should add that the issue you were seeing was not due to the JS but rather was due to the broken conditional replacement feature in Anki itself, you can test this by attempting to use that feature with any card type in Anki versions 2.1.17 - 2.1.19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.