Skip to content

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set. At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:16 char:1 #32

Closed
@gawronix

Description

@gawronix

Help me fix this...
The property 'Text' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:14 char:50

  • $GitPromptSettings.DefaultPromptPrefix.Text = "$([char]0x2192) " # ar ...
  •                                              ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:15 char:1

  • $GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColo ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyAssignmentException
    
    

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:16 char:1

  • $GitPromptSettings.DefaultPromptPath.ForegroundColor =[ConsoleColor]: ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyAssignmentException
    
    

The property 'Text' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:17 char:50

  • $GitPromptSettings.DefaultPromptSuffix.Text = "$([char]0x203A) " # ch ...
  •                                              ~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyAssignmentException

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:18 char:1

  • $GitPromptSettings.DefaultPromptSuffix.ForegroundColor = [ConsoleColo ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyAssignmentException
    
    

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:20 char:1

  • $GitPromptSettings.BeforeStatus.ForegroundColor = [ConsoleColor]::Blu ...
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    
    

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:21 char:1

  • $GitPromptSettings.BranchColor.ForegroundColor = [ConsoleColor]::Blue
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    
    

The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:22 char:1

  • $GitPromptSettings.AfterStatus.ForegroundColor = [ConsoleColor]::Blue
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : PropertyNotFound
    
    

error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions