PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.67k stars 478 forks source link

Console hangs when trying to debug with "Create Temporary Integrated Console" setting enabled #1759

Closed janegilring closed 5 years ago

janegilring commented 5 years ago

Issue Description

I am experiencing a problem with the console hanging when hitting F5 to debug when the Create Temporary Integrated Console setting is enabled.

Attached Logs

Logs: vscode-powershell_logs.zip

Gif showing the issue: console_hang

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.31.1
PowerShell Extension Version 1.11.0

PowerShell Information

Name Value
PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.316
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand) |Extension|Author|Version| |---|---|---| |armsnippet|artofshell|0.7.0| |azure-account|ms-vscode|0.8.0| |azure-pipelines|ms-azure-devops|1.147.1| |azurecli|ms-vscode|0.4.2| |azurerm-vscode-tools|msazurermtools|0.4.2| |code-settings-sync|Shan|3.2.4| |gitblame|waderyan|2.6.3| |githistory|donjayamanne|0.4.6| |gitlens|eamodio|9.5.1| |guides|spywhere|0.9.3| |markdown-all-in-one|yzhang|2.0.1| |material-icon-theme|PKief|3.6.3| |PowerShell|ms-vscode|1.11.0| |python|ms-python|2019.1.0| |rainbow-csv|mechatroner|1.0.0| |swagger-viewer|Arjun|2.2.0| |team|ms-vsts|1.144.1| |vscode-azurefunctions|ms-azuretools|0.14.0| |vscode-azureterraform|ms-azuretools|0.2.2| |vscode-coverage-gutters|ryanluker|2.3.0| |vscode-docker|PeterJausovec|0.5.2| |vscode-instant-markdown|dbankier|1.4.3| |vscode-logicapps|ms-azuretools|0.1.7| |vscode-markdownlint|DavidAnson|0.24.0| |vscode-pandoc|DougFinke|0.0.8| |vsliveshare|ms-vsliveshare|0.3.1182|;
janegilring commented 5 years ago

Probably same root cause as https://github.com/PowerShell/vscode-powershell/issues/1760 which is caused by https://github.com/Microsoft/vscode/issues/57803

janegilring commented 5 years ago

One possible workaround is adding "cls" to the PowerShell profile. Not optimal, but might save some keystrokes until the issue is fixed in Windows.