glutanimate / syntax-highlighting

A fork of Tiago Barroso's Syntax Highlighting add-on with support for Anki 2.1
https://ankiweb.net/shared/info/1463041493
Other
108 stars 27 forks source link

Error exception when clicking on edit button for a note #40

Open Benjamin007 opened 1 year ago

Benjamin007 commented 1 year ago

Hi

I get this error message when I try to edit a note:

`Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site. 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=1 Add-ons, last update check: 2022-09-14 12:47:42

Caught exception: Traceback (most recent call last): File "anki\config.py", line 37, in get_immutable File "anki_backend\generated.py", line 662, in get_config_json File "anki_backend__init__.py", line 106, in _run_command anki.errors.NotFoundError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "aqt\webview.py", line 36, in cmd File "aqt\webview.py", line 135, in _onCmd File "aqt\webview.py", line 580, in _onBridgeCmd File "aqt\reviewer.py", line 345, in _linkHandler File "aqt\main.py", line 1070, in onEditCurrent File "aqt__init.py", line 101, in open File "aqt\editcurrent.py", line 24, in init File "", line 2, in init File "anki\hooks.py", line 89, in decorator_wrapper File "anki\hooks.py", line 81, in repl File "C:\Users\benjamin.palisse\AppData\Roaming\Anki2\addons21\1463041493\main.py", line 184, in init_highlighter previous_lang = get_default_lang(mw) File "C:\Users\benjamin.palisse\AppData\Roaming\Anki2\addons21\1463041493\main.py", line 84, in get_default_lang addon_conf = mw.col.conf['syntax_highlighting_conf'] File "anki\config.py", line 51, in getitem__ File "anki\config.py", line 39, in get_immutable KeyError `

The note was created before I had installed the syntax-highlighting add-on.

here is the content of the note: Front: An dieser Dynamaxiemierung eben war etwas faul<br>

Back: il y avait vraiment qcq d'étrange dans cette dynamax<br>

Thanks, please tell me if I can help or if I should provide more information.