Support thread for Browser external editor addon
Selecting multiple notes and trying to open the external editor for all of them at once, results in an error.
Debuginformationen:
Anki 2.1.66 (cf16ce1d) Python 3.11.5 Qt 6.5.2 PyQt 6.5.2
Platform: Linux-5.15.131-1-MANJARO-x86_64-with-glibc2.38
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2023-10-03 16:48:39
Möglicherweise beteiligte Erweiterungen: <U+2068>Browser external editor<U+2069>
Caught exception:
Traceback (most recent call last):
File "/home/simon/.local/share/Anki2/addons21/1463430836/__init__.py", line 56, in <lambda>
action.triggered.connect(lambda: BrowserExternalEditor(browser.mw, browser))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/simon/.local/share/Anki2/addons21/1463430836/__init__.py", line 31, in __init__
self.editor.set_note(self.editor.card.note(), focusTo=0) # BEE
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'note'
Thanks, I’ll correct the logic to either disregard multiple notes or to open separate windows (the current logic just assumes there is only one note selected). I have a few other things I need to look into at the moment so in the mean time I recommend only selecting a single note.
错误
运行出错。请在启动 Anki 时按住 Shift 键以临时禁用插件加载。 如仅在插件启用时出错,请使用「工具」>「插件」功能禁用部分插件后重启 Anki,请重复上述步骤找出引起错误的插件并反馈给插件作者。 调试信息:
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-12.7.1-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-06 15:13:35
相关插件:Browser external editor
Caught exception:
Traceback (most recent call last):
File “/Users/lei/Library/Application Support/Anki2/addons21/1463430836/init.py”, line 49, in
sc.activated.connect(lambda: BrowserExternalEditor(browser.mw, browser))
File “/Users/lei/Library/Application Support/Anki2/addons21/1463430836/init.py”, line 15, in init
mw.garbage_collect_on_dialog_finish(self)
File “aqt.main”, line 1749, in garbage_collect_on_dialog_finish
AttributeError: ‘BrowserExternalEditor’ object has no attribute ‘finished’
I have the same problem as the previous poster. This addon doesn’t work in recent Anki versions. Please fix this!