05-30-2023, 03:15 AM
(This post was last modified: 06-01-2023, 03:05 AM by OneAngryGamer.)
Recently powershell extensions have stopped working in P10. I have downloaded a new portable P10 and the problem still occurs. I have tried downloading older versions of P10 (lower than the version I had when it was last working) and the problem still occurs. I am not aware of making any system changes that could have caused this to break.
LOG EXTRACT
LOG EXTRACT
Quote:23-05 16:17:22.589|ERROR|MainMenu:Failed to get menu items from script Game_Engine_Checker_7a21243e-c7cc-4ca7-85bd-f6f96f22e9db#PS
System.Management.Automation.RuntimeException: An error occurred while creating the pipeline. ---> System.InvalidCastException: Unable to cast object of type 'System.Management.Automation.FunctionInfo' to type 'System.Management.Automation.CmdletInfo'.
at System.Management.Automation.Runspaces.LocalPipeline.CreatePipelineProcessor()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Playnite.Scripting.PowerShell.PowerShellRuntime.InvokeFunction(String name, List`1 arguments) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShell.cs:line 277
at Playnite.Scripting.PowerShell.PowerShellScript.InvokeFunction(String functionName, List`1 arguments) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShellScript.cs:line 200
at Playnite.Scripting.PowerShell.PowerShellScript.GetMainMenuItems(GetMainMenuItemsArgs args) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShellScript.cs:line 64
at Playnite.DesktopApp.Controls.MainMenu.AddExtensionItems() in C:\projects\playnite\source\Playnite.DesktopApp\Controls\Menus\MainMenu.cs:line 336
23-05 16:17:22.589|ERROR|MainMenu:Failed to get menu items from script Log_Open_a755c30f-580a-491e-9584-6c5314f6e254#PS
System.Management.Automation.RuntimeException: An error occurred while creating the pipeline. ---> System.InvalidCastException: Unable to cast object of type 'System.Management.Automation.FunctionInfo' to type 'System.Management.Automation.CmdletInfo'.
at System.Management.Automation.Runspaces.LocalPipeline.CreatePipelineProcessor()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings)
at Playnite.Scripting.PowerShell.PowerShellRuntime.InvokeFunction(String name, List`1 arguments) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShell.cs:line 277
at Playnite.Scripting.PowerShell.PowerShellScript.InvokeFunction(String functionName, List`1 arguments) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShellScript.cs:line 200
at Playnite.Scripting.PowerShell.PowerShellScript.GetMainMenuItems(GetMainMenuItemsArgs args) in C:\projects\playnite\source\Playnite\Scripting\PowerShell\PowerShellScript.cs:line 64
at Playnite.DesktopApp.Controls.MainMenu.AddExtensionItems() in C:\projects\playnite\source\Playnite.DesktopApp\Controls\Menus\MainMenu.cs:line 336