Skip to content

List experimental feature for NewPSBreakpoint in Module manifest for Windows - #9907

Closed
TylerLeonhardt wants to merge 1 commit into
PowerShell:masterfrom
TylerLeonhardt:fix-new-psbreakpoint-exp-feat
Closed

TylerLeonhardt wants to merge 1 commit into
PowerShell:masterfrom
TylerLeonhardt:fix-new-psbreakpoint-exp-feat

Conversation

@TylerLeonhardt

Copy link
Copy Markdown
Member

PR Summary

In #8923 I forgot to add this to the module manifest for Utility for Windows. This PR adds it.

I should probably speak to Dongbo Wang (@daxian-dbw) about how we can verify experimental features exist before proceeding (which would have caught this issue)... but I'm going to call that out of scope unless Dongbo Wang (@daxian-dbw) thinks it's trivial to add.

PR Context

Without this, the Experimental Feature does not show up.

PR Checklist

@daxian-dbw

Copy link
Copy Markdown
Member

Close and reopen the PR to force Windows CI build working properly.

@KirkMunro

Copy link
Copy Markdown
Contributor

TylerLeonhardt I added some feedback to the other PR since it was merged. See here for the first of two comments: #8923 (comment). Can you review and share your thoughts on that?

@daxian-dbw Dongbo Wang (daxian-dbw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. It turns out I didn't submit my review ...

ExperimentalFeatures = @(
@{
Name = 'Microsoft.PowerShell.Utility.PSDebugRunspaceWithBreakpoints'
Description = "Enables the New-PSBreakpoint cmdlet and the -Breakpoint parameter on Debug-Runspace to set breakpoints in another Runspace upfront."

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New-PSBreakpoint is an experimental feature, then it should be exposed only if the feature is turned on, right?
If that's true, then the CmdletsToExport should be conditional based on $EnabledExperimentalFeatures -contains 'Microsoft.PowerShell.Utility.PSDebugRunspaceWithBreakpoints'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a side question, do we really need this to be an experimental feature? What's the thoughts on putting it behind experimental flag? (design may be change? might cause regression?)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dongbo Wang (@daxian-dbw): I'm glad it is listed as experimental, because there are some challenges with the design. See: #8923 (comment).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, the New-PSBreakpoint cmdlet has been removed in a PR that should be submitted today. I've also removed the experimental feature flag, because I think it is not needed anymore. We can work out details in that PR, and I'll happily add back the experimental feature flag (fully, including what was missed the first time) if necessary. This PR can probably be closed once I have that PR open, so I'll comment back here soon.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also removed the experimental feature flag, because I think it is not needed anymore.

The experimental feature flag is still needed. That will be my first piece of feedback.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you haven't even seen the code... 😛

@daxian-dbw

Copy link
Copy Markdown
Member

TylerLeonhardt Can you please address this comment: #9907 (comment) when you have time? Thanks

@TylerLeonhardt

Copy link
Copy Markdown
Member Author

Dongbo Wang (@daxian-dbw) since Kirk Munro (@KirkMunro) is close to submitting a PR that replaces this, we can just close this PR when that is out.

@KirkMunro

Copy link
Copy Markdown
Contributor

Here is the PR that supercedes this: #10189. It uses experimental flags for cmdlet parameter additions. If an RFC is necessary to accompany that PR, let me know.

@TylerLeonhardt

Copy link
Copy Markdown
Member Author

Thanks Kirk!

@TravisEz13 Travis Plunk (TravisEz13) added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Review - Waiting on Author labels May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants