PowerShell 7.3.4PS C:\Windows\System32> Get-ModuleModuleType Version PreRelease Name ExportedCommands---------- ------- ---------- ---- ----------------Script 2.2.6 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, …PS C:\Windows\System32> Import-Module -Name "D:\CompletionPredictorBug\CompletionPredictorBug\CompletionPredictorBug.psd1"PS C:\Windows\System32> Get-ModuleModuleType Version PreRelease Name ExportedCommands---------- ------- ---------- ---- ----------------Manifest 0.1.1 CompletionPredictorScript 0.1.0 CompletionPredictorBugScript 2.2.6 PSReadLine {Get-PSReadLineKeyHandler, Get-PSReadLineOption, …PS C:\Windows\System32>at System.Management.Automation.PowerShell+Worker.CreateRunspaceIfNeededAndDoWork(System.Management.Automation.Runspaces.Runspace, Boolean) at System.Management.Automation.PowerShell.CoreInvokeHelper[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Management.Automation.PSDataCollection`1<System.__Canon>, System.Management.Automation.PSDataCollection`1<System.__Canon>, System.Management.Automation.PSInvocationSettings) at System.Management.Automation.PowerShell.CoreInvoke[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Management.Automation.PSDataCollection`1<System.__Canon>, System.Management.Automation.PSDataCollection`1<System.__Canon>, System.Management.Automation.PSInvocationSettings) at System.Management.Automation.PowerShell.Invoke(System.Collections.IEnumerable, System.Management.Automation.PSInvocationSettings) at Microsoft.PowerShell.Predictor.PowerShellExtensions.InvokeAndCleanup(System.Management.Automation.PowerShell) at Microsoft.PowerShell.Predictor.CompletionPredictor.SyncModules(System.Management.Automation.PowerShell) at Microsoft.PowerShell.Predictor.CompletionPredictor.SyncRunspaceState(System.Object, System.Management.Automation.Runspaces.RunspaceAvailabilityEventArgs) at System.Management.Automation.Runspaces.RunspaceBase.OnAvailabilityChanged(System.Management.Automation.Runspaces.RunspaceAvailabilityEventArgs) at System.Management.Automation.Runspaces.PipelineBase.RaisePipelineStateEvents() at System.Management.Automation.Runspaces.PipelineBase.Invoke(System.Collections.IEnumerable) at Microsoft.PowerShell.Executor.ExecuteCommandHelper(System.Management.Automation.Runspaces.Pipeline, System.Exception ByRef, ExecutionOptions) at Microsoft.PowerShell.ConsoleHost+InputLoop.Run(Boolean) at Microsoft.PowerShell.ConsoleHost+InputLoop.RunNewInputLoop(Microsoft.PowerShell.ConsoleHost, Boolean) at Microsoft.PowerShell.ConsoleHost.EnterNestedPrompt() at Microsoft.PowerShell.ConsoleHost.DoRunspaceLoop(System.String, Boolean, System.Collections.ObjectModel.Collection`1<System.Management.Automation.Runspaces.CommandParameter>, Boolean, System.String, System.String) at Microsoft.PowerShell.ConsoleHost.Run(Microsoft.PowerShell.CommandLineParameterParser, Boolean) at Microsoft.PowerShell.ConsoleHost.Start(System.String, System.String, Boolean) at Microsoft.PowerShell.UnmanagedPSEntry.Start(System.String[], Int32) at Microsoft.PowerShell.ManagedPSEntry.Main(System.String[])
Prerequisites
Steps to reproduce
D:\C:\Windows\System32\conhost.exe C:\Windows\System32\cmd.exe /k "C:\Program Files\PowerShell\7\pwsh.exe" -NoProfileImport-Module -Name "D:\CompletionPredictorBug\CompletionPredictorBug\Buggity_bug.psd1"Expected behavior
Actual behavior
Error details
No response
Environment data
Version
0.1.1
Visuals