PoshCode / PSGit

A PowerShell implementation of Git, mapping git commands to Verb-Noun and objects.
105 stars 15 forks source link

Import-Module PSGit fails with exception #57

Open felixfbecker opened 6 years ago

felixfbecker commented 6 years ago
> 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?

Jaykul commented 5 years ago

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 commented 5 years ago

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