No such file in ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unveil-rs-0.1.2-alpha1/src/main.rs:28:29:
the-arkhive opened this issue · 2 comments
the-arkhive commented
I had everything working mere moments ago, had the live server running, was editing. I deleted a slide with the rm command, and it seems to have broken the whole install. Can’t even unveil init
in another location. Full error below.
thread 'main' panicked at ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unveil-rs-0.1.2-alpha1/src/main.rs:28:29:
called `Result::unwrap()` on an `Err` value: No such file or directory (os error 2)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
the-arkhive commented
Worth noting I have uninstalled and reinstalled Unveil, and Rust. I have gone to the line referenced and found this
} else if matches.is_present("serve") {
project.serve(None).unwrap() // this is line 28
} else if matches.is_present("add") {
Other than not having a ;
and passing None
into project.serve(), whic both differ a bit some the lines around it, nothing seems off here.
the-arkhive commented
I tried unveil init
again and this time it worked. I think this is after adding the ;
in that file.