# Anki 2.1.45 Alpha

**URL:** <https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061>\
**Category:** Beta Testing\
**Created:** [May 17, 2021, 1:36pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061 "2021-05-17T13:36:09Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [May 17, 2021, 1:36pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/1 "2021-05-17T13:36:09Z")

</div>

Hi all,

A new alpha release is available. Please see the change notes for more info: [Changes in 2.1.45 - Anki Betas](https://betas.ankiweb.net/anki2.1.45.html)

---

<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:** [May 17, 2021, 3:38pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/2 "2021-05-17T15:38:40Z")

</div>

Reading that changelog made me feel like christmas came super early this year 🎄Thanks for your hard work @dae, @hengiesel, @Rumo and everyone else!

I won’t go into all the add-ons that break with this update (most have to do with a change/removal of `NoteType`), since you’ll probably publish a porting guide soon.

The following issues occur with all add-ons manually disabled. I will expand the list if I stumble upon other irregularities:

**General**

- I can’t start without add-ons by holding Shift on launch. Neither on Linux nor on Windows. Is anyone else experiencing this issue?

**Browser issue, probably due to add-on**

- Switching to Note-View, then back to Card-View and then back to Note View crashes Anki for me. I get stuck in the following process:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/9/98d34bd4edf94919760d605874e608aaaaf5160f.png)

I think I know where this error stems from. I had used the Advanced Browser add-on and forgot to remove an extra column (Flag) before updating to 2.1.45. It left a remnant column called “Add-on”.

**Update** : I reinstalled 2.1.44, disabled the extra column of Advanced Browser and reinstalled 2.1.45. The extra column was still there. After removing that “Add-on”-column via the GUI (as suggested by Rumo below), Anki doesn’t crash anymore, but it throws the following exception when switching between the two views:

```auto
Caught exception:
Traceback (most recent call last):
  File "aqt\browser\table\table.py", line 362, in _on_sort_column_changed
  File "aqt\browser\table\model.py", line 225, in column_at_section
  File "aqt\browser\table\state.py", line 40, in column_key_at
IndexError: list index out of range

```

---

<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:** [May 17, 2021, 3:59pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/3 "2021-05-17T15:59:15Z")

</div>

> [@kleinerpirat](#):
>
> I can’t start without add-ons by holding Shift on launch. Neither on Linux nor on Windows. Is anyone else experiencing this issue?

I can confirm this.

> [@kleinerpirat](#):
>
> Switching to Note-View, then back to Card-View and then back to Note View crashes Anki for me.  
> …  
> **Edit** : I think I know where this error stems from. I had Advanced Browser add-on enabled and forgot to disable the extra column before updating to 2.1.45. It left a remnant column called “Add-on”.

This is very likely the cause, but it shouldn’t happen, and in fact, I thought this exact bug had been fixed. I’ll see what I can do.  
By the way, you should be able to disable “Add-on” columns from the GUI now.

---

<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:** [May 17, 2021, 7:36pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/4 "2021-05-17T19:36:56Z")

</div>

The new toolbar looks awesome. I’ve noticed, however, that the buttons added by add-ons look quite different from those that are built-in.

![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/2/2ce8846595695299edaa01d6176aefe305d239ba.png)

I tried to tweak a little the css and I got this:

![immagine](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/3a8d8f9c50a1e55af8b6a91e7c3f33658ffe4c5f.png)

which, IMHO, gives the toolbar a more consistent look.

---

<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:** [May 17, 2021, 7:53pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/5 "2021-05-17T19:53:04Z")

</div>

**Just my guess:** I believe if the add-on devs use the new toolbar API to add their buttons, they will look just like the default ones. The ugly look (hopefully) only applies to buttons which are added in the legacy-way, which is kept for compatibility reasons.

However, I really like your CSS tweak and even if it’s just for this short transition phase, it would be nice if it were integrated. 👏

---

<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:** [May 17, 2021, 7:55pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/6 "2021-05-17T19:55:40Z")

</div>

Ah, I see. Thanks for the explanation. 👍

---

<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:** [May 17, 2021, 9:44pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/7 "2021-05-17T21:44:39Z")

</div>

**Thanks for this awesome update!**

**About the previous comments**  
on windows 10 the “safe mode” on anki don’t appear to be disabling all the add-ons and is working like a normal mode

**About the…**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/c3715af2f979f79fcf20e53e4ce7f42733a379db.png)  
personally i think it is better… (_yeah i know i hate this type of guy as well, just enjoy the update without complaining about it_)

1. the place to type be under the configuration rather than on the right example: (could have an option on the preference tab relating to this type of styling → on left, center, right)  
New cards/day (i)  
9999
2. the writing “right to left” direction feels weirds since the normal for users is “left to right” like what we are doing right now

Don’t take theses ideas with seriousness they are only personal preference

---

<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:** [May 18, 2021, 12:48am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/8 "2021-05-18T00:48:22Z")

</div>

The next alpha will add an alias for NoteType. Feel free to post other add-on errors you get (perhaps in a different thread) - many may be unavoidable due to how much has been changed, but sometimes breakages are unintentional and easy to fix.

@Ab_Bc if those styling changes don’t cause a regression for other add-ons, please feel free to send through a PR

Left-aligning the single-row items makes them feel a bit unbalanced, but maybe we could do that for the learning steps when they take up a whole line? Anyone else want to chime in?

 ![Screen Shot 2021-05-18 at 10.46.01 am](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/4/40b2cdf8f99396e9d0480585c561a11b4d2f61cb.png)

---

<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:** [May 18, 2021, 7:08am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/9 "2021-05-18T07:08:48Z")

</div>

I don’t know exactly how to work with PRs, but since the changes I made are very simple I think I can list them here:

In `.linkb` I added:

`background-color: white; border: 1px solid var(--medium-border);`

And in `.topbut` I added:

`position: relative; bottom: 2.7px;`

---

<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:** [May 18, 2021, 8:20am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/10 "2021-05-18T08:20:30Z")

</div>

> [@Ab\_Bc](#):
>
> background-color: white; border: 1px solid var(–medium-border);

In order to keep this compatible with night mode, we might have to introduce a new CSS variable for the button background color and border color OR use an existing class that already imitates the Svelte buttons.

I suggest the following:

```auto
:root[class*=night-mode] {
   ...
   --button-bg: #666;
   --button-border: #666;
}

:root {
   ...
   --button-bg: white;
   --button-border: var(--medium-border);
}

```

You can find the variable definitions here: [anki/ts/sass/\_vars.scss at 5449198649c623fa65ae8d184925ef9c6aae5a71 · ankitects/anki · GitHub](https://github.com/ankitects/anki/blob/5449198649c623fa65ae8d184925ef9c6aae5a71/ts/sass/_vars.scss)

---

<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:** [May 18, 2021, 8:25am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/11 "2021-05-18T08:25:10Z")

</div>

Right. And in addition the changes I posted make the buttons have always the same look even when the user hovers on or click on them, so (in light mode) something like

`.linkb:hover { background-color: #ebebeb; }`

should be added.

---

<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:** [May 18, 2021, 8:28am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/12 "2021-05-18T08:28:53Z")

</div>

Thanks a lot for such an awesome update, the new features are terrific!

Unfortunately, Closet for Anki, / Asset Manager / Anki Persistence, all three esential to me, seems to be not working properly with the update:

> An add-on you installed failed to load. If problems persist, please go to the Tools\>Add-ons menu, and disable or delete the add-on.
> 
> When loading ‘⁨Closet For Anki⁩’:  
> ⁨Traceback (most recent call last):  
> File “aqt\addons.py”, line 217, in loadAddons  
> File “C:\Users\sergi\AppData\Roaming\Anki2\addons21\272311064\__init_\_.py”, line 1, in   
> from .src import init  
> File “C:\Users\x\AppData\Roaming\Anki2\addons21\272311064\src\__init_\_.py”, line 3, in   
> from .hook import setup\_script, install\_script  
> File “C:\Users\sergi\AppData\Roaming\Anki2\addons21\272311064\src\hook.py”, line 25, in   
> if am := find\_addon\_by\_name(“Asset Manager”):  
> File “C:\Users\x\AppData\Roaming\Anki2\addons21\272311064\src\utils.py”, line 19, in find\_addon\_by\_name  
> return import\_module(name)  
> File “importlib\__init_\_.py”, line 127, in import\_module  
> File “C:\Users\x\AppData\Roaming\Anki2\addons21\656021484\__init_\_.py”, line 10, in   
> from .src import setup  
> File “C:\Users\sergi\AppData\Roaming\Anki2\addons21\656021484\src\__init_\_.py”, line 1, in   
> from .webview import init\_webview  
> File “C:\Users\x\AppData\Roaming\Anki2\addons21\656021484\src\webview\__init_\_.py”, line 7, in   
> from …config import maybe\_get\_setting\_from\_card  
> File “C:\Users\x\AppData\Roaming\Anki2\addons21\656021484\src\config.py”, line 7, in   
> from anki.models import NoteType  
> ImportError: cannot import name ‘NoteType’ from ‘anki.models’ (C:\Program Files\Anki\anki\models.pyc)  
> ⁩

On the other hand, on a purely aesthetic note, the font size used in the new deck option window, maybe look too large compared to other elements of the GUI, specially for those of using the user interface size option with a value larger than 100.

 ![Captura de pantalla 2021-05-18 102454](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/b70522d57fa183d1cab6f31429b7310feb0074a1.png)

---

<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:** [May 18, 2021, 8:38am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/13 "2021-05-18T08:38:22Z")

</div>

> [@cqg](#):
>
> Unfortunately, Closet for Anki, / Asset Manager / Anki Persistence, all three esential to me, seems to be not working properly with the update:

I think most of those will be fixed with this change:

> [@dae](#):
>
> The next alpha will add an alias for NoteType.

> [@cqg](#):
>
> On the other hand, on a purely aesthetic note, the font size used in the new deck option window, maybe look too large compared to other elements of the GUI

Completely agree, all elements seem a bit too big. Also, having all options on one page is a bit overwhelming. Maybe tabs (like in previous versions) would help here. I would prefer not having to scroll to get to the desired option.

---

<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:** [May 18, 2021, 9:03am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/14 "2021-05-18T09:03:56Z")

</div>

It looks much better in Damien’s screenshot, so I assume the following issues are Windows-specific:

1. There are no window margins.
2. I don’t think the font of the labels is too small per se, it’s the same size as in other web views, but it looks rather unbalanced because the counters, the button labels and the section headings are huge. Even the tooltips use a larger font size.

@NameLessGO, I think it looks odd because the window is extremely wide in your screenshot.

Another minor point: The counters seem to use the system language rather than the Anki setting. I.e., I see decimal commas even though my Anki is set to English.

---

<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:** [May 18, 2021, 9:24am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/15 "2021-05-18T09:24:08Z")

</div>

> [@Rumo](#):
>
> It looks much better in Damien’s screenshot, so I assume the following issues are Windows-specific:

On my Linux system, the options container seems to have a max-width but almost no margin when you minimize the window’s width:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/8/85003e43ba705cd4ddfe061b51d0bbb69fa131e0.png)

* * *

The single-page layout could make it easier to share deck options via screenshots, but only if the options fit onto the vertical screen-space. As you can see on my screenshot, even with a maximized window at 1920x1080, only half of the content is visible.

---

<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:** [May 18, 2021, 9:31am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/16 "2021-05-18T09:31:40Z")

</div>

I’m getting an error message when clicking in the new “Toggle Showing Card / Notes” icon on the browser:

> Debug info:
> 
> Anki 2.1.45 (10bfb95f) 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-05-17 13:47:56
> 
> Caught exception:
> 
> Traceback (most recent call last):
> 
> File “aqt\browser\table\table.py”, line 362, in \_on\_sort\_column\_changed
> 
> File “aqt\browser\table\model.py”, line 225, in column\_at\_section
> 
> File “aqt\browser\table\state.py”, line 40, in column\_key\_at
> 
> IndexError: list index out of range

I also got this problem after a few uses of the new alpha version:

> [@Failed to execute script runanki](https://forums.ankiweb.net/t/failed-to-execute-script-runanki/3765):
>
> Hello. Thank you in advance for your help and consideration. I updated anki and was using it without any issues. Today I got a lovely message from my computer. The message was “Fatal error detected Failed to execute script runanki”. I uninstalled and tried installing a few older versions. That didn’t help. I googled the issue and saw that other people have had the same issue in the past. I followed the initial advice given to those people. I got a few screenshots out of that. Any help would…

I’ve never had this problem before. Just restarting the computer solved it

---

<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:** [May 18, 2021, 9:39am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/17 "2021-05-18T09:39:17Z")

</div>

> [@cqg](#):
>
> I’m getting an error message when clicking in the new “Toggle Showing Card / Notes” icon on the browser:

Most likely the same bug as reported by @kleinerpirat. I’m positive that it’s fixed on the main branch.

---

<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:** [May 18, 2021, 10:12am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/18 "2021-05-18T10:12:25Z")

</div>

As a reference, this is how I hacked my buttons for night mode:

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/f0560827d05439398bc7f17e6fcc46294d8c70a4.png)

```auto
.linkb {
    ...
    background-color: #666;
    border-style: none;
    margin-left: 1px;
    padding-bottom: 2.7px;
}

.topbut {
    ...
    filter: invert(1);
}

```

---

<div class="post-metadata">

**Author:** ![NickFlint](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/nickflint/32/35471_2.png) [@NickFlint](https://forums.ankiweb.net/u/NickFlint)\
**Post date:** [May 18, 2021, 11:43am UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/19 "2021-05-18T11:43:53Z")

</div>

Just wanted to add my thoughts in at the moment. Loving all the new updates and I’m excited to try the new scheduler once I can get things working

It broke ~15 add-ons for me. I’ll get an updated list on here once I have time to figure out exactly which ones

Personally I don’t love the look of the new settings. I think the settings are already not super user friendly but the new look is worse. Having things organized by tabs was much simpler. There’s too much space between text and input box with the new look. I’d strongly favor reverting to the old look unless there’s an overwhelming majority that prefer the new one.

---

<div class="post-metadata">

**Author:** ![whatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/whatchu/32/10663_2.png) [@whatchu](https://forums.ankiweb.net/u/whatchu)\
**Post date:** [May 18, 2021, 12:59pm UTC](https://forums.ankiweb.net/t/anki-2-1-45-alpha/10061/20 "2021-05-18T12:59:26Z")

</div>

Vertical, mobile friendly design, which makes little sense in the widescreen era… Factoring this, im not loving the new design

This is the reason [this add-on](https://ankiweb.net/shared/info/831846358) (browser side-by-side) and similars should be default in desktop anki

The new design does look more modern and neat. And i have no idea how would you use horizontal space to make it look as good as the new proposal🤷‍♂️

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