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)

Latest Comments

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

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.

AlexBocken commented on 2024-06-08 09:38 (UTC)

@Ketchup901 Thanks for the report. You're right, I've just tested it and it seems like nodejs-lts-iron is the oldest which is still supported. I've bumped the required nodejs version appropriately, thanks!

Ketchup901 commented on 2024-06-07 18:01 (UTC)

node:internal/process/esm_loader:40
      internalBinding('errors').triggerUncaughtException(
                                ^
Error: tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0
    at X (file:///home/user/.cache/pikaur/build/anki/src/anki-24.06/out/node_modules/tsx/dist/esm/index.mjs:1:1920)
    at Hooks.addCustomLoader (node:internal/modules/esm/hooks:202:24)
    at Hooks.register (node:internal/modules/esm/hooks:168:16)
    at async initializeHooks (node:internal/modules/esm/utils:233:5)
    at async customizedModuleWorker (node:internal/modules/esm/worker:104:24)

Node.js v18.20.3

It worked when I replaced nodejs-lts-hydrogen with nodejs.

AlexBocken commented on 2024-06-07 10:00 (UTC)

@misc please let me know if the problem with yarn persists with the update. I could not recreate the issue on various platforms.