mlvzk / manix

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

Failed to load nixpkgs tree and documentation cache #25

Open kkharji opened 2 years ago

kkharji commented 2 years ago

Hey @mlvzk thanks for this awesome package.

I'm getting two errors in spite of getting results


Failed to load Nixpkgs Tree cache file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Failed to load Nixpkgs Documentation cache file: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Nixpkgs Comments
────────────────────

Any clue what I'm doing wrong. Thanks

teto commented 1 year ago

if you dont use channels, that may be why. I modified NIX_PATH to point at a local checkout export NIX_PATH=nixpkgs=. and then manix could find results, but still with errors for the other sources, home-manager etc. I use flakes but I dont think the tool is ready for it yet ?