-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Give an error message when there is an invalid ID #177
Comments
I'm digging into why this is happening to me too, and it seems that I've deleted a note from Anki. Therefore the plugin cannot find the note matching one of the IDs from my file in Obsidian. I'm not sure what the expected behavior would be in this case. Maybe also delete the note from Obsidian? |
There actually is something here that should output a nice error message when a card is not present in Anki: if (cardsNotInAnki) {
console.info("Flashcards: Cards not in Anki (maybe deleted)");
for (const card of cardsNotInAnki) {
this.notifications.push(
`Error: Card with ID ${card.id} is not in Anki!`
);
}
} But apparently that doesn't work |
The |
Is your feature request related to a problem? Please describe.
Somewhere in my notes I have an invalid ID. I have no idea which one, and the console gave a cryptic error, so I assumed it was a bug and made #176.
Describe the solution you'd like
An error message saying which ID is invalid, so I can CTRL + F it and remove it.
Describe alternatives you've considered
Going one by one to find the invalid ID, or nuking the note and having it regenerate everything.
The text was updated successfully, but these errors were encountered: