-
Notifications
You must be signed in to change notification settings - Fork 2.1k
values doesn't seem to work right with the sys command #10417
Copy link
Copy link
Closed
Labels
status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
Describe the bug
If you do sys | values, you'd expect to get the values. Instead, you get an error. I'm not sure if this is caused by some black magic surrounding LazyRecords or some other issue. Reilly conjectured that it might be related to CustomValues too. @amtoine found an interesting workaround with sys | to nuon | from nuon | values, which produces the expected result.
How to reproduce
❯ sys | values
Error: nu::shell::only_supports_this_input_type
× Input type not supported.
╭─[entry #11:1:1]
1 │ sys | values
· ─┬─ ───┬──
· │ ╰── only record or table input data is supported
· ╰── input type: record<host: record<name: string, os_version: string, long_os_version: string, kernel_version: string, hostname: string, uptime: duration, boot_time: string, sessions: list<any>>, cpu: table<name: string, brand: string, freq: int, cpu_usage: float, load_average: string, vendor_id: string>, disks: table<device: string, type: string, mount: string, total: filesize, free: filesize, removable: bool, kind: string>, mem: record<total: filesize, free: filesize, used: filesize, available: filesize, swap total: filesize, swap free: filesize, swap used: filesize>, temp: list<any>, net: table<name: string, sent: filesize, recv: filesize>>
╰────
Expected behavior
The same output as sys | to nuon | from nuon | values.
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.84.1 |
| branch | main |
| commit_hash | 39d93b5 |
| build_os | windows-x86_64 |
| build_target | x86_64-pc-windows-msvc |
| rust_version | rustc 1.70.0 (90c541806 2023-05-31) |
| rust_channel | 1.70.0-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.70.0 (ec8a8a0ca 2023-04-25) |
| build_time | 2023-09-18 08:33:58 -05:00 |
| build_rust_channel | release |
| allocator | mimalloc |
| features | dataframe, default, extra, sqlite, trash, which, zip |
| installed_plugins | emoji, file, from eml, from ics, from ini, from parquet, from vcf, gstat, highlight, hist, inc, json path, nu_plugin_explore, periodic-table, plot, pnet, query, query json, query web, query xml, regex, str similarity, xyplot |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
status:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look