mlvzk / manix

A fast CLI documentation searcher for Nix.
Mozilla Public License 2.0
348 stars 19 forks source link

No hm options #24

Open sweenu opened 2 years ago

sweenu commented 2 years ago

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?

berbiche commented 2 years ago

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>.

chasecaleb commented 2 years ago

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

arjan-s commented 1 year ago

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?

IogaMaster commented 8 months ago

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

arjan-s commented 8 months ago

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

IogaMaster commented 8 months ago

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