Repository navigation
update nushell to use coreutils v0.2.2 crates - #16737
Conversation
|
I'd really prefer to not have regressions to our errors, at least not without a better understanding as to what the cause is. I would vote to postpone this unless there's a specific fix we are hoping to integrate by upgrading. We know there are systemic issues with uutils error reporting as Piet described in uutils/coreutils#7269, but this seems to be a different issue @fdncred is it just these two errors, or did you notice more? |
It's kind of a trade-off here. Do we want to have all the fixes that have been added to the coreutils or have less than optimal errors? I vote for the bug fixes myself because bugs in mv & cp (primarily) are generally important. Just a quick look at the change log uutils/coreutils@0.0.30...0.2.2 and searching for crate names in the title, there seem to be quite a few commits.
@132ikl You can see in the diff tests section that it's 3 errors in umv, which at least give you some more information, and a one in ucp which gives you a one hyphenated word error that is somewhat discriptive but none of these are "nushell caliber" error messages. To be 100% clear and honest, there may be an "easy" way to get to the errors that I'm too stupid to figure out. This could be a me problem but without posting this and getting more eyes on it, I wasn't sure how to figure that out. I welcome any help in tracking this down. |
|
It looksl like there's a way to get the error messages but I couldn't get it to work. @tertsdiepraam any tips on how to get errors out of the uu_cp/uu_mv crates with errors like |
|
I may have tripped over how to use it. It seems you may have to do something like this first? Testing now. localized_help_template("cp"); |
|
yipee! I fixed the errors, so they are the same as before. |
Hi @fdncred! I'm not really involved much anymore, so I might not be the best person to ask. If you need more help I can ask the other maintainers to chime in though! Looks like you got it all sorted. Nice! |
ok, thanks terts! appreciate you responding. i think i got it sorted. |
perfect, thanks for looking into this! sounds good to me |
There was a problem hiding this comment.
a bit surprised at the increase here.. hopefully this doesn't increase compile time too much
There was a problem hiding this comment.
I originally tried to cherry-pick the appropriate deps because cargo update -p is stupid sometimes. However, once I started fiddling with them manually, there were tons of "I need this, not that" problems which kept pulling in more and more crates. So, I just decided to let cargo update do its thing and run with it. At least then it compiles.
There was a problem hiding this comment.
Also, a lot of the new crates are related to the fluent crate which they appear to be using for internationalization. This is now one of the cornerstones to their error messages. I wouldn't be surprised if these errors appear in different languages based on locales since that's the intention of the translate!() macro that i'm calling here to get the "real" error message.
we could put a pin in this here too toward the future internationalization of nushell error messages.
This is a follow up to #15896 and #15932 and updates nushell to use the coreutils crates v0.2.2. We should try to stay on the latest coreutils version as much as possible.
Coreutils has reverted the main problem we had which was the need to have a
PROJECT_NAME_FOR_VERSION_STRINGenvironment variable.For reference,
https://github.com/uutils/coreutils/blob/5287738e9c408cf665e5a87c4df03bdc1685bb8f/docs/src/release-notes/0.2.0.md?plain=1#L528
uutils/coreutils#8360
Release notes summary - What our users need to know
N/A
Tasks after submitting
N/A