PSGit icon indicating copy to clipboard operation
PSGit copied to clipboard

Import-Module PSGit fails with exception

Open felixfbecker opened this issue 7 years ago • 2 comments

> Import-Module PSGit
Import-Module : Exception calling "EnableVirtualTerminalProcessing" with "0" argument(s): "The type initializer for 'PoshCode.Pansies.Console.WindowsHelper' threw an exception."
At line:1 char:1
+ Import-Module PSGit
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Import-Module], MethodInvocationException
+ FullyQualifiedErrorId : TypeInitializationException,Microsoft.PowerShell.Commands.ImportModuleCommand
> $PSVersionTable

Name                           Value                                                                                                                    
----                           -----                                                                                                                    
PSVersion                      6.0.1                                                                                                                    
PSEdition                      Core                                                                                                                     
GitCommitId                    v6.0.1                                                                                                                   
OS                             Darwin 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64            
Platform                       Unix                                                                                                                     
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                  
PSRemotingProtocolVersion      2.3                                                                                                                      
SerializationVersion           1.1.0.1                                                                                                                  
WSManStackVersion              3.0  

Is macOS supported?

felixfbecker avatar Jun 09 '18 04:06 felixfbecker

It should be. The error you're getting is in /Jaykul/PANSIES -- the release version of that should be cross-platform, so that's definitely a bug (the EnableVirtualTerminalProcessing call is meant to fix the Windows 10 console -- so it should not be getting called on OS X, obviously).

Jaykul avatar Dec 11 '18 04:12 Jaykul

Since PANSIES is my module too, I'm going to leave this open here until I'm sure it's fixed in PANSIES.

Jaykul avatar Dec 11 '18 04:12 Jaykul