Package Details: anki 24.11-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: 184
Popularity: 6.78
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-12-23 08:04 (UTC)

Required by (2)

Sources (7)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 31 Next › Last »

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.

khughitt commented on 2024-08-10 12:27 (UTC)

I've been running into build issues in the same place with the latest PKGBUILD:

error Can't make a request in offline mode ("https://registry.yarnpkg.com/@mdi/svg/-/svg-7.4.47.tgz")

(I'm not offline during the builds..)

It's always the same svg pkg that has problems. I tried wiping yarn cache, but no luck.

AlexBocken commented on 2024-08-02 09:40 (UTC) (edited on 2024-08-02 10:10 (UTC) by AlexBocken)

@jodo Thanks for the report! Seems like the "time" crate version specified by anki does not build with rust 1.80.0. With the crate update to 0.3.36 this seems to have been fixed: https://github.com/time-rs/time/issues/696

I'm pushing an update to the PKGBUILD (24.06.3-2), manually updating the time package in particular, until upstream will move to a newer version.

jodo commented on 2024-08-02 00:12 (UTC)

On commit 82fdd19, getting the following error when running makepkg:

error[E0282]: type annotations needed for `Box<_>`
  --> /usr/src/debug/anki/cargo-cache/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

AlexBocken commented on 2024-06-22 07:36 (UTC) (edited on 2024-06-22 07:36 (UTC) by AlexBocken)

To anyone having the node: text file busy error: I was finally able to recreate the issue. The issue seems to arise when you update node and then try to update anki without restarting inbetween. Seems like until a restart is done, some things still expect the old node version to be present?

If someone who knows more about node knows how to fix this without a reboot please let me know, maybe this is something which could be integrated into the PKGBUILD for user simplicity. For now, consider rebooting inbetween.