-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Deleting nushell config directory leads to crash #5203
Comments
@bugabinga Hi, can you please try latest build and check if it's still panic?
Personally I'd suggest no need to recreate the missing config files, just restart |
@WindSoilder Hi, do you mean the latest release or the Assuming you meant latest release, the issue is reproducible.
|
I have tested again with latest oli@pop-os:~/Workspace/nushell$ git rev-parse --verify HEAD
a75318d7e8bc8d88043d2e982b26dcb58308acb6
oli@pop-os:~/Workspace/nushell$ ls ~/.config/nushell
ls: cannot access '/home/oli/.config/nushell': No such file or directory
oli@pop-os:~/Workspace/nushell$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.15s
Running `target/debug/nu`
No environment config file found at /home/oli/.config/nushell/env.nu
Would you like to create one with defaults (Y/n):
n
Continuing without config file
No config file found at /home/oli/.config/nushell/config.nu
Would you like to create one with defaults (Y/n):
n
Continuing without config file
/home/oli/Workspace/nushell〉rm --recursive --force ( $nu.config-path | path dirname )
Error:
× No such file or directory (os error 2)
oli@pop-os:~/Workspace/nushell$
As long as it does not panic, this would be also fine from my point of view. |
Sorry for my unclear message, I mean the latest Can you please try |
No problem: 💻/nushell main ▶ cargo clean ✓ 03.06 19:51
💻/nushell main ▶ cargo run 629ms ✓ 03.06 19:53
Updating crates.io index
Updating git repository `https://github.com/nushell/reedline`
Downloaded bytesize v1.1.0
Downloaded byteorder v1.4.3
Downloaded adler v1.0.2
Downloaded bytes v1.1.0
...
Compiling nu-parser v0.63.1 (/home/oli/Workspace/nushell/crates/nu-parser)
Compiling nu-cli v0.63.1 (/home/oli/Workspace/nushell/crates/nu-cli)
Finished dev [unoptimized + debuginfo] target(s) in 6m 38s
Running `target/debug/nu`
💻/nushell main ▶ rm -f ($nu.config-path | path dirname) 823ms ✓ 03.06 20:00
Error:
× No such file or directory (os error 2)
Error:
× No such file or directory (os error 2) We get 2 errors because I launched |
Hmm.....The error message shouldn't occurred, I can't reproduce it in my machine:-( I'll try linux in other day |
and of course,
|
What about trying this? In linux, I can use this to make a fresh > cargo clean
> cargo update
> cargo run |
@WindSoilder well done! The issue seems fixed after following your instructions. Or it is simply gone in
|
Describe the bug
When deleting the nushell config folder (
~/.config/nushell
in my case) a running instance of nu terminates.How to reproduce
~/.config/nushell
Would you like to create one with defaults (Y/n):
->n
Would you like to create one with defaults (Y/n):
->n
rm --recursive --force ( $nu.config-path | path dirname )
Expected behavior
I expected nu to ask to recreate the missing config files, like it did on first start.
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: