Closed takeda closed 1 year ago
You updated to what version? Did you run sudo nix-channel --update
? Can you post the output of sudo nix-channel --list
?
Yes, I run: sudo -H nix-channel --update
The output is:
darwin https://github.com/LnL7/nix-darwin/archive/master.tar.gz
home-manager https://github.com/nix-community/home-manager/archive/master.tar.gz
nixpkgs https://nixos.org/channels/nixpkgs-unstable
cc @pennae, since this class of errors has historically been following nixpkgs changes, and you were de-docbookifying things recently.
the error message from schema validation is (unsurprisingly) not very useful. we'd guess that the actual error as a good distance away in the xml file, would need the file to find out. given that the home-manager docs system is neither fully nixpkgs nor fully its own we're not even sure we can do anything to resolve this
My current guess (still investigating) is the change to mdDoc
, which is used in a couple places in HM.
Couldn't reproduce in CI. :( @takeda could you share the contents of /nix/store/bk13pbmm5lw1nvm1b8xajzbbj4vrsqar-manual-combined/manual-combined.xml
?
Here's my manual-combined.xml file (in a ZIP archive to satisfy GitHub's file upload restrictions).
Here's my manual-combined.xml.gz
From what I can tell _module.args
contains <simpara>
inside <para>
, which is not allowed. For example
<para><simpara><varname>lib</varname>: The nixpkgs library.</simpara>
</para>
I've seen this before and thought it was fixed. I'll have a look at what has changed. @takeda Meanwhile, could you make certain that you are using an up to date version of Home Manager?
It looks like https://github.com/nix-community/home-manager/issues/3680#issuecomment-1441034340 still applies.
Finally managed to reproduce this. It happens iff using a post-https://github.com/NixOS/nixpkgs/pull/237557 nixpkgs (so, as of now, any unstable channel) AND mdDoc
is still a _type
wrapper, which https://github.com/NixOS/nixpkgs/pull/237557 undid but nix-darwin works around here.
So the underlying problem is still the same: HM is not ready to properly render _module.args
's description, but it was now made visible again.
Yes, we've also run into this in nix-darwin. I am working on moving nix-darwin over to using the new upstream NixOS options processor and documentation generator; it is quite easy and removes a lot of duplicated code and complexity, and the old DocBook options can be converted to Markdown automatically. Would Home Manager be interested in moving from nmd
to that? I am happy to work on this for HM too if so.
Yes yes yes yes yes please yes.
lol, noted :)
I have to finish off nix-darwin first, and Home Manager has an actual manual and not just configuration docs, so it'll probably be a few days. In the meantime I would recommend affected users temporarily disable manual.manpages.enable
(and manual.html.enable
if you have it on) and look up options in the online copy instead. You can subscribe to this issue to learn when you can toggle it back on.
I would recommend affected users temporarily disable
manual.manpages.enable
I can confirm that disabling this option in my home.nix file allows me to get past this problem, and on to the next problem.
I've seen this before and thought it was fixed. I'll have a look at what has changed. @takeda Meanwhile, could you make certain that you are using an up to date version of Home Manager?
@rycee I run nix-channel --update
and it updated nixpkgs, home-manager, and nix-darwin to whatever was recent at the time I created the ticket.
If there's a way to do a double check it somehow (like maybe I can get the git hash for each channel) then let me know and I check. But those channels should be latest as of yesterday.
@takeda it's fine, we've confirmed the bug is with the latest versions.
@takeda Could you try pulling the latest home-manager master now and see if the documentation builds?
@takeda Could you try pulling the latest home-manager master now and see if the documentation builds?
Fwiw it fixed it for me. Thanks.
@hraban Thanks a lot! Would you mind trying it once more? I made a slightly different solution that should be better.
@rycee this version works as well:
'github:nix-community/home-manager/29872a1c8f5ed2fde270afb0583d1fabce5e0459' (2023-06-24)
→ 'github:nix-community/home-manager/68aebb45de644b81a71f0c7b8b22ad51c9a0df7a' (2023-06-24)
@hraban Excellent, thanks a lot for trying it out! I'll close this issue with the hope that it is not just working for you. If anybody still have problems, please reopen the issue.
@ncfavier @rycee apologies for the delay. I'm confirming that the issue was resolved for me as well. Thank you!
Are you following the right branch?
Is there an existing issue for this?
Issue description
I updated nix-darwin, home-manager and nixpkgs and after that it refuses to build due to issues with manpages:
Here's output of
nix log /nix/store/njjcgh3bkc8p0md376m1y00vp7j96yg8-manual-combined.drv
Maintainer CC
No response
System information