Skip to content

$ErrorView = 'NormalView' is not colorizing errors #16665

Closed

Description

@loxia01

Prerequisites

Steps to reproduce

When $ErrorView is set to NormalView (or CategoryView), error text color changes from red to white. When checking the current value of $Host.PrivateData.ErrorForegroundColor it reports Red. It is possible to change the variable value but it has no effect in NormalView and CategoryView.
In ConciseView everything works as expected.

Expected behavior

Error text color should be the same as the $Host.PrivateData.ErrorForegroundColor value.

Actual behavior

Error text color is white whatever color you set to $Host.PrivateData.ErrorForegroundColor.

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.1
PSEdition                      Core
GitCommitId                    7.2.1
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

2021-12-22 092221
2021-12-22 092831

Activity

  1. added
    Needs-Triage
    on Dec 22, 2021
  2. daxian-dbw commented on Jan 4, 2022

    @daxian-dbw
    Member

    Steve Lee (@SteveL-MSFT) can you please take a look?

  3. KevinMarquette commented on Jul 8, 2022

    @KevinMarquette
    Contributor

    The title of this issue should be updated to: "$ErrorView = 'NormalView' is not colorizing errors."

    I just ran into this one myself. Errors are not even colored red when using this view, it's just plain text. It almost doesn't say the word error.

    PS > 1/0
    Attempted to divide by zero.
    At line:1 char:1
    + 1/0
    + ~~~
    + CategoryInfo          : NotSpecified: (:) [], RuntimeException
    + FullyQualifiedErrorId : RuntimeException
  4. changed the title [-]Error text color in $ErrorView = NormalView is not possible to change.[/-] [+]$ErrorView = 'NormalView' is not colorizing errors[/+] on Jul 9, 2022
  5. SteveL-MSFT commented on Jul 18, 2022

    @SteveL-MSFT
    Member

    Taking a look

  6. ghost added
    In-PR
    on Jul 18, 2022
  7. ghost removed
    Needs-Triage
    on Jul 19, 2022
  8. ghost removed
    In-PR
    on Jul 19, 2022
  9. ghost added
    Resolution-Fixed
    on Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-FixedWG-Engine-FormatWG-Interactive-Console

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions