Steps to reproduce
- Go into a deck, click export
- Choose mochi format, exclude review history, exclude subdecks
- Exporting asks for a place to save the export
- check the place, click save
Expected behavior: Mochi will export the deck in .mochi format to the chosen location
Actual behavior: the file is saved, but is empty. Mochi with a few seconds delay says "Adding files" and then gets stuck on it, never stopping to run, needs a hard reset of the app to stop it.
System: Android Tablet Xiaomi Tab7, running Android 16 as HyperOS 3.0.3
Tried multiple times, same result always.
Workarounds: export as Markdown is working, but would result in a .zip that will give you single .md files for every card. Would make it necessary to import every single card separately, cause cannot add a whole folder at once.
CSV haven't tried yet.
Actually, if you want to backup or send your deck and include your review history, mochi format would be obligate - so I think it's necessary to fix this as soon as possible.
played arouznd with the .mochi export (via "Export all) a bit and might have found a hint to the bug:
--> Lists instead of Vectors
The spec explicitly states vector in three places:
:templates — "A vector of Templates"
:decks — "A vector of Decks"
Deck :cards — "A vector of Cards"
And in Transit, vector and list are different types. A vector is a JSON array [...], a list is {"~#list": [...]}. What's in the file:
Location File Spec ~:templates {"~#list": […]} […] ✗ ~:decks […] […] ✓ ~:cards (all 39 decks) {"~#list": […]} […] ✗
40 violations. Mochi's export writes Clojure lists, the import schema check expects vectors.
Looks like a pure export/import asymmetry bug in Mochi, not in the file.
Everything else the spec documents is 100% valid in the file.
--> Correcting the export file this way worked immediately.
Additional note:
Another "strange" circumstance is that the Export-All file (with which I tested this all) in my Android Downloads folder is shown as (BIN) with 0 B — which must obviously be faulty, since the file contains roughly 1,500 cards. No idea on my side why this is the case tho.
just tried .csv, exports correctly but doesn't import, showing an error on a certain line - also tested multiple times.