Add-on issues with Anki 2.1.50 Beta

Following up on the above issue with the Cloze Anything plugin, I built Anki from source, ran it, and tested the plugin. I do in fact get the “wrap” error:

JS error /_anki/legacyPageData?id=4952573264:1 Uncaught ReferenceError: wrap is not defined

I’ve attempted to fix the wrap issue here by adding surround to the OldEditorApapter:

I guess you missed this PR by Henrik:

Ah yes, thanks @kleinerpirat I haven’t checked recent PRs since yesterday. I tested PR 1551 and that restores the wrap functionality for my plugin.

finished the rest, beginning with Pokemanki, retested all add-ons on Beta2, honestly idk if it will help or not, but here it is.

will update the list if beta3… fix some add-ons or when the author updates it, either way, will put a note in the end of the post when that happens (also will put dev comments next to the add-ons in […])

users that are going to update to 2.1.50, these are some of the add-ons that aren’t working with the current version (Beta2)

@hengiesel could/should we take an approach like Export jquery correctly by hgiesel · Pull Request #1314 · ankitects/anki · GitHub for the editor as well? It presumably does have a bit of an impact on loading speed though.

@NameLessGO thanks for that. I don’t see any other oversights that are easily corrected on Anki’s end apart from wrap, which has been fixed.

Actually it won’t be that much compared to the Svelte init time. The reason I removed is that we do want to move away from it, and also that even if we leave it in, probably all uses of it are broken anyway, as the structure of the HTML (classes, ids, nesting) changed quite a bit.

Especially in this case it’s the image resizer: I wonder if need to restore that add-on now anyway, as we have built-in image resizing now.

1 Like

Awesometts stopped working and doesn’t open any windows anymore.

Debug info:
Anki 2.1.50 (db804d95) Python 3.10.2 Qt 6.2.2 PyQt 6.2.2
Platform: Linux
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2022-01-23 16:57:22
Add-ons possibly involved: <U+2068>AwesomeTTS - Add speech to your flashcards<U+2069>

