mlvzk / manix

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

Manix Crashes on Cache building #31

Open bayou-brogrammer opened 10 months ago

bayou-brogrammer commented 10 months ago

Running manix straight from an install produces the following error:

Building Nixpkgs comments cache...
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/comments_docsource.rs:178:65
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Havent been able to get around this

hmajid2301 commented 10 months ago

I am suffering the same issue!

axelkar commented 9 months ago

This seems to be caused by https://github.com/NixOS/nixpkgs/commit/271eb0299503892944986eb381b79ec09ea2f2a4

https://github.com/NixOS/nixpkgs/tree/271eb0299503892944986eb381b79ec09ea2f2a4/pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo contains an invalid symlink

izelnakri commented 9 months ago

I just had the same issue after nix profile install manix on my machine(which is NOT NixOS). This essentially makes this cli/project useless currently thus would appreciate your attention @mlvzk :

$ uname -a
Linux x1-carbon 6.5.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023 08:37:40 +0000 x86_64 GNU/Linux

$ RUST_BACKTRACE=1 manix fetchurl
Building Nixpkgs comments cache...
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/comments_docsource.rs:178:65
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &F>::call_mut
   4: rayon::iter::plumbing::Folder::consume_iter
   5: rayon::iter::plumbing::bridge_producer_consumer::helper
   6: rayon_core::registry::in_worker
   7: rayon::iter::plumbing::bridge_producer_consumer::helper
   8: rayon_core::registry::in_worker
   9: rayon::iter::plumbing::bridge_producer_consumer::helper
  10: rayon_core::job::StackJob<L,F,R>::run_inline
  11: rayon_core::registry::in_worker
  12: rayon::iter::plumbing::bridge_producer_consumer::helper
  13: rayon_core::registry::in_worker
  14: rayon::iter::plumbing::bridge_producer_consumer::helper
  15: rayon_core::registry::in_worker
  16: rayon::iter::plumbing::bridge_producer_consumer::helper
  17: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute
  18: rayon_core::registry::WorkerThread::execute
  19: rayon_core::registry::WorkerThread::wait_until_cold
  20: rayon_core::registry::in_worker
  21: rayon::iter::plumbing::bridge_producer_consumer::helper
  22: <rayon_core::job::StackJob<L,F,R> as rayon_core::job::Job>::execute
  23: rayon_core::registry::WorkerThread::wait_until_cold
  24: rayon_core::registry::ThreadBuilder::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
bayou-brogrammer commented 9 months ago

The last commit was 2 years ago. I just think it's dead at this point

evelant commented 9 months ago

It seems the original maintainer of this project is no longer active here or at all on github. Maybe we can point nixpkgs to a working fork if anyone is willing to maintain it?

waalge commented 9 months ago

@evelant I'm happy to try

bayou-brogrammer commented 9 months ago

If anyone is still around, I forked the repo and updated it to a working state.

https://github.com/lecoqjacob/manix

ParetoOptimalDev commented 9 months ago

@lecoqjacob Perhaps you can create a PR on nixpkgs to change nixpkgs to use your working fork?

bayou-brogrammer commented 9 months ago

@lecoqjacob Perhaps you can create a PR on nixpkgs to change nixpkgs to use your working fork?

Yea I already have a PR up to switch maintainers! Should be good in a few days

Artturin commented 7 months ago

@lecoqjacob @waalge It's possible to filter all the broken stuff out in find_nix_files https://github.com/nix-community/nixpkgs-lint/blob/master/src/find.rs

bayou-brogrammer commented 7 months ago

@lecoqjacob @waalge It's possible to filter all the broken stuff out in find_nix_files https://github.com/nix-community/nixpkgs-lint/blob/master/src/find.rs

Oh this is a good find! I'll need to upstream this in my fork

IogaMaster commented 5 months ago

@ParetoOptimalDev We have now done this. https://github.com/nix-community/manix

Working on updating the nixpkgs version