Nixpkgs version
Steps to reproduce
Include anki in system packages in configuration with most current nixpkgs flake.
Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
https://hydra.nixos.org/build/305729662
Relevant log output
Compiling anki_i18n v0.0.0 (/build/source/rslib/i18n)
error: unicode codepoint changing visible direction of text present in literal
--> /build/source/out/rust/release/build/anki_i18n-235c86e95e6cbc1f/out/strings.rs:19277:22
|
19277 | "qt_misc" => r##"qt-misc-addon-will-be-installed-when-a = افزونه بعد از باز کردن پروفایل نصب خواهد شد.
| ______________________^
19278 | | qt-misc-addons = افزونهها
19279 | | qt-misc-all-cards-notes-and-media-for = تمام کارتها، یادداشتها و فایلهای رسانه برای این پروفایل حذف خواهد شد. آیا از انجام این عمل ...ینا
19280 | | qt-misc-all-cards-notes-and-media-for2 = تمامی کارت ها، یادداشت ها، و رسانه های پروفایل "{ $name }" حذف خواهند شد. آیا از انجام این عمل ا...
... |
19292 | | qt-misc-copy-to-clipboard = �کپی به حافظه
| | - '\u{202b}'
... |
19354 | | "##,
| |___^ this literal contains an invisible unicode text flow control codepoint
|
= note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
= note: `#[deny(text_direction_codepoint_in_literal)]` on by default
= help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
|
19292 - qt-misc-copy-to-clipboard = �کپی به حافظه
19292 + qt-misc-copy-to-clipboard = \u{202b}کپی به حافظه
|
error: unicode codepoint changing visible direction of text present in literal
--> /build/source/out/rust/release/build/anki_i18n-235c86e95e6cbc1f/out/strings.rs:19877:21
|
19877 | "addons" => r##"addons-possibly-involved = افزونههای احتمالاً دخیل: { $addons }
| _____________________^
19878 | | addons-failed-to-load =
19879 | | خطا در بارگذاری افزونههای نصب شده. اگر مشکل ادامه داشت، لطفاً به مسیر ابزارها>افزونهها در نوار ابزار مراجعه کرده، و افزونهها ر...یرفع
... |
19905 | | addons-configuration = �پیکربندی
| | - '\u{202b}'
... |
19952 | | addons-choose-update-update-all = بروزرسانی همه
19953 | | "##,
| |___^ this literal contains an invisible unicode text flow control codepoint
|
= note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
= help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
|
19905 - addons-configuration = �پیکربندی
19905 + addons-configuration = \u{202b}پیکربندی
|
error: unicode codepoint changing visible direction of text present in literal
--> /build/source/out/rust/release/build/anki_i18n-235c86e95e6cbc1f/out/strings.rs:20144:22
|
20144 | "editing" => r##"editing-actual-size = تغییر اندازه واقعی
| ______________________^
20145 | | editing-add-media = افزودن رسانه
20146 | | editing-align-left = چینش چپ
20147 | | editing-align-right = چینش راست
... |
20172 | | editing-jump-to-tags-with-ctrlandshiftandt = رفتن به برچسبها �با کنترل+شیفت+T
| | - '\u{202b}'
... |
20179 | | editing-mathjax-inline = �MathJax درون خطی
| | - '\u{202b}'
... |
20246 | | editing-html-editor = ویرایشگر HTML
20247 | | "##,
| |___^ this literal contains invisible unicode text flow control codepoints
|
= note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
= help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
|
20172 ~ editing-jump-to-tags-with-ctrlandshiftandt = رفتن به برچسبها \u{202b}با کنترل+شیفت+T
20173 | editing-justify = همتراز کردن
...
20178 | editing-mathjax-chemistry = فرمول شیمی MathJax
20179 ~ editing-mathjax-inline = \u{202b}MathJax درون خطی
|
error: unicode codepoint changing visible direction of text present in literal
--> /build/source/out/rust/release/build/anki_i18n-235c86e95e6cbc1f/out/strings.rs:20866:21
|
20866 | "adding" => r##"adding-add-shortcut-ctrlandenter = افزودن (میانبر: کنترل+اینتر)
| _____________________^
20867 | | adding-added = اضافهشده
20868 | | adding-discard-current-input = کنارگذاشتن ورودی فعلی؟
20869 | | adding-keep-editing = ادامۀ ویرایش
... |
20873 | | adding-shortcut = میانبُر: �{ $val }
| | - '\u{202a}'
... |
20877 | | adding-cloze-outside-cloze-field = جاخالی فقط در فیلدهای با فیلتر 'cloze:'عمل میکند. این فیلد معمولاً فیلد اول است.
20878 | | "##,
| |___^ this literal contains an invisible unicode text flow control codepoint
|
= note: these kind of unicode codepoints change the way text flows on applications that support them, but can cause confusion because they change the order of characters on the screen
= help: if their presence wasn't intentional, you can remove them
help: if you want to keep them but make them visible in your source code, you can escape them
|
20873 - adding-shortcut = میانبُر: �{ $val }
20873 + adding-shortcut = میانبُر: \u{202a}{ $val }
|
warning: allow(text_direction_codepoint_in_literal) is ignored unless specified at crate level
--> rslib/i18n/src/generated.rs:7:10
|
7 | #![allow(text_direction_codepoint_in_literal)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_attributes)]` on by default
warning: `anki_i18n` (lib) generated 1 warning
error: could not compile `anki_i18n` (lib) due to 4 previous errors; 1 warning emitted
Failed with code Some(101): cargo build --release --locked -p anki_i18n
ninja: build stopped: subcommand failed.
Build failed.
Additional context
No response
System metadata
- system: `"x86_64-linux"`
- host os: `Linux 6.12.42, NixOS, 25.11 (Xantusia), 25.11.20250819.2007595`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.28.4`
- channels(root): `"nixos-24.05"`
- nixpkgs: `/nix/store/pxnx7dbr0pz3qpgw2r315wdbb00afdw7-source`
Notify maintainers
@euank @oxij
Thanks for your work in making anki available through nixpkgs!
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Steps to reproduce
Include
ankiin system packages in configuration with most current nixpkgs flake.Can Hydra reproduce this build failure?
Yes, Hydra can reproduce this build failure.
Link to Hydra build job
https://hydra.nixos.org/build/305729662
Relevant log output
Additional context
No response
System metadata
Notify maintainers
@euank @oxij
Thanks for your work in making anki available through nixpkgs!
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.