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

Slow AnkiConnect may cause duplicate cards even when they are disabled in Yomitan settings #1683

Open
pinntokuru opened this issue Dec 21, 2024 · 0 comments
Labels
kind/bug The issue or PR is regarding a bug triage/not-our-bug The issue is not a yomitan bug

Comments

@pinntokuru
Copy link

Description
Sometimes when a card add is triggered AnkiConnect can be slow due to whatever reason. It is possible to quickly trigger another card add either via the green add buttons or the Alt+E and Alt+R shortcuts before the first card is added, causing duplicate cards in Anki. This can occur even when "Prevent adding" is selected for the "When a duplicate is detected" option in Yomitan. After the first card add is completed it is no longer possible to add further duplicates.

The issue can be reproduced by simulating a slow AnkiConnect via adding a sleep statement in AnkiConnect's "addNote" function in its init.py file. Repeatedly clicking the green add buttons or pressing the Alt+E/R add card shortcuts for a new word in Yomitan while AnkiConnect is sleeping eventually results in duplicates.

Browser version
Firefox 133.0.33

Yomitan version
24.12.12.0

@pinntokuru pinntokuru added the kind/bug The issue or PR is regarding a bug label Dec 21, 2024
@Kuuuube Kuuuube added the triage/not-our-bug The issue is not a yomitan bug label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug The issue or PR is regarding a bug triage/not-our-bug The issue is not a yomitan bug
Projects
None yet
Development

No branches or pull requests

2 participants