crash on nix repl --file
#184
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#184
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
when executing exactly:
nix just crashes and outputs:
Expected behavior
Handle that case more gracefully and have a nice error message telling the user they forgot to specify a file similar to what
nix repl non-existnet-file.nix
would produce.nix-env --version
outputnix-env (Nix) 2.90.0-lix
What on earth. You don't get
error: flag '--file' requires 1 argument(s), but only 0 were given
? Why is Rust in there? This is wild. Do you have @jade 's external nix-doc plugin loaded maybe?Nope no repl plugins loaded
Could you run with
RUST_BACKTRACE=1
and post the result?Of course:
(sorry should have done that when opening the issue 🙈)
Blam:
d49229504e/src/nix.rs (L126-L130)
Awesome, thank you. The world now makes slightly more sense.
Does this not happen with upstream Nix though? At first glance this looks like it'd be a bug in nix-your-shell. Hm.
oh I didn't consider that, maybe nix_your_shell does load a repl plugin, I think @9999years might know.
just checked, also happens with upstream nix.
I guess I'm going to open a bug report at https://github.com/MercuryTechnologies/nix-your-shell
sorry for the noise.
@rbt is her
https://github.com/MercuryTechnologies/nix-your-shell/issues/71 filed here
closing this since i think it is not our bug.