Open rogorido opened 5 years ago
I thinks this is related to this issue: https://github.com/tkf/emacs-request/issues/77
If I apply the patches which are available here: https://github.com/louietan/anki-editor/pull/53 it works again.
Well, it does not seem to work really. Some cards get stuck.
I enabled request-log-level to debug and I get this: http://ix.io/1QHy with this simple file: http://ix.io/1QHz. I had to cancel the process with C-g because emacs was consuming 100% CPU...
With the latest version of request.el
, Emacs won't hang, instead, I guess that you would get error "Got empty reply from AnkiConnect", if I'm right, could you try with turning off global-auto-revert-mode
to see if everything works.
I'm also having the issue with the requesting, after debugging the Emacs source code and discussing with the maintainer of request.el
, the workaround of turning off global-auto-revert-mode
works for me.
I'm getting strange coding systems errors if I try to push notes to anki. I'm using Anki 2.1.14 (7b93e985) and I have downgraded request.el to request 0.3.1, but I get still the error below. I'm pretty sure this not a problem of encoding in the files: I get the errors even if I make a very simple file like this http://ix.io/1PtE. Sometimes as you see I get a failure reason (but I have thee impression not always)...
:ANKI_FAILURE_REASON: Wrong number of arguments: (8 . 8), 10
These default coding systems were tried to encode text in the buffer ‘ temp file’: (utf-8-unix (245 . 4194242) (246 . 4194239) (249 . 4194243) (250 . 4194209) (607 . 4194242) (608 . 4194239) (611 . 4194243) (612 . 4194217) (961 . 4194243) (962 . 4194221) (1014 . 4194243)) However, each of them encountered characters it couldn’t encode: utf-8-unix cannot encode these: ... [etc.]
raw-text no-conversion