Noctalia/matugen theme template is never rendered: placeholder in comment #1
Labels
No labels
accessibility
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tylerstyle/matrix-rat#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tested on NixOS with Noctalia v5.4.1 at
0dd9b67.Bug
The header comment of
contrib/themes/noctalia.tomlcontains a literal{{colors.<name>.default.hex}}. Noctalia renders placeholders in comments too, can't resolve<name>, and refuses to write the output:So
~/.config/matrix-rat/themes/noctalia.tomlis never created. matugen uses the same file, so it's likely affected too (not tested here).Fix: remove the braces from that comment. Tested locally: Noctalia then renders the theme (
noctalia msg templates-apply), andcargo teststill passes (103 passed, 2 ignored).Docs
contrib/themes/README.mdusesmatrix-rat --print-template/--reload-themebut never says how to install the program.post_hookruns inside Noctalia's own environment, so it needs an absolute path, orcargo install --path .with~/.cargo/binon PATH.$XDG_CONFIG_HOMEpaths work even when the variable is unset (Noctalia falls back to~/.config).Tooling
scripts/check.shassumesrustfmtandclippyare installed.shell.nixdoesn't provide them, and clippy must match the systemrustcexactly (mixing 1.97/1.99 fails with E0514).Results here
fmt ✓, clippy (1.99.1) ✓ 0 warnings, tests (1.97.1) 103 passed / 2 ignored, build ✓.
🤖 Generated with Claude Code
Taken in with
dd24771:contrib/themes/README.mdexplains thatpost_hookruns in Noctalia's environment (PATH or full path), that it is optional because of the file watcher, and the$XDG_CONFIG_HOMEfallback. The Noctalia template is marked as tested with v5.4.1.shell.nixnow provides rustc, cargo, clippy and rustfmt from one nixpkgs, so they always match;nix-shell --run scripts/check.shis the documented way to run the check. Verified here that the shell gives rustc 1.99.1 / clippy 0.1.99.matugen, wallust and pywal remain untested against the real tools.