You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@tlightsky - are you able to build nushell from source? We've done fixes to the sys command since that release, which might help fix the issue you're seeing. We'll also be putting out a release in a few weeks, which will also have the fixes.
btw, what i want is the du command to list all folders and the size of them inside current folder,
not df command which give me an overview of sytem disks status
Hey! My guess goes to the lack of apfs filesystem support at the heim::disks::FileSystem, as without it heim::disks::partitions_physical will not yield such a partitions.
Corresponding issue is here, and it can be tested with these lines at the Nu' Cargo.toml file:
@jonathandturner that would require bumping heim version later, but I were not planning to release 0.8.0 soon, as there are few issues I want to close first. Is it okay for Nu to use alpha versions, like heim = "0.8.0-alpha.1"?
I'm going to go ahead and close since the original issue should be fixed. I'd like to be able to add aliases to be able to squeeze this down to a du alias, but we're tracking that elsewhere.
I intended to mention that one thing du does that sys doesn't seem to be able to provide is usage for directories. For example, in the nushell source directory:
Activity
sophiajt commentedon Sep 17, 2019
We don't have aliases yet to make it short, but you can get
du-like data from:tlightsky commentedon Sep 18, 2019
my sys seems different
sophiajt commentedon Sep 18, 2019
@tlightsky - what system and version of the system are you on? It looks like the software we use to detect the disks isn't working
tlightsky commentedon Sep 19, 2019
OSX 10.14.6
nushell 0.1.3
sophiajt commentedon Sep 19, 2019
@tlightsky - are you able to build nushell from source? We've done fixes to the
syscommand since that release, which might help fix the issue you're seeing. We'll also be putting out a release in a few weeks, which will also have the fixes.tlightsky commentedon Sep 19, 2019
cargo runin nushell master branchsophiajt commentedon Sep 19, 2019
@tlightsky - when building you may need to do
cargo build && cargo runto make sure all the plugins are built.tlightsky commentedon Sep 20, 2019
still no disks
btw, what i want is the
ducommand to list all folders and the size of them inside current folder,not
dfcommand which give me an overview of sytem disks statusandrasio commentedon Sep 20, 2019
I can confirm
disksisn't displayed on my mac.sophiajt commentedon Sep 22, 2019
@svartalf - do you happen to know why the disks aren't showing up for some folks?
svartalf commentedon Sep 23, 2019
Hey! My guess goes to the lack of
apfsfilesystem support at theheim::disks::FileSystem, as without itheim::disks::partitions_physicalwill not yield such a partitions.Corresponding issue is here, and it can be tested with these lines at the Nu'
Cargo.tomlfile:@tlightsky @andrasio could you help with that?
@jonathandturner that would require bumping
heimversion later, but I were not planning to release0.8.0soon, as there are few issues I want to close first. Is it okay for Nu to use alpha versions, likeheim = "0.8.0-alpha.1"?sophiajt commentedon Sep 23, 2019
@svartalf - as long as the version is published on crates.io, I'm okay moving to it
thegedge commentedon Oct 13, 2019
Verified that
sys | get disksis working for me with0.8.0-alpha.1(OSX 10.14.6).0.8.0is released now though, so I could go ahead and bump.sophiajt commentedon Oct 13, 2019
@thegedge sounds good, if you want to send a PR I'll approve
thegedge commentedon Oct 13, 2019
Looks like #813 actually bumped it in
Cargo.lock. Probably no need to worry about bumping until the next release?1 remaining item
thegedge commentedon Oct 13, 2019
Sounds good! I'll send a quick PR.
sophiajt commentedon Oct 14, 2019
I'm going to go ahead and close since the original issue should be fixed. I'd like to be able to add aliases to be able to squeeze this down to a
dualias, but we're tracking that elsewhere.Thanks again.
thegedge commentedon Oct 14, 2019
I intended to mention that one thing
dudoes thatsysdoesn't seem to be able to provide is usage for directories. For example, in thenushellsource directory:sys | get disksseems more akin todf.sophiajt commentedon Oct 15, 2019
That's a good point. I was reading one and thinking the other. Let me reopen in case someone wants to create the du equivalent.
andrasio commentedon Nov 3, 2019
#900
Freaky commentedon Jan 31, 2020
A
ducommand was merged in d48f99c - albeit a naive one. Compare/contrast:i.e. it considers only the apparent size of files, and doesn't do hardlink tracking for files with link counts >1.
coolshaurya commentedon Jan 31, 2020
I believe this issue was fixed in PR #1250 .
thegedge commentedon Jan 31, 2020
Agree with @Freaky that there are improvements we can make, but @coolshaurya is right that this was already resolved by #1250.
For specific improvements to
du, we can open additional issues 🙂Thanks everyone!
[EDIT]
#1317 for not counting hard links more than once.
Allow int/float to coerce in type checker (nushell#679)
Allow int/float to coerce in type checker (#679)
Update docs for dataframe+database feature change (nushell#679)