Git Product home page Git Product logo

Comments (7)

Jaykul avatar Jaykul commented on June 12, 2024 3

I'm so sorry about this, folks! I have apparently been missing my notifications again.

I completely screwed up when I changed that class name in PANSIES. I initially removed all the Win32 specific stuff, and then decided that this one feature might still be needed on some versions of Windows in certain scenarios.

I completely forgot it was being used in PowerLine, because I have been running with RestoreVirtualTerminal turned off ever since Windows Terminal came out (I don't think we actually need to call that anymore, but I did not deliberately change the name). You can do work around it by disabling the feature:

Set-PowerLinePrompt -RestoreVirtualTerminal:$false

Or, as @kmsOmega so helpfully pointed out, by changing the class name on that line.

Now that I've seen this, I'll get a fix out ASAP (and I'll see about some of these other issues too, wow).

from powerline.

kms852 avatar kms852 commented on June 12, 2024 1

It took me a long time to find this issue because the searching the site for Unable to find type [PoshCode.Pansies.Console.WindowsHelper] did not return the text from the screenshot. Now that I'm here, it appears that the PoshCode/Pansies/Source/Assembly/NativeMethods.cs script moved the EnableVirtualTerminalProcessing function from [PoshCode.Pansies.Console.WindowsHelper] to [PoshCode.Pansies.NativeMethods].

Edit 0: Corrected [PoshCode.Pansies.NativeMethods+ConsoleOutputModes] to [PoshCode.Pansies.NativeMethods].
Edit 1: PowerLine file: Source/Public/Write-PowerlinePrompt.ps1 - Line 30

from powerline.

Swiftpaws avatar Swiftpaws commented on June 12, 2024

Workaround: Install version 1.4.0 of Pansies

Install-Module -Name Pansies -RequiredVersion 1.4.0 -AllowClobber

from powerline.

DarkSeedRA avatar DarkSeedRA commented on June 12, 2024

I am also getting the same error in PS 5.1 using Microsoft Terminal and ConEmu. Removing the latest Pansies and installing v1.4.0 has worked around the error.

from powerline.

JM2K69 avatar JM2K69 commented on June 12, 2024

It took me a long time to find this issue because the searching the site for Unable to find type [PoshCode.Pansies.Console.WindowsHelper] did not return the text from the screenshot. Now that I'm here, it appears that the PoshCode/Pansies/Source/Assembly/NativeMethods.cs script moved the EnableVirtualTerminalProcessing function from [PoshCode.Pansies.Console.WindowsHelper] to [PoshCode.Pansies.NativeMethods].

Edit 0: Corrected [PoshCode.Pansies.NativeMethods+ConsoleOutputModes] to [PoshCode.Pansies.NativeMethods].
Edit 1: PowerLine file: Source/Public/Write-PowerlinePrompt.ps1 - Line 30

I work's Great.

from powerline.

kms852 avatar kms852 commented on June 12, 2024

@Jaykul - No worries - I have been using PowerLine (as well as Pansies) since I wrote that post two weeks ago and it is intuitive, looks amazing, and provides me with a number of useful pieces of information with each command that I execute. Thank you very much for sharing this!

from powerline.

Jaykul avatar Jaykul commented on June 12, 2024

I believe this is done -- although I do have more releases of all of these still in the pipeline (so to speak)

from powerline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.