You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell beta hangs in Bash on Windows shell #3799
Before the latest beta I was able to install and run the PowerShell 6 alphas in the Bash shell on Windows 10. Now, with the beta install, the shell hangs when I try to start PowerShell. I realize I could post an issue on GitHub but thought I'd check with the group first.
I am running Windows 10 build 16193.
In the Bash shell, which I just upgraded as well, I can see that PowerShell beta is installed.
Because I had nothing left to try, I created profile scripts and put in the [System.Console]::OutputEncoding = [System.Text.Encoding]::ASCII line from the VSCode issue. Didn't make any difference.
Your line works! I tested the PowerShell Beta before installing .NET Code 2.0 Preview and it was working, meaning that I can get to the prompt. I was still having issues typing in the console with PowerShell Beta in the prompt.
I'm more tempted to do a clean Bash setup, then do a PowerShell Beta install to see if the .NET Core 2.0 Preview had something to do with PowerShell not opening.
But, I will have to do this on my VM at home after work this evening.
FYI
I completed testing PowerShell 6.0.0-beta on my Window 10 Bash Console. I uninstall and did a clean Bash installation without .NET Core 2.0 Preview 1 and PowerShell is getting hung.
Well, at least I'm not on a total lost as I can use Ubuntu Desktop Terminal to run PowerShell without any issues. I know it will come around and be fixed later.
Not sure if this will clarify things or make it more confusing. But on a clean Windows 10 build 14393 I installed WSL and then PowerShell beta 2. It works as expected. It does not work on Windows build 16199. At least for me.
Both the Windows console and WSL is changing, so it's going to be hard to determine what is actually causing the issue here. We should revisit this when the console and WSL stabilize.
I feel everything is a moving target these days. For what it's worth, on the older Win10 platforms WSL installs Ubuntu 14.04.05 LTS but in the latest builds it installs 16.04.2 LTS.
Here's an update: Just installed a new Windows 10 build (16215). Thought I'd try this again, and it worked! Now, I also updated Ubuntu before I tried and it looks like I got some libc stuff so I don't know what made a difference. But I will say, that PSReadline caused issues typing. Cursor would jump back and forth on the line, sometimes it seemed even prematurely inserting a return,and in general caused a distracting typing experience.
Activity
bgelens commentedon May 17, 2017
The same happens with me.
Looks similar to the issue with vs code PS ext. PowerShell/vscode-powershell#742
jdhitsolutions commentedon May 17, 2017
I wondered as well if the two issues aren't related.
jdhitsolutions commentedon May 17, 2017
Because I had nothing left to try, I created profile scripts and put in the [System.Console]::OutputEncoding = [System.Text.Encoding]::ASCII line from the VSCode issue. Didn't make any difference.
jdhitsolutions commentedon May 17, 2017
This is interesting. I was able to get something like this to work in the Bash shell.
MaximoTrinidad commentedon May 17, 2017
I Already logged the incident in WSL GitHub awhile ago: PowerShell 6.0.0-beta hung up in Windows 10 Bash Console. microsoft/WSL#2124
:)
MaximoTrinidad commentedon May 17, 2017
Jeff Hicks (@jdhitsolutions),
Your line works! I tested the PowerShell Beta before installing .NET Code 2.0 Preview and it was working, meaning that I can get to the prompt. I was still having issues typing in the console with PowerShell Beta in the prompt.
:)
MaximoTrinidad commentedon May 17, 2017
But, I can still use PowerShell in Windows 10 Bash in Ubuntu Desktop.
jdhitsolutions commentedon May 17, 2017
I can see what I'm supposed to be running.
MaximoTrinidad commentedon May 17, 2017
But!... You can't get to the prompt. Does by any chance, have you installed .NET Core in Bash?
:)
MaximoTrinidad commentedon May 17, 2017
I got the notice on WSL "Microsoft .net Core team and powershell team have active bugs listed on this github repo."
:)
jdhitsolutions commentedon May 17, 2017
Not sure what version of .NET core is running in my Bash shell. I'm going through the .NET Core 2.0 Preview 1 setup now.
MaximoTrinidad commentedon May 17, 2017
Jeff Hicks (@jdhitsolutions),
I can tell you, installing .NET Core 2.0 Preview, that won't work. It was working before installing.
MaximoTrinidad commentedon May 17, 2017
I'm more tempted to do a clean Bash setup, then do a PowerShell Beta install to see if the .NET Core 2.0 Preview had something to do with PowerShell not opening.
But, I will have to do this on my VM at home after work this evening.
MaximoTrinidad commentedon May 18, 2017
FYI
I completed testing PowerShell 6.0.0-beta on my Window 10 Bash Console. I uninstall and did a clean Bash installation without .NET Core 2.0 Preview 1 and PowerShell is getting hung.
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
exit
6 remaining items
MaximoTrinidad commentedon May 19, 2017
Well, at least I'm not on a total lost as I can use Ubuntu Desktop Terminal to run PowerShell without any issues. I know it will come around and be fixed later.
Thanks again,
:)
jdhitsolutions commentedon Jun 6, 2017
This still appears to be an issue with beta 2. I can run commands like this
but no interactive session.
jdhitsolutions commentedon Jun 7, 2017
Not sure if this will clarify things or make it more confusing. But on a clean Windows 10 build 14393 I installed WSL and then PowerShell beta 2. It works as expected. It does not work on Windows build 16199. At least for me.
SteveL-MSFT commentedon Jun 7, 2017
Both the Windows console and WSL is changing, so it's going to be hard to determine what is actually causing the issue here. We should revisit this when the console and WSL stabilize.
jdhitsolutions commentedon Jun 7, 2017
I feel everything is a moving target these days. For what it's worth, on the older Win10 platforms WSL installs Ubuntu 14.04.05 LTS but in the latest builds it installs 16.04.2 LTS.
jdhitsolutions commentedon Jun 12, 2017
Here's an update: Just installed a new Windows 10 build (16215). Thought I'd try this again, and it worked! Now, I also updated Ubuntu before I tried and it looks like I got some libc stuff so I don't know what made a difference. But I will say, that PSReadline caused issues typing. Cursor would jump back and forth on the line, sometimes it seemed even prematurely inserting a return,and in general caused a distracting typing experience.
SteveL-MSFT commentedon Jun 12, 2017
Jeff Hicks (@jdhitsolutions) the display problem is #1829
Since you have this working and this issue isn't actionable by us, I'm closing.