Repository navigation
Update System.CommandLine - #23085
Conversation
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
There are two categories of test failures:
I logged an issue upstream with S.CL to discuss the second category. |
| new[] { "--no-hot-reload" }, | ||
| "Suppress hot reload for supported apps."); |
There was a problem hiding this comment.
| new[] { "--no-hot-reload" }, | |
| "Suppress hot reload for supported apps."); | |
| new[] { "--no-hot-reload" }, | |
| "Suppress hot reload for supported apps."); |
|
Thanks for the style/consistency review @pranavkm, I'll get right on those changes. |
pranavkm
left a comment
There was a problem hiding this comment.
dotnet-watch changes look good to me.
MichaelSimons
left a comment
There was a problem hiding this comment.
LGTM from a source-build perspective.
|
@pranavkm done, thank you! |
|
Some of the completion tests are failing because the update introduced a regression around completions for global options: dotnet/command-line-api#1563. There are two kinds of test failures remaining:
still digging in to both of those categories of error. |
|
Feeling pretty happy about this now: the main tests failing in CI now are the completions ones, and S.CL already has an MR out to fix that. Hopefully we can get green in the next day or so. |
|
@baronfel I noticed this when I was looking at the blazor test failures - it looks like the CommandHandler type exists in a separate assembly: https://github.com/dotnet/command-line-api/blob/main/src/System.CommandLine.NamingConventionBinder/CommandHandler.cs. Did you intentionally choose to avoid that reference? It might have been less churn. |
|
@pranavkm I did intentionally avoid taking on that reference, mostly because it introduces a reflection component. The base library was mostly expressive enough IMO (at least for the core SDK commands), and being more linker-friendly seemed like a good secondary goal as well. I'm not hard-against it, I just didn't see a compelling enough reason to require it. |
Co-authored-by: Pranav K <[email protected]>
Co-authored-by: Pranav K <[email protected]>
Co-authored-by: Pranav K <[email protected]>
Co-authored-by: Pranav K <[email protected]>
|
Rebased and updated S.CL to fix the completions errors. Fingers crossed, this could be the one! |
|
All green, this was a fun one :) |
This updates our version of System.CommandLine to the latest available and adjusts to some API breaking changes around:
The vast majority of the existing tests pass on my machine, I've created this to