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
{{ message }}
Repository navigation
Get-Help does not display whole example body #11340
> (Get-Help Out-Null).Examples
------------------- Example 1: Delete output -------------------
PS C:\> Get-ChildItem | Out-Null
This command gets items in the current location/directory, but its output is not passed through the pipeline nor
displayed at the command line. This is useful for hiding output that you do not need.
I'm seeing this working properly. Can you try running Update-Help -ErrorAction SilentlyContinue and then check it again?
Tested on MacOS and windows, environment data below:
Name Value
---- -----
PSVersion 7.0.0-preview.6
PSEdition Core
GitCommitId 7.0.0-preview.6
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Name Value
---- -----
PSVersion 7.0.0-preview.6
PSEdition Core
GitCommitId 7.0.0-preview.6
OS Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153…
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Investigated this with Sean Wheeler (@sdwheeler) right now, seeing no repro on preview.6 and a definite repro on the nightly. We probably can't/shouldn't hold RC for a fix here, but it definitely needs to be fixed in RC....
Rain Sallow (/u/ta11ow) (@vexx32) the regression is not caused by the FirstOrDefault fix. That fix is included in our internal rc.1 release branch, and (Get-Help Out-Null).Examples works as expected on the build produced from that branch
Activity
vexx32 commentedon Dec 13, 2019
I'm seeing this working properly. Can you try running
Update-Help -ErrorAction SilentlyContinueand then check it again?Tested on MacOS and windows, environment data below:
kborowinski commentedon Dec 13, 2019
Just did the help update but it changed nothing.
kborowinski commentedon Dec 13, 2019
OK, found it. It works on PowerShell Preview-6 but not on the daily build.
iSazonov commentedon Dec 13, 2019
Sean Wheeler (@sdwheeler) Could you please comment the issue?
sdwheeler commentedon Dec 13, 2019
I confirm it works in 7.0.0-preview.6.
iSazonov commentedon Dec 13, 2019
Sean Wheeler (@sdwheeler) Why do this not work in daily build?
vexx32 commentedon Dec 13, 2019
/cc Steve Lee (@SteveL-MSFT) have we changed anything relating to the help systems recently? Or does the issue originate somewhere else?
sdwheeler commentedon Dec 13, 2019
I only really work on the content side of the help. I don't know if or what changed in code.
joeyaiello commentedon Dec 13, 2019
Investigated this with Sean Wheeler (@sdwheeler) right now, seeing no repro on preview.6 and a definite repro on the nightly. We probably can't/shouldn't hold RC for a fix here, but it definitely needs to be fixed in RC....
Also checked
HelpCommand.cs, nothing looks different there, so maybe this has to do with the formatting system? Or something James Truher (@JamesWTruher) et all may have done around VT100? Paging Aditya Patwardhan (@adityapatwardhan) as wellvexx32 commentedon Dec 14, 2019
Possibly the recent fix with FirstOrDefault had an effect? /Cc Dongbo Wang (@daxian-dbw)
daxian-dbw commentedon Dec 14, 2019
Rain Sallow (/u/ta11ow) (@vexx32) the regression is not caused by the FirstOrDefault fix. That fix is included in our internal rc.1 release branch, and
(Get-Help Out-Null).Examplesworks as expected on the build produced from that branchdaxian-dbw commentedon Dec 14, 2019
The culprit is #11193
(Get-Help Out-Null).Examplesworks as expected until changes from this PR was merged in.iSazonov commentedon Dec 14, 2019
Kris Borowinski (@kborowinski) Thanks for reporting the regression!