mdanki icon indicating copy to clipboard operation
mdanki copied to clipboard

Getting a "writeStringToMemory is deprecated" message when building anki files

Open LarryBattle opened this issue 5 years ago • 2 comments

Getting an warning message when building anki files on mdanki 1.0.2. The built anki files work by the way.

Steps to reproduce

example.md

## Test

test

Command:

npx mdanki example.md example.apkg

Actual Output:

writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!
The deck "mdanki" has been generated in /home/u/markdown_to_anki/example.apkg

Expected Output:

The deck "mdanki" has been generated in /home/u/markdown_to_anki/example.apkg

Cause?

Wild guess but maybe the message comes from an old copy of sql.js that anki-apkg-export 4.0.3 is using. Related links:

  • https://github.com/sql-js/sql.js/pull/192/files
  • https://github.com/emscripten-core/emscripten/blob/78b44ed55cc4d0b4d79f62df9e80ae6f29a5345b/src/preamble.js#L1612-L1625

LarryBattle avatar Apr 25 '20 05:04 LarryBattle

@LarryBattle You are right with guessing about anki-apkg-export. There is a relavant PR which is still in progress.

ashlinchak avatar Apr 25 '20 08:04 ashlinchak

Still here two years later, version 1.1.2

mozai avatar Sep 15 '22 05:09 mozai