Package Details: anki 24.06.3-2

Git Clone URL: https://aur.archlinux.org/anki.git (read-only, click to copy)
Package Base: anki
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://apps.ankiweb.net/
Keywords: anki languages learning vocabulary
Licenses: AGPL3
Conflicts: anki-bin, anki-git, anki-qt5
Submitter: demize
Maintainer: AlexBocken
Last Packager: AlexBocken
Votes: 169
Popularity: 4.50
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Required by (2)

Sources (7)

Latest Comments

« First ‹ Previous 1 .. 14 15 16 17 18 19 20 21 22 23 24 .. 30 Next › Last »

Munzu commented on 2022-04-29 11:11 (UTC)

@AlexBocken Thank you! It works, Anki is now using Qt5. The issue I mentioned on the Anki forums has been resolved as well.

I've been having another issue with installing add-ons (Anki just says "No updates available" whenever I try to install any add-on). I was hoping it would be resolved by switching back to Qt5 but unfortunately it doesn't seem like it did. Since I've had this issue with other packages like anki-bin, and anki-qt6 as well, it might be a bug in Anki itself. I'll report it in the Anki forums.

AlexBocken commented on 2022-04-29 10:07 (UTC) (edited on 2022-05-13 16:54 (UTC) by AlexBocken)

This is a build of anki which uses Qt6. The Qt6 build seems to still have some issues compared to the Qt5 build, that's why the main package anki is staying on Qt5 for now. Later, if Qt6 becomes more reliable the two packages will merge.

As of 2.1.52:

The errors listed below seem to have been fixed. If you come across other bugs that you do not have with the Qt5 package anki please let me know with a comment here.

Known issues with Qt6 as of 2.1.51:
  • Scrollbar on buttons in review mode
  • Lag in displaying cards every fourth card or so

AlexBocken commented on 2022-04-29 09:27 (UTC) (edited on 2022-04-29 10:07 (UTC) by AlexBocken)

@Munzu Currently I'm only providing Qt5 dependencies. anki out of the box prefers Qt6 so switches to that if possible. Another package you installed probably pulled python-pyqt6-webengine.

Edit: this version is now forced to use Qt5. Let me know if errors persist.

Munzu commented on 2022-04-27 15:25 (UTC)

Is this package supposed to build Anki with Qt6? I'm seeing Qt5 dependencies listed but when I install this package and go to Anki's "About", it says

Version ⁨2.1.51 (11b89b2f)⁩ Python 3.10.4 Qt 6.3.0 PyQt 6.3.0

MarcoDiFrancesco commented on 2022-04-27 11:09 (UTC)

@AlexBocken Rebuilding twice fixed the problem. Thanks!

AlexBocken commented on 2022-04-26 10:41 (UTC)

@MarcoDiFrancesco Have you tried building twice? (without deleting) I came across this error myself as well but it always went away on the second run.

MarcoDiFrancesco commented on 2022-04-26 10:38 (UTC) (edited on 2022-04-26 10:39 (UTC) by MarcoDiFrancesco)

Error when building sqlite3, is this problem related to the github issue?

Before building I deleted the ~/.cache/bazel directory.

INFO: From Running Cargo build script libsqlite3_sys:
Build Script Warning: sqlite3/sqlite3.c: In function 'sqlite3Fts5IndexQuery':
Build Script Warning: sqlite3/sqlite3.c:228444:18: warning: 'memcpy' specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
Build Script Warning: 228444 |     if( nToken ) memcpy(&buf.p[1], pToken, nToken);
Build Script Warning:        |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: /home/marco/.cache/yay/anki/src/anki-2.1.51/ts/editor/BUILD.bazel:35:15: Compiling Svelte ts/editor:svelte failed: Worker process did not return a WorkResponse:

E3LDDfrK commented on 2022-04-23 07:01 (UTC)

That one was messy. The tip to rebuild seems to work. Thanks.

AlexBocken commented on 2022-04-22 10:59 (UTC)

Creating an anki-qt6 seems like not a bad idea!

Nocifer commented on 2022-04-22 09:58 (UTC) (edited on 2022-04-22 10:05 (UTC) by Nocifer)

I consider breaking "quite a few addons" an absolute no-go, so if I were you I'd create a separate anki-qt6 (or some such) package and make sure it also provides anki, so that when a new user attempts to install anki via an AUR helper they'll be given the option of also installing (and thus become aware of the existence of) the more modern anki-qt6.

And in the future, when Qt6 becomes more prevalent and compatibility is no longer an issue, you switch this package to Qt6 by default, create (if needed, again for compatibility reasons) a separate anki-qt5 package, and kill anki-qt6 (i.e. merge it into this one to preserve comments/votes/etc).

EDIT: Or you can just go ahead and make the Qt6 switch in this package right now, and just create a new anki-qt5 package. It all depends on which add-ons will break - e.g. in my case I only really use AnkiConnect, so if that one is compatible I really don't care about making the switch. But my use case is not everybody's use case. And also keep in mind that Qt6 has theming issues in Qt5 environments, like e.g. the very prevalent KDE.