manix icon indicating copy to clipboard operation
manix copied to clipboard

No hm options

Open sweenu opened this issue 3 years ago • 6 comments

I'm getting the following error when updating the cache:

❯ manix "" -u --source hm_options
Building Home Manager Options cache...
Failed to update Home Manager Options

Caused by:
    0: Failed to perform IO on a cache file
    1: No such file or directory (os error 2)
Tip: If you installed your home-manager through configuration.nix you can fix this error by adding the home-manager channel with this command: nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager && nix-channel --update
Building NixOS Options cache...
Building Nixpkgs Tree cache...
Building Nixpkgs Documentation cache...

Here are my channels:

❯ nix-channel --list
home-manager https://github.com/rycee/home-manager/archive/master.tar.gz
nixos https://nixos.org/channels/nixos-unstable

I am using manix 0.6.3. Have I missed something?

sweenu avatar Jan 02 '22 16:01 sweenu

manix uses the wrong search path for recent versions of Home Manager. https://github.com/mlvzk/manix/blob/d08e7ca185445b929f097f8bfb1243a8ef3e10e4/src/options_docsource.rs#L107-L111 <home-manager/doc> should actually be <home-manager/docs>.

berbiche avatar Jan 05 '22 23:01 berbiche

@mlvzk Are you interested in fixing this? I could make a PR for it if you would like.

chasecaleb avatar Mar 10 '22 15:03 chasecaleb

Just found this tool and immediately hit this same issue. Seeing as there aren't any commits for almost 2 years, should this tool be considered abandoned? If so, is there another out there that does the same but works correctly?

arjan-s avatar Mar 08 '23 09:03 arjan-s

@arjan-s Fixed in https://github.com/nix-community/manix

IogaMaster avatar Jan 29 '24 18:01 IogaMaster

Oh that's great news! I totally missed its adoption into nix-community

arjan-s avatar Jan 29 '24 19:01 arjan-s

Yeah, it's still relatively small, based on a fork. I was the shepherd for it's inclusion, and am taking over as the primary maintainer

IogaMaster avatar Jan 29 '24 19:01 IogaMaster