- This topic has 3 replies, 3 voices, and was last updated 2 months, 2 weeks ago by
June 17, 2020 at 5:53 pm #236350ParticipantTopics: 6Replies: 7Points: 71Rank: Member
I have a really simple code block…PowerShell1234$error.Clear()$status = 1Clear-HostWrite-Output "hello world"
The code works fine but I get $Errors – 3 of them – I paste one or the errors here.PowerShell1234System.Management.Automation.CommandNotFoundException: The term '__Invoke-ReadLineForEditorServices' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.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.CoreInvokeHelper[TInput,TOutput](PSDataCollection[crayon-5f66bfd6cf090429720401 inline="true" ]1 input, PSDataCollection
1 output) at Microsoft.PowerShell.EditorServices.Services.PowerShellContext.PowerShell5Operations.ExecuteCommandInDebugger[TResult](PowerShellContextService powerShellContext, Runspace currentRunspace, PSCommand psCommand, Boolean sendOutputToHost, Nullable1& debuggerResumeAction) at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.ExecuteCommandInDebugger[TResult](PSCommand psCommand, Boolean sendOutputToHost) at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.<ExecuteCommandAsync>d__89`1.MoveNext()[/crayon]
There are two other errors which I can share as well.
Here is the version info of VSC…
Version: 1.46.0 (system setup)
Date: 2020-06-10T09:03:20.462Z (1 wk ago)
OS: Windows_NT x64 10.0.19041
Here is a screen shot of the IDE:
July 3, 2020 at 4:16 pm #240125Senior ModeratorTopics: 9Replies: 1309Points: 4,781Rank: Community Hero
Hope you are using VSCode integrated Powershell Console and this is a PSreadLine related issue I think. Are you getting the same behavior in a normal PowerShell console.
July 7, 2020 at 10:02 am #240800ParticipantTopics: 6Replies: 7Points: 71Rank: Member
Any pointers on how to fix that?
July 7, 2020 at 1:16 pm #240848ParticipantTopics: 0Replies: 2Points: 10Rank: Member
Probably a bug
- You must be logged in to reply to this topic.