BUG: Error in TypeData "Microsoft.PowerShell.DeserializingTypeConverter": Cannot create an instance of the type converter for type Microsoft.PowerShell.DeserializingTypeConverter due to exception: The type initializer for 'Microsoft.PowerShell.Deserial… #21876

Closed
opened 2026-01-31 07:57:10 +00:00 by claunia · 5 comments
Owner

Originally created by @BussyBakks on GitHub (Jun 19, 2024).

Windows Terminal version

v1.21.1382.0

Windows build number

10.0.26120.670

Other Software

Oh-my-Posh 19.16.1 to customize the prompt
and powershell script
image

Steps to reproduce

open powershell. any permission

Expected Behavior

open powershell window like normal

Actual Behavior

image
maximized window is Powershell (PWSH) 7, another is an original powershell in my computer.
Note: Powershell console in Powershell ISE still works

Originally created by @BussyBakks on GitHub (Jun 19, 2024). ### Windows Terminal version v1.21.1382.0 ### Windows build number 10.0.26120.670 ### Other Software Oh-my-Posh 19.16.1 to customize the prompt and powershell script ![image](https://github.com/microsoft/terminal/assets/108082159/1927b893-0758-4c59-8f7c-0649ec79b272) ### Steps to reproduce open powershell. any permission ### Expected Behavior open powershell window like normal ### Actual Behavior ![image](https://github.com/microsoft/terminal/assets/108082159/fe076ef1-ced8-489a-ac0d-5e713e82d0b7) *maximized window is Powershell (PWSH) 7, another is an original powershell in my computer.* Note: Powershell console in Powershell ISE still works
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 07:57:10 +00:00
Author
Owner

@lhecker commented on GitHub (Jun 19, 2024):

Does PowerShell start successfully if you comment out the oh-my-posh line in your profile?

@lhecker commented on GitHub (Jun 19, 2024): Does PowerShell start successfully if you comment out the `oh-my-posh` line in your profile?
Author
Owner

@BussyBakks commented on GitHub (Jun 20, 2024):

Does PowerShell start successfully if you comment out the oh-my-posh line in your profile?

@lhecker before i put oh-my-posh on $PROFILE to load with powershell, now i removed it and still have this error .-.

@BussyBakks commented on GitHub (Jun 20, 2024): > Does PowerShell start successfully if you comment out the `oh-my-posh` line in your profile? @lhecker before i put oh-my-posh on $PROFILE to load with powershell, now i removed it and still have this error .-.
Author
Owner

@BussyBakks commented on GitHub (Jun 20, 2024):

ISSUE CLOSED: i fixed this error, just restart .-.
maybe something that blocked powershell starts when back after hibernated .-.
oh-my-posh profile works too
image

@BussyBakks commented on GitHub (Jun 20, 2024): ISSUE CLOSED: i fixed this error, just restart .-. maybe something that blocked powershell starts when back after hibernated .-. `oh-my-posh` profile works too ![image](https://github.com/microsoft/terminal/assets/108082159/b54a1220-d109-448c-bcd6-1018d0cacabb)
Author
Owner

@DHowett commented on GitHub (Jun 20, 2024):

Thanks for following up! Congrats.

@DHowett commented on GitHub (Jun 20, 2024): Thanks for following up! Congrats.
Author
Owner

@BussyBakks commented on GitHub (Jun 21, 2024):

Thanks for following up! Congrats.

@DHowett this error caused by hibernation state .-. after hibernating powershell not work again :)

@BussyBakks commented on GitHub (Jun 21, 2024): > Thanks for following up! Congrats. @DHowett this error caused by hibernation state .-. after hibernating powershell not work again :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21876