Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix repl --file with no specified file crashes nix-your-shell #71

Open
lf- opened this issue Mar 26, 2024 · 2 comments
Open

nix repl --file with no specified file crashes nix-your-shell #71

lf- opened this issue Mar 26, 2024 · 2 comments

Comments

@lf-
Copy link

lf- commented Mar 26, 2024

originally reported by @Janik-Haag

The application panicked (crashed).
Message:  index out of bounds: the len is 2 but the index is 2
Location: src/nix.rs:128

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
@lf- lf- changed the title nix repl --file with missing file crashes nix-your-shell nix repl --file with no specified file crashes nix-your-shell Mar 26, 2024
@9999years
Copy link
Member

In my defense, this crashes nix too:

$ nix repl --file
error: flag '--file' requires 1 argument(s), but only 0 were given
Try 'nix --help' for more information.

@lf-
Copy link
Author

lf- commented Mar 26, 2024

hey i would expect it to segfault the daemon during evaluation to really be in character as nix :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants