vscode-powershell: Interactive Console Stops Responding

System Details

System Details Output

### VSCode version: 1.42.1 c47d83b293181d9be64f27ff093689e8e7aed054 x64

### VSCode extensions:
eamodio.gitlens@10.2.1
Equinusocio.vsc-community-material-theme@1.4.1
Equinusocio.vsc-material-theme@32.5.0
equinusocio.vsc-material-theme-icons@1.1.4
johnpapa.vscode-peacock@3.5.0
ms-dotnettools.csharp@1.21.13
ms-vscode.powershell@2020.3.0
ms-vsliveshare.vsliveshare@1.0.1711
ms-vsliveshare.vsliveshare-audio@0.1.80
ms-vsliveshare.vsliveshare-pack@0.3.4
vscode-icons-team.vscode-icons@10.0.0
wix.vscode-import-cost@2.12.0


### PSES version: 2.0.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.18362.628
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.628
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

The PowerShell Interactive Console no longer accepts keystrokes sometimes. It’s very hit or miss but has happened to me a couple of times today.

Expected Behaviour

The interactive console continues to function.

Actual Behaviour

Typing doesn’t have any effect on the interactive console.

https://recordit.co/Ral9dac8RT

Attached Logs

Follow the instructions in the troubleshooting docs about capturing and sending logs.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 31 (15 by maintainers)

Most upvoted comments

It’s using 1.4.6

import-module PackageManagement -passthru


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.4.6      PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}

Since I have installed PackageManagement 1.4.6, I am no longer experiencing the issue. Using latest stable extension 2020.3.0.

Import-Module PackageManagement -PassThru

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.4.6      PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}

@dbrennand thanks for the additional logs, version 1.0.0.1 of PackageManagement will still give you this issue, to update to the latest version where this is resolved please run Install-Module PackageManagement -Force -AllowClobber thanks!

Installed and testing right now

Installed. I’ve got logging and all that jazz enabled and will upload anything relevant when\if I run into the issue.

I wasn’t using the preview extension day-to-day. I installed it a couple of times but ran into issues so I was on the previous stable. So this is the first I’m seeing this behavior.

I can try the preview to see if I see it there.