# Anki 2.1.45 Beta

**URL:** <https://forums.ankiweb.net/t/anki-2-1-45-beta/10664>\
**Category:** Beta Testing\
**Created:** [June 8, 2021, 4:57am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664 "2021-06-08T04:57:55Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [June 24, 2021, 12:00pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/43 "2021-06-24T12:00:59Z")

</div>

Good catch, but I don’t think it’s got anything to do with the linked PR.  
The feature is that we scroll to the current element after refreshing the sidebar, e.g. because an element has been renamed. The problem here seems to be that we also refresh gratuitously after expanding/collapsing tags. (Expanding is different for tags than for other sidebar items because we store the expansion state.)

There are several ways to solve this, but maybe expanding tags shouldn’t be a CollectionOp at all, @dae? I wouldn’t expect users to want to undo it, or other GUI elements to react to it.

---

<div class="post-metadata">

**Author:** ![basiskarten](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/basiskarten/32/826_2.png) [@basiskarten](https://forums.ankiweb.net/u/basiskarten)\
**Post date:** [June 24, 2021, 1:26pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/44 "2021-06-24T13:26:18Z")

</div>

Re: Beta 2: The new in-field HTML editor with syntax styling is great! It might be useful to be able to expand it into its own window, though, as the space is quite limited. Of course copying it and pasting it back is also always an option.

---

<div class="post-metadata">

**Author:** ![basiskarten](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/basiskarten/32/826_2.png) [@basiskarten](https://forums.ankiweb.net/u/basiskarten)\
**Post date:** [June 24, 2021, 2:01pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/45 "2021-06-24T14:01:38Z")

</div>

Very minor issue (apparent in beta 2, but also in beta 1 and probably even before):

When I hover above the search bar in the browser and scroll down with the mouse wheel _once_ in order to select the last search it always skips the first entry and jumps directly to the second one:

If I scroll up again (also with the mousewheel) the correct first entry is selected.

---

<div class="post-metadata">

**Author:** ![Ab\_Bc](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Ab\_Bc](https://forums.ankiweb.net/u/Ab_Bc)\
**Post date:** [June 24, 2021, 4:42pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/46 "2021-06-24T16:42:58Z")

</div>

The new HTML editor is awesome! 👍  
The only problem is that (in the browser) activating it in one note, then clicking on a card that belongs to another note, then deactivating it in this last note will write the content of the selected field from the first note to the second one.

![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/3f2478da40fab3a29a7346da57fe0be3afdbdb6d.png)  
  
  
 ![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/0/048678ad0a41e17d35c4c510d9b9f1f166771dae.png)  
  
  
 ![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/831d8dfaf1df6b54d9b684ce4c34be489ccac1e1.png)  
  
  
 ![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f4afbd563dbfe093d42ecb7f6ebd401be094dc35.png)  
  
  
 ![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/7/790daf7c9715bcdf8c6358c5ecc0f6d2be861a2e.png)

---

<div class="post-metadata">

**Author:** ![cqg](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@cqg](https://forums.ankiweb.net/u/cqg)\
**Post date:** [June 24, 2021, 7:10pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/47 "2021-06-24T19:10:21Z")

</div>

Thanks all devs. You, guys, are awesome!

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 25, 2021, 2:32am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/48 "2021-06-25T02:32:36Z")

</div>

Beta 3 is now available

Edit: … and the change notes are now too 🙂

---

<div class="post-metadata">

**Author:** ![korkmaz](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/korkmaz/32/7484_2.png) [@korkmaz](https://forums.ankiweb.net/u/korkmaz)\
**Post date:** [June 25, 2021, 7:37am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/49 "2021-06-25T07:37:32Z")

</div>

Probably Image Occlusion is broken with beta 3.(if it’s not just me) I hope it gets fixed soon. I was getting an error message when I tried to enter the browser. Later, disabling Image Occlusion fixed it. @glutanimate Maybe you want to take a look sir

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [June 25, 2021, 6:10pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/50 "2021-06-25T18:10:52Z")

</div>

This is the IO error I was getting (@dae is this something that can be fixed within Anki?)

> Anki 2.1.45 (18843e71) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
> Platform: Mac 10.16  
> Flags: frz=True ao=True sv=2  
> Add-ons, last update check: 2021-06-25 11:49:05
> 
> Caught exception:  
> Traceback (most recent call last):  
> File “aqt/webview.py”, line 41, in cmd  
> File “aqt/webview.py”, line 139, in \_onCmd  
> File “aqt/webview.py”, line 603, in \_onBridgeCmd  
> File “aqt/toolbar.py”, line 168, in \_linkHandler  
> File “aqt/toolbar.py”, line 186, in \_browseLinkHandler  
> File “aqt/main.py”, line 1117, in onBrowse  
> File “aqt/ **init**.py”, line 101, in open  
> File “aqt/browser/browser.py”, line 106, in **init**  
> File “aqt/browser/browser.py”, line 385, in setupEditor  
> File “aqt/editor.py”, line 111, in **init**  
> File “aqt/editor.py”, line 134, in setupWeb  
> KeyError: ‘\n max-width’

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [June 25, 2021, 10:40pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/51 "2021-06-25T22:40:13Z")

</div>

A lot easier to debug when someone posts the error 🙂 Fix coming in the next beta.

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [June 26, 2021, 5:13am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/52 "2021-06-26T05:13:54Z")

</div>

This one took forever to get (had to toggle add-ons off a few at a time till I got the actual error from this addon and not stating some other addon was causing the issue). Is there a reason in recent versions that errors have been less likely to say what add-on is actually causing it? I’m guessing the hooks + just how it is, but figured I’d mention it in case there is something that can be done about it

---

<div class="post-metadata">

**Author:** ![basiskarten](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/basiskarten/32/826_2.png) [@basiskarten](https://forums.ankiweb.net/u/basiskarten)\
**Post date:** [June 26, 2021, 7:52am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/53 "2021-06-26T07:52:31Z")

</div>

When the [customize editor stylesheet addon](https://ankiweb.net/shared/info/1215991469) is activated and I open the browser, I always get an error like the one @AnKingMed posted + the browser fails to open:

> Fehler  
> Anki 2.1.45 (b693bdbf) 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: 2021-06-25 11:41:16

> Caught exception:  
> Traceback (most recent call last):  
> File “aqt\webview.py”, line 41, in cmd  
> File “aqt\webview.py”, line 139, in \_onCmd  
> File “aqt\webview.py”, line 596, in \_onBridgeCmd  
> File “aqt\toolbar.py”, line 168, in \_linkHandler  
> File “aqt\toolbar.py”, line 186, in _browseLinkHandler  
> File “aqt\main.py”, line 1117, in onBrowse  
> File "aqt\_init_.py", line 101, in open  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\browser\browser.py”, line 106, in **init**  
> File “aqt\browser\browser.py”, line 385, in setupEditor  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\editor.py”, line 111, in **init**  
> File “aqt\editor.py”, line 134, in setupWeb  
> KeyError: ‘\n border’

Also doesn’t say which addon is at fault.

---

<div class="post-metadata">

**Author:** ![NameLessGO](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/namelessgo/32/34298_2.png) [@NameLessGO](https://forums.ankiweb.net/u/NameLessGO)\
**Post date:** [June 26, 2021, 2:39pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/54 "2021-06-26T14:39:58Z")

</div>

**Add-ons related problems**

> Anki 2.1.45 (18843e71) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2  
> Platform: Windows 10  
> Flags: frz=True ao=True sv=2  
> Add-ons, last update check: 2021-06-25 21:49:59

**Problem on Browser**

> File “aqt\webview.py”, line 41, in cmd  
> File “aqt\webview.py”, line 139, in \_onCmd  
> File “aqt\webview.py”, line 596, in \_onBridgeCmd  
> File “aqt\toolbar.py”, line 168, in \_linkHandler  
> File “aqt\toolbar.py”, line 186, in _browseLinkHandler  
> File “aqt\main.py”, line 1117, in onBrowse  
> File "aqt\_init_.py", line 101, in open  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\browser\browser.py”, line 106, in **init**  
> File “C:\Users\NameLessGO\AppData\Roaming\Anki2\addons21\24411424\custom\_shortcuts.py”, line 524, in cs\_browser\_setupEditor  
> self.editor = Editor(self.mw, self.form.fieldsArea, self)  
> File “aqt\editor.py”, line 111, in **init**  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\editor.py”, line 134, in setupWeb  
> KeyError: 'globalKeydown(e); ’

**the add-on mentioned is [https://ankiweb.net/shared/info/24411424](https://ankiweb.net/shared/info/24411424)**

**Problem on the “add editor”**

> File “aqt\webview.py”, line 41, in cmd  
> File “aqt\webview.py”, line 139, in \_onCmd  
> File “aqt\webview.py”, line 596, in \_onBridgeCmd  
> File “aqt\toolbar.py”, line 168, in \_linkHandler  
> File “aqt\toolbar.py”, line 183, in _addLinkHandler  
> File “aqt\main.py”, line 1114, in onAddCard  
> File "aqt\_init_.py", line 101, in open  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\addcards.py”, line 48, in **init**  
> File “aqt\addcards.py”, line 60, in setupEditor  
> File “aqt\editor.py”, line 111, in **init**  
> File “decorator.py”, line 232, in fun  
> File “anki\hooks.py”, line 89, in decorator\_wrapper  
> File “anki\hooks.py”, line 80, in repl  
> File “aqt\editor.py”, line 134, in setupWeb  
> KeyError: 'globalKeydown(e); ’

**Syncing** (sometimes)

> File “aqt\taskman.py”, line 101, in \_on\_closures\_pending  
> File “aqt\taskman.py”, line 71, in   
> File “aqt\taskman.py”, line 90, in wrapped\_done  
> File “aqt\sync.py”, line 114, in on\_future\_done  
> File “aqt\main.py”, line 964, in on\_collection\_sync\_finished  
> File “aqt\main.py”, line 767, in reset  
> File “aqt\main.py”, line 719, in \_synthesize\_op\_did\_execute\_from\_reset  
> File “aqt\hooks\_gen.py”, line 2588, in **call**  
> File “aqt\browser\browser.py”, line 120, in on\_operation\_did\_execute  
> AttributeError: ‘Browser’ object has no attribute ‘editor’

**add-on problem: [https://ankiweb.net/shared/info/1781298089](https://ankiweb.net/shared/info/1781298089)**

---

<div class="post-metadata">

**Author:** ![basiskarten](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/basiskarten/32/826_2.png) [@basiskarten](https://forums.ankiweb.net/u/basiskarten)\
**Post date:** [June 26, 2021, 3:46pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/55 "2021-06-26T15:46:55Z")

</div>

This happens since beta 2 btw. I didn’t have this problem in beta 1.

---

<div class="post-metadata">

**Author:** ![hengiesel](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/hengiesel/32/920_2.png) [@hengiesel](https://forums.ankiweb.net/u/hengiesel)\
**Post date:** [June 26, 2021, 5:02pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/57 "2021-06-26T17:02:39Z")

</div>

The errors saying:

```auto
File “aqt\editor.py”, line 134, in setupWeb
KeyError: 'xxxxxxx; ’

```

are already fixed in upstream (which includes IO Enhanced).

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [June 27, 2021, 3:38am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/58 "2021-06-27T03:38:08Z")

</div>

In past add-ons I’ve used for the sidebar, you could edit the entire tag as opposed to just the subtag (i.e. it would bring up a dialog with the entire tag::subtag::subtag). I think that would be useful if feasible

Also, I’m currently editing cards that have tag::subtag1::subtag2 and deleting ::subtag2 off the end. There is only one card that has subtag2 and the sidebar keeps the tag there even after deleting it until running clear unused tags. I tried just renaming the subtag in the sidebar to nothing, but that didn’t work (hence my recommendation for the above)

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [June 27, 2021, 3:49am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/59 "2021-06-27T03:49:41Z")

</div>

Another slightly annoying quirk. If I have selected a subtag and try to collapse the parent tag, I can’t

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [June 27, 2021, 8:26am UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/60 "2021-06-27T08:26:18Z")

</div>

> [@AnKingMed](#):
>
> In past add-ons I’ve used for the sidebar, you could edit the entire tag as opposed to just the subtag (i.e. it would bring up a dialog with the entire tag::subtag::subtag).

The idea was that you’d use drag & drop for modifying the hierarchy and renaming for modifying the node itself. It’s supposed to be more user-friendly, as you don’t have to bother with the special hierarchy syntax, and more ergonomic, as it removes the necessity of a separate dialogue.  
For more intricate operations, there’s Find & Replace.

> [@AnKingMed](#):
>
> There is only one card that has subtag2 and the sidebar keeps the tag there even after deleting it until running clear unused tags. I tried just renaming the subtag in the sidebar to nothing

Not sure I understand. Can’t you just use the delete action?

> [@AnKingMed](#):
>
> Another slightly annoying quirk. If I have selected a subtag and try to collapse the parent tag, I can’t

Yep, that’s the same bug as @kleinerpirat’s reported above. It was supposed to be fixed in beta 3.

---

<div class="post-metadata">

**Author:** ![AnKingMed](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ankingmed/32/32686_2.png) [@AnKingMed](https://forums.ankiweb.net/u/AnKingMed)\
**Post date:** [June 27, 2021, 4:54pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/61 "2021-06-27T16:54:23Z")

</div>

@Rumo

I was sent a deck with tag “tag::subtag1::subtag2::subtag3” and I wanted to change it to “tag::subtag2”. Is the only option right now Find & Replace? I’m not sure how much others used that feature when it was in BetterTags but I did quite often. I do think the user friendly design now is great, but it would be helpful to modify the entire tag for these instances

> [@Rumo](#):
>
> Not sure I understand. Can’t you just use the delete action?

I couldn’t use delete because that would delete the entire tag and I wanted the tag to stay on there. If I delete “subtag3” in the above example, everything else goes with it. So I renamed them manually on each card to “tag::subtag2” but as I was renaming, it didn’t delete “tag::subtag1::subtag2::subtag3” which was no longer on any cards. I had to use clear unused tags to do that.

> [@Rumo](#):
>
> Yep, that’s the same bug as @kleinerpirat’s reported above. It was supposed to be fixed in beta 3.

I’m running beta3 right now and still having this issue

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [June 27, 2021, 5:42pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/62 "2021-06-27T17:42:01Z")

</div>

> [@AnKingMed](#):
>
> I’m running beta3 right now and still having this issue

The fix ([PR #1252](https://github.com/ankitects/anki/pull/1252)) is coming with beta 4 👍

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [June 27, 2021, 6:09pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/63 "2021-06-27T18:09:44Z")

</div>

> [@AnKingMed](#):
>
> I was sent a deck with tag “tag::subtag1::subtag2::subtag3” and I wanted to change it to “tag::subtag2”.

Ah, okay. In that case, you would have to drop `subtag3` onto `tag`, delete `subtag1`, and rename `subtag3` to `subtag1`. I can see how this got more complicated with the new behaviour, but not sure if it’s worth adding a separate context action.

> [@AnKingMed](#):
>
> I’m running beta3 right now and still having this issue

The fix didn’t make it into beta 3 due to a minor misunderstanding, but is now merged as @kleinerpirat has clarfied. Sorry for being unclear.

[Previous page](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664.md?page=2)

[Next page](https://forums.ankiweb.net/t/anki-2-1-45-beta/10664.md?page=4)
