-
Notifications
You must be signed in to change notification settings - Fork 316
Closed
Labels
Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.
Description
The IOException
thrown from Ctrl+l was fixed in recent versions.
If you run into this one (seeing a stack trace like the below one), please try out the latest version of PSReadLine
from PowerShell Gallery.
Exception:
System.IO.IOException: The parameter is incorrect.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.SetWindowPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
This issue was fixed by #790. The fix was included in 2.0.0-beta4
and newer versions.
For more information, take a look at #922 (comment).
Metadata
Metadata
Assignees
Labels
Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.There's another issue on the tracker that's pretty much the same thing.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
justPaulo commentedon Feb 27, 2020
After update to most recent version of powershell core, error stills persists.
Last 8 Keys:
Exception:
vexx32 commentedon Feb 27, 2020
@justPaulo did you update to the most recent version of PSReadLine?
justPaulo commentedon Feb 27, 2020
No because of:
WARNING: Version '2.0.0-beta3' of module 'PSReadLine' is already installed at '/usr/local/microsoft/powershell/6/Modules/PSReadLine'. To install version '2.0.0', run Install-Module and add the -Force parameter, this command will install version '2.0.0' side-by-side with version '2.0.0-beta3'.
daxian-dbw commentedon Feb 27, 2020
@justPaulo Please try this:
Be sure to exit all instances of
powershell.exe
,pwsh.exe
orpwsh
(including the integrated PowerShell console you might opened inVSCode
), then run the suggested command fromcmd.exe
.Checkout the Upgrading section of the
README.md
.justPaulo commentedon Feb 27, 2020
Tried it:
pnascim@MacMinidoPaulo ~ $ /usr/local/bin/pwsh -noprofile -command "Install-Module PSReadLine -Force -SkipPublisherCheck -AllowPrerelease"
WARNING: The version '2.0.0' of module 'PSReadLine' is currently in use. Retry the operation after closing the applications.
I completely closed and logout from pwsh, as well zsh on macOS Catalina.
PS /Users/pnascim> $PSVersionTable Name Value ---- -----
PSVersion 6.2.4
PSEdition Core
GitCommitId 6.2.4
OS Darwin 19.4.0 Darwin Kernel Version 19.4.0: Sun Feb 9 22:12:38 PST 2020; root:xnu-6153.100.196~21/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
daxian-dbw commentedon Feb 27, 2020
@justPaulo There is a thread about this. It looks like something with
Install-Module
, checkout #137046 remaining items