PoshCode / Pansies

Powershell ANSI Escape Sequences, functions for colored output, etc.
MIT License
146 stars 14 forks source link

bug with Powershell 7.0.2 and 3 #15

Closed JM2K69 closed 3 years ago

JM2K69 commented 4 years ago

Unable to find type [PoshCode.Pansies.Console.WindowsHelper].

image

Do you have a solution ?

Jaykul commented 4 years ago

Ooof! I totally forgot PowerLine was using that. You should not need that on modern Windows 10. Turn off the option in PowerLine:

Set-PowerLinePrompt -RestoreVirtualTerminal:$false

I'll have to think about that. I removed all of the Windows-specific stuff when I finally released 1.3 because I decided that PANSIES needed to be strictly cross-platform, and the Windows-specific features could go in their own module if we needed them. I guess this might be the only actual use of one of them...

For what it's worth, the function it's looking for was just moved to PoshCode.Pansies.NativeMethods, there's a fix coming to PowerLine for that, it's tracked in Jaykul/PowerLine#64