Caught exception:
Traceback (most recent call last):
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 121, in _show
    self._instance = self._target.constructor(
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 76, in __init__
    super(Configurator, self).__init__(title="Configuration",
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 80, in __init__
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 85, in _ui
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 103, in _ui_tabs
    tabs.addTab(content(), QtGui.QIcon(f'{ICONS}/{icon}.png'),
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 118, in _ui_tabs_text
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 152, in _ui_tabs_text_mode
    ("Advanced", self._ui_tabs_text_mode_adv(infix)),
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 287, in _ui_tabs_text_mode_adv
    return Slate("Rule", SubListView, [self._sul_compiler],
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 307, in __init__
    list_view = ListViewClass(*list_view_args)
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 115, in __init__
    super(SubListView, self).__init__(*args, **kwargs)
  File "/home/yaoberh/.local/share/Anki2/addons21/1436550454/awesometts/gui/", line 50, in __init__
AttributeError: 'SubListView' object has no attribute 'ExtendedSelection'

Like Add-on issues with Anki 2.1.50 Beta - #19 by dae, this requires a change to the add-on.

It worked until beta 3, but after beta 4 I get such an error.


I have yet to discover which addons are behind this, but if I use Anki 2.1.50 (beta 5, Windows 10) without disabling my addons:

  1. the Ctrl + Shift + X shortcut to open the HTML editor does not work.
  2. the “Preview card” button (Browser) does not appear.

The respective button and shortcut work fine

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add Hyperlink [‘318752047’, 2021-11-21T17:04, ‘None’, ‘’]
Additional Card Fields Fork for 21 [‘744725736’, 2022-02-21T23:22, ‘None’, mod]
Adjust Sound Volume [‘2123044452’, 2021-05-05T13:24, ‘None’, mod]
Advanced Browser [‘874215009’, 2022-01-31T00:07, ‘None’, ‘’]
Advanced Copy Fields [‘1898445115’, 2020-04-08T22:04, ‘None’, ‘’]
Advanced MPV Player [‘924111087’, 2021-12-30T06:40, ‘None’, ‘’]
Agent Orange Pseudo-Fuzz Defoliator [‘175851166’, 2020-11-20T06:21, ‘None’, ‘’]
Anki Browser Context Menu Search [‘422526650’, 2020-04-04T00:19, ‘None’, ‘’]
Anki Simulator [‘817108664’, 2021-08-07T21:24, ‘None’, ‘’]
Anki Zoom [‘538879081’, 2020-04-04T02:20, ‘v1.1.3’, mod]
AutoDefine - Automatically define vocabulary words with pronunciations and image [‘2136497008’, 2020-11-16T00:16, ‘None’, mod]
AwesomeTTS Google Cloud Text-to-Speech Microsoft Azure TTS unofficial [‘814349176’, 2021-06-16T23:08, ‘None’, ‘’]
Batch Editing [‘291119185’, 2020-02-25T01:13, ‘None’, ‘’]
BetterSearch [‘1052724801’, 2021-11-21T19:42, ‘None’, mod]
Blitzkrieg II - Advanced Browser Sidebar BETA7 [‘564851917’, 2020-04-08T21:29, ‘None’, ‘’]
Button Colours Good Again [‘2494384865’, 2021-04-06T16:57, ‘None’, ‘’]
Cacher In The Rye Windows Archived [‘1302452246’, 2020-02-25T01:32, ‘None’, ‘’]
Change note type respect field and card names [‘513858554’, 2020-04-05T17:41, ‘None’, ‘’]
Clickable Tags v20 [‘1739176371’, 2022-01-30T23:58, ‘None’, ‘’]
Cloze Overlapper for Anki 21 [‘109531687’, 2021-01-12T04:12, ‘None’, ‘’]
Color Confirmation [‘1084228676’, 2020-03-14T13:13, ‘None’, ‘’]
Colorful Browser Sidebar [‘929609616’, 2021-09-09T20:03, ‘None’, mod]
Colorful toolbars [‘388296573’, 2020-04-20T11:22, ‘None’, ‘’]
Countdown To Events and Exams [‘1143540799’, 2021-03-13T21:40, ‘None’, ‘’]
Custom Styles font color background colour classes [‘1899278645’, 2021-03-03T01:41, ‘None’, ‘’]
Customize Keyboard Shortcuts [‘24411424’, 2022-02-10T12:34, ‘None’, mod]
Customize Sidebar [‘1988760596’, 2020-02-25T01:21, ‘None’, ‘’]
Deck name in title 21 [‘699175524’, 2020-03-25T09:14, ‘None’, ‘’]
Disable fading between cards [‘1533933651’, 2019-07-16T17:23, ‘None’, ‘’]
Edit Field During Review Cloze [‘385888438’, 2022-02-22T06:35, ‘6.11’, mod]
Enhance main window [‘877182321’, 2020-12-23T05:42, ‘None’, mod]
Extended Card Stats During Review [‘1008566916’, 2020-02-25T01:09, ‘None’, ‘’]
Extended Tag AddEdit Dialog [‘1135507717’, 2021-12-05T21:35, ‘None’, ‘’]
External Note Editor for the Browser [‘1996266159’, 2020-04-08T21:37, ‘None’, ‘’]
Field History [‘1247884413’, 2019-01-08T19:34, ‘None’, ‘’]
Field Modifier Random Item Fork for 21 [‘1940275457’, 2019-04-11T17:43, ‘None’, ‘’]
Flexible Duplicate Checking [‘1587955871’, 2020-05-19T08:49, ‘None’, ‘’]
Highlight Search Results in the Browser [‘225180905’, 2021-03-10T18:06, ‘None’, ‘’]
Holdem Cardfield Preserves add card history [‘363320830’, 2020-02-25T01:33, ‘None’, ‘’]
Image Editor [‘307397307’, 2021-12-19T12:58, ‘None’, mod]
Image Occlusion Enhanced for Anki 21 alpha [‘1374772155’, 2020-04-28T04:21, ‘None’, ‘’]
Image Style Editor [‘1593969147’, 2021-12-17T08:01, ‘None’, mod]
Improved Quizlet to Anki 21 Importer [‘538351043’, 2020-11-15T03:16, ‘None’, mod]
Keep card displayed in reviewer until it is modified [‘1894745652’, 2020-04-05T20:57, ‘None’, ‘’]
Leaderboard [‘41708974’, 2021-11-13T12:10, ‘None’, mod]
Localize Media [‘1293255374’, 2018-11-26T12:27, ‘None’, ‘’]
Long term backups [‘529955533’, 2020-03-26T17:52, ‘None’, ‘’]
Maximum image height and width in card editor [‘229181581’, 2021-07-23T08:01, ‘None’, ‘’]
Migaku Retirement [‘1666520655’, 2021-01-13T22:52, ‘None’, mod]
Mindmap from tag hierarchy [‘965278890’, 2022-02-02T21:19, ‘None’, ‘’]
Mini Format Pack [‘295889520’, 2020-02-28T12:16, ‘None’, ‘’]
More Overview Stats 21 [‘738807903’, 2021-07-30T21:13, ‘None’, ‘’]
Opening the same window multiple time [‘354407385’, 2020-05-16T02:59, ‘None’, mod]
Postpone cards review [‘1152543397’, 2021-02-13T17:47, ‘None’, ‘’]
Progress Graphs and Stats for Learned and Matured Cards [‘266436365’, 2020-03-29T08:26, ‘None’, ‘’]
Push Paradox Sibling Cardistry [‘1797395052’, 2020-04-04T06:40, ‘None’, ‘’]
Quick note and deck buttons Fork for 21 [‘1331140127’, 2022-02-12T19:02, ‘None’, mod]
Quick tagging 21 [‘304770511’, 2020-03-26T17:51, ‘None’, ‘’]
Refocus Card when Reviewing 21 [‘1642550423’, 2020-02-25T01:27, ‘None’, ‘’]
Remove card history [‘2089200096’, 2020-04-08T21:57, ‘None’, ‘’]
Review Heatmap [‘review_heatmap’, 2018-10-28T23:06, ‘None’, ‘’]
Reviewer Context Menu Search [‘359618071’, 2020-04-04T00:18, ‘None’, ‘’]
Search and Replace Tags [‘138501288’, 2020-02-25T01:12, ‘None’, ‘’]
Show total time spent in main screen [‘1238121460’, 2020-07-19T10:36, ‘None’, ‘’]
Small Potatoes Show learning step count in days [‘75718778’, 2020-04-02T20:53, ‘None’, ‘’]
Special Fields [‘1102281552’, 2022-02-23T18:27, ‘None’, mod]
Speed Focus Mode auto-alert auto-reveal auto-fail [‘1046608507’, 2019-06-02T11:11, ‘None’, ‘’]
Statistics for Note Types Card Types and Tags [‘16703369’, 2020-07-20T04:11, ‘None’, ‘’]
Straight Reward [‘957961234’, 2021-01-11T13:37, ‘None’, ‘’]
Symbols As You Type [‘2040501954’, 2021-03-22T03:17, ‘None’, ‘’]
Symbols [‘1461102936’, 2020-03-23T12:52, ‘None’, mod]
Tag Toggler Fork for 21 [‘1429363228’, 2021-12-25T20:05, ‘None’, mod]
Text Rendering Fix [‘94394764’, 2020-03-22T19:38, ‘None’, ‘’]
Toggle front and back card in Anki 21 [‘1240106570’, 2020-04-01T23:18, ‘None’, ‘’]
Touch Wood Show New Cards Left Hint [‘1498273991’, 2020-04-04T06:45, ‘None’, ‘’]
Transfer scheduling data from one card to another [‘94685914’, 2020-09-18T11:23, ‘None’, ‘’]
True Retention by Card Maturity [‘923360400’, 2020-02-25T01:25, ‘None’, ‘’]
batch change fonts [‘1479177943’, 2021-12-06T15:53, ‘None’, ‘’]
editor - remove more formatting for selection headings hyperlinks [‘333221628’, 2019-04-11T00:45, ‘None’, mod]
pdf viewer [‘319501851’, 2021-10-14T23:28, ‘None’, mod]
remove linebreaks do word wrap [‘2028179508’, 2021-12-11T00:35, ‘None’, ‘’]
zzz Make It Harder To Quit [‘1381659795’, 2020-02-21T10:24, ‘None’, ‘’]

Anki added a View menu; the add-on probably is getting confused by it and needs updating.


I hope you’re well.

I’m unable to copy and paste text or images when making new cards, with the latest beta. If I right-click on the text box area, nothing happens and keyboard shortcuts don’t work either.

Please advise

What version are you using

Is beta 6?

Yes, same issue with beta 5 as well.

Can you explain exactly again

Is it that images or text can’t be copied and pasted when adding cards?

Just tested with version 2.1.50 Beta 6 and there was nothing wrong.

Did I understand wrong?

It’s okay if you send me a test video by the email below.

If I right click in the text box, no window appears with the copy/paste/cut options. If I copy text from a pdf and try CTRL+V, nothing pastes in the text box. It could be an addon, but I’ve no idea how to determine which one is likely as I’ve got over 40 of them installed I think. If that doesn’t make sense, I can send a video

Is it possible to test it right away in the way below?

First, stop all 40 addon you have installed.

Second, let’s test the problem again.

And are you right using window 2.1.50 beta6?

What is the graphics driver using?

The issue disappears when I start Anki with addons disabled.

I’m on the latest Nvidia drivers.
This is how it looks:

Well then it’s figured out as an addon problem.

Now you need to find out which addons are causing problems.

Test by sequentially activating addons related to card additions (e.g. image oculation addons)

Find out which addon is the problem right now and tell me.