Vocab-Apps / anki-language-tools

Anki Language Tools addon
GNU General Public License v3.0
6 stars 0 forks source link

crash when editing while reviewing a deck #47

Closed luc-vocab closed 2 years ago

luc-vocab commented 2 years ago

I'm getting an error when I click the Edit button while studying a deck. It doesn't seem to affect anything but it pops up every time I edit. (If I exit without editing, nothing happens.) I've restarted Anki without Language Tools disabled and the problem goes away.

I'm pasting the debug information below.

Yours, Jeff

Debug info: Anki 2.1.44 (b2b3275f) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2021-07-21 08:17:39

Caught exception: Traceback (most recent call last): File "C:\data\Google Drive\Anki\addons21\771677663\editor_processing.py", line 88, in process_all_field_changes self.process_field_change(field_change) File "C:\data\Google Drive\Anki\addons21\771677663\editor_processing.py", line 103, in process_field_change self.load_translation(editor, note_id, field_value, to_deck_note_type_field, value['translation_option']) File "C:\data\Google Drive\Anki\addons21\771677663\editor_processing.py", line 194, in load_translation self.load_transformation(editor, File "C:\data\Google Drive\Anki\addons21\771677663\editor_processing.py", line 181, in load_transformation self.languagetools.anki_utils.show_loading_indicator(editor, field_index) File "C:\data\Google Drive\Anki\addons21\771677663\anki_utils.py", line 133, in show_loading_indicator editor.web.eval(js_command) AttributeError: 'NoneType' object has no attribute 'eval'

luc-vocab commented 2 years ago

fixed.