Skip to content

FailFast: padding is not correct #6234

@sayujsh

Description

@sayujsh

Description

Running Start-DevPowerShell or running the executable "pwsh.exe" results in new PowerShell window, but once you enter any table command, the window crashes.

Noticed that this error occurs with fixes for pull request #5568
Works with earlier versions however.

https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs#L501

Assert Statement Fails

Steps to reproduce

Run the v6.0.1 executable "pwsh.exe" from the 5.1 launcher or type Start-DevPowerShell

Start-DevPowerShell

Then type in any table view command such as:

ls

Expected behavior

Should run PowerShell v6.0.1 in a new window without crashes

Actual behavior

Initially opens PowerShell v6.0.1, but when you type in any table view command, the window crashes.

Environment data

When checking the version table in the original PowerShell Window:

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.15063.909
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.15063.909
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

After running the pwsh in one instance within the same window:

> pwsh
> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.0.1
PSEdition                      Core
GitCommitId                    v6.0.1
OS                             Microsoft Windows 10.0.15063
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

Labels

HacktoberfestPotential candidate to participate in HacktoberfestResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions