-
Notifications
You must be signed in to change notification settings - Fork 312
PSReadline 2.0.2 error #1654
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
@H3pha3st0s Thanks for reporting the issue. We need some additional information for further investigation, so can you please run the following script in the same terminal where you ran into the issue and paste the result here? This script collects the environment data such as the host you are using, the windows/buffer size of your terminal. Thanks! & {
Set-StrictMode -Off
$hostName = $Host.Name
if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) {
$id = $PID
$inWindowsTerminal = $false
while ($true) {
$p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId Like $id"
if (!$p -or !$p.Name) { break }
if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break }
$id = $p.ParentProcessId
}
if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" }
}
"`nPS version: $($PSVersionTable.PSVersion)"
$m = Get-Module PSReadline
$v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease
if ($pre) { $v = "$v-$pre" }
"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)"
"HostName: $hostName"
"BufferWidth: $([console]::BufferWidth)"
"BufferHeight: $([console]::BufferHeight)`n"
} |
this is the output i got
PS version: 5.1.18362.752
PSReadline version: 2.0.2
os: 10.0.18362.1 (WinBuild.160101.0800)
PS file version: 10.0.18362.1 (WinBuild.160101.0800)
HostName: ConsoleHost
BufferWidth: 131
BufferHeight: 29
…On Mon, Jul 13, 2020 at 11:13 PM Dongbo Wang ***@***.***> wrote:
@H3pha3st0s <https://github.com/H3pha3st0s> Thanks for reporting the
issue. We need some additional information for further investigation, so
can you please run the following script in the same terminal where you ran
into the issue and paste the result here? This script collects the
environment data such as the host you are using, the windows/buffer size of
your terminal. Thanks!
& {
Set-StrictMode -Off
$hostName = $Host.Name
if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) {
$id = $PID
$inWindowsTerminal = $false
while ($true) {
$p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId Like $id"
if (!$p -or !$p.Name) { break }
if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break }
$id = $p.ParentProcessId
}
if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" }
}
"`nPS version: $($PSVersionTable.PSVersion)"
$m = Get-Module PSReadline
$v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease
if ($pre) { $v = "$v-$pre" }
"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)"
"HostName: $hostName"
"BufferWidth: $([console]::BufferWidth)"
"BufferHeight: $([console]::BufferHeight)`n"
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1654 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ3MQBHGGN7VHQVFTZWKG5TR3N2IBANCNFSM4OYLKX6A>
.
--
M.Kanku
|
@H3pha3st0s I appreciate your response! The exception reports the cursor top |
Yes is was
…On Wed, 22 Jul 2020, 08:05 Dongbo Wang, ***@***.***> wrote:
@H3pha3st0s <https://github.com/H3pha3st0s> I appreciate your response!
One more question, it looks to me you were using the VS Code terminal, can
you please confirm if that's the case?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1654 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ3MQBA6DVDCM5SLWP7B7MTR4Z6UNANCNFSM4OYLKX6A>
.
|
Close as a duplicate of #1758 |
Environment
PSReadLine: 2.0.2
PowerShell: 5.1.18362.752
OS: Microsoft Windows 10.0.18363
Last 200 Keys
Exception
The text was updated successfully, but these errors were encountered: