-
Notifications
You must be signed in to change notification settings - Fork 311
Exception: System.IO.IOException: The parameter is incorrect. #1011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@MahmoodShehab, are you able to reproduce this? If so, can you offer any more clues, and supply the data returned from this script? & {
"PS version: $($PSVersionTable.PSVersion)"
$v = (Get-Module PSReadline).Version
$m = Get-Content "$(Split-Path -Parent (Get-Module PSReadLine).Path)\PSReadLine.psd1" | Select-String "Prerelease = '(.*)'"
if ($m) {
$v = "$v-" + $m.Matches[0].Groups[1].Value
}
"PSReadline version: $v"
if ($IsLinux -or $IsMacOS) {
"os: $(uname -a)"
} else {
"os: $((dir $env:SystemRoot\System32\cmd.exe).VersionInfo.FileVersion)"
}
"PS file version: $($name = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh.dll" } else { "powershell.exe" }; (dir $pshome\$name).VersionInfo.FileVersion)"
"BufferWidth: $([console]::BufferWidth)"
"BufferHeight: $([console]::BufferHeight)"
} Thanks, |
Possibly related to #991. |
PS version: 5.1.18362.145 |
It happened with me as well!! Oops, something went wrong. Please report this bug with the details below. Last 189 Keys: Exception:
|
For me this issue exists in ConEmu for pwsh. Regular powershell is just fine in ConEmu. pwsh works just fine outside of ConEmu and can run the script above mentioned above. In ConEmu, I get "handle is invalid" error for that script. Edit: Having re-installed it and doing "refresh tasks", I can open a new dialog in ConEmu. However, this error still presents itself when nested inside of another session. For example, if I open a powershell session and enter pwsh from there, I get this error. If I use Git bash, then pwsh, I get this error, etc. |
I took a closer look today, and found the original issue reported here ( That change was included in 2.0.0-beta4 and newer versions, so for those who ran into this issue, please try out the latest 2.0.0-rc1 from PowerShell Gallery. @dipakyadav The issue you report is different (exception thrown from @WSLUser It's not clear to me what issue you ran into. It sounds to me that you had trouble running the script in #1011 (comment). If that's the case, please open a separate issue. |
Uh oh!
There was an error while loading. Please reload this page.
PS C:>
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 25 Keys:
LeftArrow c d ' Enter
Enter
c d \ Enter
Enter
Enter
Ctrl+c c d ' Enter
Enter
Ctrl+c c d \ Enter
Ctrl+l Ctrl+l
Exception:
Environment
PS version: 5.1.18362.145
PSReadline version: 2.0.0-beta2
os: 10.0.18362.356 (WinBuild.160101.0800)
PS file version: 10.0.18362.356 (WinBuild.160101.0800)
BufferWidth: 319
BufferHeight: 3000
The text was updated successfully, but these errors were encountered: