adam-mcdaniel / dune

A shell🐚 by the beach🏖️!
https://adam-mcdaniel.net/dune-website
MIT License
1.01k stars 20 forks source link

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value #69

Closed xyproto closed 3 years ago

xyproto commented 3 years ago

When starting Dune for the first time and typing ls, it works fine. However, after cd / I get this output when running ls:

(dune) /$ ls
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', src/bin.rs:440:48
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

There are no permission issues when running this under zsh, it calls ls and lists the files normally.

adam-mcdaniel commented 3 years ago

Are you sure youre running the newest version of dune? Line 440 shouldn't panic at all; it's just this parameter to repl:

    atomic_env: Arc<Mutex<Environment>>,
xyproto commented 3 years ago

No. I should have included the version number. I will test again with the latest release. 👍

xyproto commented 3 years ago

It works in 0.1.7.