Problem description
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
Extension fails to start when launching Anki.
This is linked to a PR on the original extension: glutanimate/syntax-highlighting#42
To add some context: checking pygments' Available Lexers we can see that lexers like JsonBareObjectLexer do not have a "Short names" field (called aliases in the code).
Because of this we get the error shown below.
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Anki 23.12.1
Error message (if any)
Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.0-arm64-arm-64bit
When loading Syntax Highlighting NG:
Traceback (most recent call last):
File "aqt.addons", line 245, in loadAddons
File "/Users/eloy/Library/Application Support/Anki2/addons21/566351439/__init__.py", line 24, in <module>
from . import main # noqa: F401
File "/Users/eloy/Library/Application Support/Anki2/addons21/566351439/main.py", line 52, in <module>
LANGUAGES_MAP = {lex[0]: lex[1][0] for lex in get_all_lexers()}
File "/Users/eloy/Library/Application Support/Anki2/addons21/566351439/main.py", line 52, in <dictcomp>
LANGUAGES_MAP = {lex[0]: lex[1][0] for lex in get_all_lexers()}
IndexError: tuple index out of range
Problem description
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
Extension fails to start when launching Anki.
This is linked to a PR on the original extension: glutanimate/syntax-highlighting#42
To add some context: checking pygments' Available Lexers we can see that lexers like
JsonBareObjectLexerdo not have a "Short names" field (calledaliasesin the code).Because of this we get the error shown below.
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Anki 23.12.1
Error message (if any)