Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Benjamin007 opened this issue Sep 14, 2022 · 0 comments
Open

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

Benjamin007 opened this issue Sep 14, 2022 · 0 comments

Comments

@Benjamin007
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant