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

anki 2.1.50+ qt6 exception on opening HTML template #33

Open
boydkelly opened this issue May 21, 2022 · 0 comments
Open

anki 2.1.50+ qt6 exception on opening HTML template #33

boydkelly opened this issue May 21, 2022 · 0 comments

Comments

@boydkelly
Copy link

When opening HTML template on anki 2.1.50+ qt6 the following error occurs. (qt5 seems ok)

Debug info:
Anki 2.1.52 (ab1c2395) Python 3.10.4 Qt 6.3.0 PyQt 6.3.0
Platform: Linux
Flags: frz=False ao=True sv=2
Add-ons, last update check: 2022-05-21 06:22:13
Add-ons possibly involved: ⁨Asset Manager⁩

Caught exception:
Traceback (most recent call last):
  File "/var/home/bkelly/.local/share/Anki2/addons21/656021484/gui_config/html_tab.py", line 89, in editScript
    a = HTMLConfig(self, self.modelId, saveScript)
  File "/var/home/bkelly/.local/share/Anki2/addons21/656021484/gui_config/html_config.py", line 58, in __init__
    self.initEditor(self.ui.codeTextEdit)
  File "/var/home/bkelly/.local/share/Anki2/addons21/656021484/gui_config/html_config.py", line 72, in initEditor
    self.highlighter = HTMLHighlighter(editor.document())
  File "/var/home/bkelly/.local/share/Anki2/addons21/656021484/gui_config/highlighter.py", line 219, in __init__
    tagRegex.setMinimal(True)
AttributeError: 'QRegularExpression' object has no attribute 'setMinimal'

Thanks for the awesome addin!

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