-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
No matter what I do, simply having this in my C:\Program Files\PowerShell\7\Modules causes any PS 7.x terminal I open to throw an Internal CLR Error even if running NoProfile.
I have to physically delete this module out of that directory in order for PS7 to run.
I have tried downgrading PS7.5.2 to lower levels of PS 7, running no profile, removing and reimporting/saving the module. It always throws this error if I have it installed.Screenshot
See actual behavior below
Environment data
PS Version: 7.5.2
PS HostName: ConsoleHost
PSReadLine Version: v2.3.6
PSReadLine EditMode: *None - I can't get it to load or import
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 30Steps to reproduce
Save-Module PSReadLine -Path "$env:ProgramFiles\PowerShell\7\Modules" ;
Start a new PS 7.x terminal...
Expected behavior
PowerShell 7.5.2
PS>
Actual behavior
PowerShell 7.5.2
Fatal error. Internal CLR error. (0x80131506)
at System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod(System.RuntimeMethodHandle, System.RuntimeTypeHandle[])
at A.d.d(System.RuntimeMethodHandle[])
at A.a.D(A, System.String, System.Type, System.Reflection.MethodBase, Boolean)
at A.a.B(System.Reflection.Assembly, A)
at A.a.a(System.Reflection.Assembly)
at System.Reflection.RuntimeModule.GetDefinedTypes()
at System.Reflection.RuntimeModule.GetTypes()
at A.C.a(System.Reflection.Assembly)
at A.a.a(System.Reflection.Assembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(System.String)
at System.Reflection.Assembly.LoadFrom(System.String)
at System.Management.Automation.ExecutionContext.LoadAssembly(System.String, System.String, System.Exception ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.FixFileName(System.String, System.String, System.String, System.String, Boolean, Boolean ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleNamedInManifest(System.Management.Automation.PSModuleInfo, Microsoft.PowerShell.Commands.ModuleSpecification, System.String, Boolean, System.String, System.Management.Automation.SessionState, ImportModuleOptions, ManifestProcessingFlags, System.Object, Boolean ByRef, System.String, System.Nullable1<System.Management.Automation.PSLanguageMode>) at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModuleManifest(System.String, System.Management.Automation.ExternalScriptInfo, System.Collections.Hashtable, System.Collections.Hashtable, ManifestProcessingFlags, System.Version, System.Version, System.Version, System.Nullable1<System.Guid>, ImportModuleOptions ByRef, Boolean ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadModule(System.Management.Automation.PSModuleInfo, System.String, System.String, System.String, System.Management.Automation.SessionState, System.Object, ImportModuleOptions ByRef, ManifestProcessingFlags, Boolean ByRef, Boolean ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingExtensions(System.Management.Automation.PSModuleInfo, System.String, System.String, System.String, System.String, System.String, System.Management.Automation.SessionState, ImportModuleOptions, ManifestProcessingFlags, Boolean ByRef, Boolean ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingMultiVersionModuleBase(System.String, ManifestProcessingFlags, ImportModuleOptions, Boolean ByRef)
at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(System.Management.Automation.PSModuleInfo, System.Collections.Generic.IEnumerable`1<System.String>, System.String, System.Management.Automation.SessionState, ImportModuleOptions, ManifestProcessingFlags, System.Management.Automation.PSModuleInfo ByRef)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions, System.String)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName_WithTelemetry(ImportModuleOptions, System.String)
at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
at System.Management.Automation.CommandProcessorBase.DoExecute()
at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(System.Object)
at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()
at System.Management.Automation.Runspaces.PipelineThread.WorkerProc()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)