Issues with Logseq Anki Sync: Sync works only once + Cards go to Default deck instead of deck:: #322
wojtello123
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm having some persistent issues with the Logseq Anki Sync plugin (version 6.4.7) when syncing flashcards from Logseq to Anki. I've tried troubleshooting based on the documentation and some forum suggestions, but nothing has fully resolved it. I'd appreciate any help or advice!
My Setup:
Logseq version: [wstaw swoją wersję Logseq, np. 0.10.13]
Anki version: [wstaw swoją wersję Anki, np. 6.4.7]
OS: Win 11
AnkiConnect: Installed and running on port 8765, with config:
json{
"apiKey": null,
"apiLogPath": null,
"ignoreOriginList": [],
"webBindAddress": "127.0.0.1",
"webBindPort": 8765,
"webCorsOriginList": ["*"]
}
Logseq Anki Sync config:
json{
"donationHeading": null,
"ankiDisplaySettingsHeading": null,
"breadcrumbDisplay": "Show Page name and parent blocks context",
"includeParentContent": true,
"useNamespaceAsDefaultDeck": true,
"defaultDeck": "Default",
"logseqSideSettingsHeading": null,
"renderClozeMarcosInLogseq": false,
"hideClozeMarcosUntilHoverInLogseq": false,
"addonsList": [
"Preview Cards in Anki Context Menu",
"Hide Occlusion Data",
"Anki Feature Explorer Context Menu"
],
"advancedSettingsHeading": null,
"ankiFieldOptions": [],
"cacheLogseqAPIv1": true,
"debug": [],
"disabled": false,
"lastWelcomeVersion": "6.4.7",
"skipOnDependencyHashMatch": true
}
Problem 1: Sync works only once per Logseq session
I can sync flashcards successfully the first time (using /Anki Sync or the plugin icon).
But subsequent syncs don't work – no new cards are added to Anki, and there are no error messages in the Logseq console.
To sync again, I have to restart Logseq entirely (or disable/enable the plugin, which sometimes helps but not always).
What I've tried:
Disabling cacheLogseqAPIv1 (set to false).
Enabling debug: ["sync", "anki"] – logs show the first sync completing, but second attempts say "Sync skipped" or nothing.
Restarting Anki and checking AnkiConnect (http://localhost:8765/ works fine).
Updating the plugin to the latest version.
Problem 2: Cards always go to "Default" deck, ignoring deck:: property
In Logseq, I use block properties like this:
text- Test Flashcard
deck:: MyCustomDeck
question:: What is "cat" in Polish?
answer:: Kot
After sync, the card ends up in the "Default" deck in Anki, not "MyCustomDeck".
What I've tried:
Setting "defaultDeck": "" (empty) in config.
Disabling "useNamespaceAsDefaultDeck": false.
Using tags instead (e.g., #MyCustomDeck) and mapping them in plugin settings – same issue.
Ensuring no spaces around :: in properties.
Creating the deck manually in Anki first – still goes to Default.
Beta Was this translation helpful? Give feedback.
All reactions