-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
sys
panics
#10155
Comments
I can't reproduce on the latest main branch in Windows or Ubuntu. ❯ RUST_BACKTRACE=1 nu -n -c 'sys'
╭───────┬───────────────────╮
│ host │ {record 8 fields} │
│ cpu │ [table 12 rows] │
│ disks │ [table 14 rows] │
│ mem │ {record 7 fields} │
│ temp │ [list 0 items] │
│ net │ [table 3 rows] │
╰───────┴───────────────────╯ |
Strange... I use Kubuntu 22.04. I have a guess, since the panic message involved "duration": I've experienced incorrect system datetime after waking from sleep, and had to reset it after I connected to Internet. Something remained erroneous, for example, my > uptime
00:11:58 up -24855 days, -3:-14, 3 users, load average: 0.74, 0.99, 1.30 I will try again after rebooting. |
Rebooting solved the problem... Closing for now. |
I think in this case, we should harden the sys command code such that it doesn't panic if there is an invalid date/duration. I'll reopen for this reason. |
# Description This should fix nushell#10155 where the `sys` command can panic due to date math in certain cases / on certain systems. # User-Facing Changes The `boot_time` column now has a date value instead of a formatted date string. This is technically a breaking change.
Describe the bug
Running
sys
command crashed my Nushell 0.84.0, both in REPL and when run as a scriptHow to reproduce
I started with no config file to ensure it wasn't my config causing it:
With
RUST_BACKTRACE=full
:My installation:
cargo install nu --features=extra,dataframe --locked
Expected behavior
Shouldn't crash...
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: