jdlorimer / incremental-reading

Anki add-on providing incremental reading features
https://ankiweb.net/shared/info/935264945
ISC License
217 stars 38 forks source link

error on answering cloze card #88

Closed snoyes closed 5 years ago

snoyes commented 5 years ago

A cloze card created from the add-on shows the question correctly, then pops up the following on the answer side:

Debug info: Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9 Platform: Windows 10 Flags: frz=True ao=True sv=1

Caught exception: File "aqt\webview.py", line 295, in handler File "aqt\reviewer.py", line 461, in _onTypedAnswer File "aqt\reviewer.py", line 222, in _showAnswer File "anki\hooks.py", line 28, in runHook File "C:\Users\scnoyes\AppData\Roaming\Anki2\addons21\935264945\main.py", line 134, in onShowAnswer mw.stateShortcuts.remove(qs) <class 'ValueError'>: list.remove(x): x not in list

jdlorimer commented 5 years ago

Thanks. From memory, this has happened inconsistently for some time. I'll look into it over the weekend.

riversdark commented 5 years ago

same error also occurred on Mac

Anki 2.1.4 Python 3.6.1 Qt 5.9.2 PyQt 5.9 Platform: Mac 10.14.2 Flags: frz=True ao=True sv=1

Caught exception: File "aqt/reviewer.py", line 451, in _onTypedAnswer File "", line 2, in _showAnswer File "anki/hooks.py", line 66, in decorator_wrapper File "anki/hooks.py", line 63, in repl File "/Users/oma/Library/Application Support/Anki2/addons21/1374772155/main.py", line 231, in onShowAnswer return _old(self) File "aqt/reviewer.py", line 222, in _showAnswer File "anki/hooks.py", line 28, in runHook File "/Users/oma/Library/Application Support/Anki2/addons21/935264945/main.py", line 134, in onShowAnswer mw.stateShortcuts.remove(qs) <class 'ValueError'>: list.remove(x): x not in list

jdlorimer commented 5 years ago

This is probably a duplicate of #63, which I still haven't got around to addressing. I'll close this but keep the older report open.