question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrated console does not write output on Windows Insider build 16193

See original GitHub issue

System Details

  • Operating system name and version: Microsoft Windows [Version 10.0.16193.1001]
  • VS Code version: 1.12.1
  • PowerShell extension version: 1.0.0
  • Output from $PSVersionTable:

image

Issue Description

VSCode cannot launch integrated powershell and stuck at showing “starting powershell…” like this:

image

Attached Logs

log.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:31

github_iconTop GitHub Comments

25reactions
daviwilcommented, May 16, 2017

Workaround

OK folks, I’ve got a workaround for this issue. Open up your VS Code profile at one of the following paths (create the file if it doesn’t already exist):

Windows PowerShell 5.1

$HOME\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

PowerShell Core 6.0

$HOME\Documents\PowerShell\Microsoft.VSCode_profile.ps1

Insert this line at the top of the file:

[System.Console]::OutputEncoding = [System.Text.Encoding]::ASCII

Now restart VS Code. When the Integrated Console appears, you should start to see output again.

Explanation

Something happened in the latest Windows Insider builds to cause output in the Integrated Console to not be written inside of VS Code’s integrated terminal. My guess is that there’s some specific set of factors that contribute to this issue since it doesn’t happen when you set powershell.exe to use UTF-8 output encoding inside of VS Code. I’ll continue investigating this issue to try and find a real solution, but the workaround should suffice for now.

2reactions
Jaykulcommented, Jul 15, 2017

But it’s fixed in 16241 👍 image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with VS Code “PowerShell Integrated” feature
This issue is only on Windows 10 Build 16193 including WSL (Windows 10 Bash), and will be corrected soon. In Windows 10 Bash...
Read more >
Creators Update Build 16193 - Microsoft Community
After updating to Creators Update Build 16193 My ScreenSaver locks me out of PC once it starts. I have to use CTRL ALT...
Read more >
Making VS Code's Powershell Integrated Console useful
I recently started using VS Code pretty heavily and I've had a fun time configuring it - especially getting synth wave glow working!...
Read more >
Windows 10 Insider Preview | Page 39
Hello Windows Insiders! Today we are excited to be releasing a new build from our Development Branch! Windows 10 Insider Preview Build 16170...
Read more >
Windows 10 Insider Preview build history tracker - Pureinfotech
Also, previews in this channel are not attached to any specific release of Windows 10, which means that changes will be integrated into ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found