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: 173
Popularity: 5.65
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Latest Comments

1 2 3 4 5 6 .. 30 Next › Last »

mirai commented on 2024-11-07 08:49 (UTC) (edited on 2024-11-07 08:49 (UTC) by mirai)

that would explain why the version of anki is so old. I remember once having to reinstall anki, maybe i screwed up at that point forgetting I did it locally at first. When running

$ which anki
/usr/local/bin/anki

$ where anki
/usr/local/bin/anki
/usr/bin/anki
/bin/anki

so I must have just confused the installs a long time ago and only now did it come to bite me.

AlexBocken commented on 2024-11-06 21:08 (UTC)

@mirai thanks for getting back! Good to hear. It seems like you probably had anki installed twice then, once via your package manager and maybe once via a local build. Running anki then probably preferred the locally built one. The package does not deploy the uninstall script so that must have come from the local version if you had it on your system.

For future reference you can check if a package has installed a program (and which package) via a quick pacman -Qo $(which anki). That would have probably have shown you something like the following:

◆ ~ ❯❯❯ pacman -Qo $(which anki)
error: No package owns /usr/local/bin/anki

Thanks again for the quick communication, hope I could help.

mirai commented on 2024-11-06 21:00 (UTC) (edited on 2024-11-06 21:01 (UTC) by mirai)

Reinstalling did the job spot on, but I'm still quite confused as to what would have caused that. Even after clearing the cache it wouldn't rebuild properly, forcing me to use the uninstall script.

AlexBocken commented on 2024-11-06 20:42 (UTC)

@mirai Thanks for the report! anki -v displays the correct version for me. Could you retry a re-install with a clean AUR helper cache? I'm not quite sure why but I'm assuming you have a faulty cache which reinstalls on older build for you.

mirai commented on 2024-11-06 20:28 (UTC) (edited on 2024-11-06 20:32 (UTC) by mirai)

installing the package displays me running the version 24.06.3-2, but anki -v and the about section in anki itself say I'm on Anki 24.04.1. I've only noticed due to Anki Connect's newest version being incompatible with .04 Anki.

snippet of the installation

$ ...
Package (2)  Old Version  New Version  Net Change

anki         24.06.3-2    24.06.3-2      0,00 MiB
anki-debug   24.06.3-2    24.06.3-2      0,00 MiB

Total Installed Size:  50,65 MiB
Net Upgrade Size:       0,00 MiB

$ anki -v
Anki starting...
Initial setup...
Preparing to run...
Anki 24.04.1

AlexBocken commented on 2024-10-22 09:23 (UTC)

@tiziodcaio Thanks for the proposal! We're not using the packaged yarn binary but system yarn. I just doubled checked by overwriting the provided yarn script with a dummy script, it never gets called in the install process. Hence your proposal seems to be unnecessary.

This method should integrate well into corepack and other similar tools I believe. Please let me know if this is not the case, I am not too familiar with these tools.

tiziodcaio commented on 2024-10-21 21:30 (UTC) (edited on 2024-10-21 21:30 (UTC) by tiziodcaio)

You might need to add a line like the following patch to get a better experience while using corepack or similar:

diff --git a/PKGBUILD b/PKGBUILD
index 4b420b8..127b27c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -88,6 +88,7 @@ sha256sums=('d0c9d819e87bc404fff7ca7c74880ff8ce1024c683ef939ba312bf37377bbf5f'
 prepare() {
     cd "$pkgname-$pkgver"

+    rm yarn yarn.bat
     patch -p1 < "$srcdir/no-update.patch"
     patch -p1 < "$srcdir/strip-formatter-deps.patch"
     patch -p1 < "$srcdir/strip-type-checking-deps.patch"

AlexBocken commented on 2024-09-17 08:13 (UTC)

Have you already tried running anki with ANKI_WAYLAND=1 as mentioned in https://docs.ankiweb.net/platform/linux/wayland.html ? Maybe this could already resolve your issues but it does not seem like anki fully supports Wayland yet.

Besides this I leave recommendations to users of Wayland here, maybe someone knows a workaround.

sythriox commented on 2024-09-17 07:59 (UTC)

I have not been able to get this to run in a wayland session without considerable text distortion. Running it with QT_QPA_PLATFORM=xcb to force XWayland seems to be the only fix. Anyone found a fix without resorting to XWayland?

muxelplexer commented on 2024-08-28 11:51 (UTC)

Is texlive-most still needed for rendering LaTeX in cards? The package does not exist anymore.